-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Android LoadImageFromFont benchmark and enable verbose Glide logging #24033
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.microsoft.maui.glide; | ||
|
||
import android.util.Log; | ||
|
||
public class GlideLogging { | ||
private static final String TAG = "Glide"; | ||
private static final boolean IS_VERBOSE_LOGGABLE = Log.isLoggable(TAG, Log.VERBOSE); | ||
|
||
public static boolean isVerboseLoggable() { | ||
return IS_VERBOSE_LOGGABLE; | ||
} | ||
|
||
public static void v(String message) { | ||
if (IS_VERBOSE_LOGGABLE) { | ||
Log.v(TAG, message); | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -28,7 +28,7 @@ | |||
<Using Include="BenchmarkDotNet.Order" /> | ||||
<Using Include="BenchmarkDotNet.Running" /> | ||||
<PackageReference Include="BenchmarkDotNet" Version="0.13.10" /> | ||||
<PackageReference Include="Xamarin.Android.Glide" Version="4.14.2.1" /> | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This version was not in sync with the one we use on all other projects. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we put the entry here across the repo? Then you could just put There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually I found something better which is already used in the solution Line 92 in 363b626
|
||||
<PackageReference Include="Xamarin.Android.Glide" Version="$(_XamarinAndroidGlideVersion)" /> | ||||
</ItemGroup> | ||||
<ItemGroup> | ||||
<ProjectReference Include="..\..\..\Controls\src\Core\Controls.Core.csproj" /> | ||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use this in the future to enhance our java glide-related logging.