Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2627)

Unified Diff: base/android/library_loader/library_loader_hooks.cc

Issue 684453003: Add UMA for testing whether the Chromium library was page aligned in the APK file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/android/library_loader/library_loader_hooks.cc
diff --git a/base/android/library_loader/library_loader_hooks.cc b/base/android/library_loader/library_loader_hooks.cc
index 809275dc4314925601ca959628d7b3d78d6a8315..b7f3632eb42b9126e8b6cae10e90031e364bf331 100644
--- a/base/android/library_loader/library_loader_hooks.cc
+++ b/base/android/library_loader/library_loader_hooks.cc
@@ -98,6 +98,14 @@ static void RecordChromiumAndroidLinkerBrowserHistogram(
LIBRARY_LOAD_FROM_APK_STATUS_CODES_MAX);
}
+static void RecordChromiumAndroidLinkerLibraryAlignmentInApk(
+ JNIEnv* env,
+ jclass clazz,
+ jboolean aligned) {
+ // Record whether the Chromium library is page aligned in the APK file.
+ UMA_HISTOGRAM_BOOLEAN("ChromiumAndroidLinker.LibraryAlignedInApk", aligned);
+}
+
void SetLibraryLoadedHook(LibraryLoadedHook* func) {
g_registration_callback = func;
}

Powered by Google App Engine
This is Rietveld 408576698