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

Issue 23443009: [Android] Support startup histogram. (Closed)

Created:
7 years, 3 months ago by aberent
Modified:
7 years, 3 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220588

Patch Set 1 #

Patch Set 2 : [Android] Support startup histogram; remove unnecessary change to AwShellApplication.java #

Total comments: 20

Patch Set 3 : [Android] Support startup histogram - answer code review comments #

Total comments: 14

Patch Set 4 : [Android] Support startup histogram - move new android source and fix nits. #

Total comments: 4

Patch Set 5 : [Android] Support startup histogram - fix jam's nits #

Patch Set 6 : [Android] Support startup histogram - fix missing copyright notice #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -8 lines) Patch
A chrome/android/java/src/org/chromium/chrome/browser/UmaUtils.java View 1 2 3 4 5 1 chunk +33 lines, -0 lines 0 comments Download
M chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellApplication.java View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/app/android/chrome_main_delegate_android.cc View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/app/chrome_main_delegate.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
A + chrome/browser/android/uma_utils.h View 1 2 3 1 chunk +7 lines, -4 lines 0 comments Download
A chrome/browser/android/uma_utils.cc View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 2 chunks +16 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/common/startup_metric_utils.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/common/startup_metric_utils.cc View 1 2 3 2 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 22 (0 generated)
aberent
7 years, 3 months ago (2013-08-27 19:02:53 UTC) #1
jeremy
Nice!! https://codereview.chromium.org/23443009/diff/3001/chrome/android/java/src/org/chromium/chrome/common/StartupMetricUtils.java File chrome/android/java/src/org/chromium/chrome/common/StartupMetricUtils.java (right): https://codereview.chromium.org/23443009/diff/3001/chrome/android/java/src/org/chromium/chrome/common/StartupMetricUtils.java#newcode10 chrome/android/java/src/org/chromium/chrome/common/StartupMetricUtils.java:10: static long applicationStartWallclockMs_; nit: WallClock (?) https://codereview.chromium.org/23443009/diff/3001/chrome/app/chrome_main_delegate.cc File ...
7 years, 3 months ago (2013-08-27 19:18:51 UTC) #2
Yaron
My main q is about having this in the common folder. Jeremy: do we use ...
7 years, 3 months ago (2013-08-27 20:42:29 UTC) #3
Yaron
Err, I should add that its' breaking conventions but can be fixed by making the ...
7 years, 3 months ago (2013-08-27 20:43:10 UTC) #4
jeremy
No, only used for the browser process.
7 years, 3 months ago (2013-08-27 21:01:07 UTC) #5
Anthony Berent
Jeremy, Should I move the portable startup_metric_utils.* to browser, or are other things in there ...
7 years, 3 months ago (2013-08-27 21:20:45 UTC) #6
jeremy
Nothing in there should be used by the renderer, however I don't want to task ...
7 years, 3 months ago (2013-08-27 21:39:19 UTC) #7
aberent
On 2013/08/27 21:39:19, jeremy wrote: > Nothing in there should be used by the renderer, ...
7 years, 3 months ago (2013-08-28 12:46:30 UTC) #8
aberent
On 2013/08/28 12:46:30, aberent wrote: > On 2013/08/27 21:39:19, jeremy wrote: > > Nothing in ...
7 years, 3 months ago (2013-08-28 13:30:24 UTC) #9
aberent
On 2013/08/28 13:30:24, aberent wrote: > On 2013/08/28 12:46:30, aberent wrote: > > On 2013/08/27 ...
7 years, 3 months ago (2013-08-28 14:57:52 UTC) #10
aberent
New patch will follow once I have tested it. Yaron: are you happy for this ...
7 years, 3 months ago (2013-08-28 15:53:05 UTC) #11
jeremy
lgtm with nits https://codereview.chromium.org/23443009/diff/23001/chrome/app/android/chrome_main_delegate_android.cc File chrome/app/android/chrome_main_delegate_android.cc (right): https://codereview.chromium.org/23443009/diff/23001/chrome/app/android/chrome_main_delegate_android.cc#newcode38 chrome/app/android/chrome_main_delegate_android.cc:38: // of UI thread tasks a ...
7 years, 3 months ago (2013-08-28 18:15:56 UTC) #12
Yaron
lgtm I guess it's fine for now (and since I'm OOO for the next little ...
7 years, 3 months ago (2013-08-29 00:43:54 UTC) #13
aberent
On 2013/08/29 00:43:54, Yaron (ooo - Sep 9) wrote: > lgtm > > I guess ...
7 years, 3 months ago (2013-08-29 11:24:21 UTC) #14
aberent
https://codereview.chromium.org/23443009/diff/23001/chrome/android/java/src/org/chromium/chrome/common/StartupMetricUtils.java File chrome/android/java/src/org/chromium/chrome/common/StartupMetricUtils.java (right): https://codereview.chromium.org/23443009/diff/23001/chrome/android/java/src/org/chromium/chrome/common/StartupMetricUtils.java#newcode10 chrome/android/java/src/org/chromium/chrome/common/StartupMetricUtils.java:10: private static long sApplicationStartWallClockMs_; On 2013/08/29 00:43:54, Yaron (ooo ...
7 years, 3 months ago (2013-08-29 11:45:12 UTC) #15
aberent
John, Can you give me an owner lgtm on a few files in this patch ...
7 years, 3 months ago (2013-08-29 11:51:03 UTC) #16
jam
lgtm https://codereview.chromium.org/23443009/diff/44001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/23443009/diff/44001/chrome/app/chrome_main_delegate.cc#newcode343 chrome/app/chrome_main_delegate.cc:343: #if !defined(OS_ANDROID) nit: this would be slightly easier ...
7 years, 3 months ago (2013-08-29 15:16:16 UTC) #17
aberent
https://codereview.chromium.org/23443009/diff/44001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/23443009/diff/44001/chrome/app/chrome_main_delegate.cc#newcode343 chrome/app/chrome_main_delegate.cc:343: #if !defined(OS_ANDROID) On 2013/08/29 15:16:17, jam wrote: > nit: ...
7 years, 3 months ago (2013-08-29 16:19:44 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aberent@chromium.org/23443009/8001
7 years, 3 months ago (2013-08-29 16:19:59 UTC) #19
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=73955
7 years, 3 months ago (2013-08-29 19:14:22 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aberent@chromium.org/23443009/8001
7 years, 3 months ago (2013-08-30 08:34:07 UTC) #21
commit-bot: I haz the power
7 years, 3 months ago (2013-08-30 15:42:28 UTC) #22
Message was sent while issue was closed.
Change committed as 220588

Powered by Google App Engine
This is Rietveld 408576698