[Android] Support startup histogram.
commit36ccb2fefe08187113765f5f8b2a1d6c5c33ae6b
authoraberent@chromium.org <aberent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 30 Aug 2013 15:42:26 +0000 (30 15:42 +0000)
committeraberent@chromium.org <aberent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 30 Aug 2013 15:42:26 +0000 (30 15:42 +0000)
treec02df538e15b5cd3e4b11b506101b4c88169a3d6
parentae8c88390ca8ef11f0d344f51711760c2fab72ae
[Android] Support startup histogram.

This CL adds support for the
Startup.BrowserMessageLoopStartTimeFromMainEntry UMA histogram to
chromium_testshell. It does this by recording the start time as
early as possible on the Java side (well before the C++ library is even
loaded), and then reading this on the C++ side through a new JNI call.

BUG=266173

Review URL: https://chromiumcodereview.appspot.com/23443009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220588 0039d316-1c4b-4281-b951-d872f2087c98
chrome/android/java/src/org/chromium/chrome/browser/UmaUtils.java [new file with mode: 0644]
chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellApplication.java
chrome/app/android/chrome_main_delegate_android.cc
chrome/app/chrome_main_delegate.cc
chrome/browser/android/chrome_jni_registrar.cc
chrome/browser/android/uma_utils.cc [new file with mode: 0644]
chrome/browser/android/uma_utils.h [new file with mode: 0644]
chrome/browser/chrome_browser_main.cc
chrome/chrome_browser.gypi
chrome/common/startup_metric_utils.cc
chrome/common/startup_metric_utils.h