summaryrefslogtreecommitdiffstats
path: root/chrome_frame
diff options
context:
space:
mode:
authorrtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-28 15:58:19 +0000
committerrtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-28 15:58:19 +0000
commit6a6d0d14ebcf97546e859eaf6790db85cb3533a9 (patch)
tree960c811afba07e1d1e3100f580d8e9253a77d738 /chrome_frame
parentc28b48791424d183c3efb62d7defde562c55e1b5 (diff)
downloadchromium_src-6a6d0d14ebcf97546e859eaf6790db85cb3533a9.zip
chromium_src-6a6d0d14ebcf97546e859eaf6790db85cb3533a9.tar.gz
chromium_src-6a6d0d14ebcf97546e859eaf6790db85cb3533a9.tar.bz2
Track execution phase of browser process and track it as
a UMA histogram. As a first attempt, tracked the following - Before starting metrics service, - Before creating profile - Before starting startup time bomb - Before starting thread watcher - Before starting main message loop - Before starting shutdown time bomb - clean shutdown. R=jar@chromium.org Review URL: https://codereview.chromium.org/28283002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231334 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame')
-rw-r--r--chrome_frame/test/reliability/page_load_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome_frame/test/reliability/page_load_test.cc b/chrome_frame/test/reliability/page_load_test.cc
index 389a3ab..666b967 100644
--- a/chrome_frame/test/reliability/page_load_test.cc
+++ b/chrome_frame/test/reliability/page_load_test.cc
@@ -136,6 +136,7 @@ class PageLoadTest : public testing::Test {
int crash_dump_count;
// These are stability metrics recorded by Chrome itself
bool browser_clean_exit;
+ int browser_execution_phase;
int browser_launch_count;
int page_load_count;
int browser_crash_count;
@@ -446,6 +447,7 @@ class PageLoadTest : public testing::Test {
return;
scoped_refptr<PrefRegistrySimple> registry = new PrefRegistrySimple();
registry->RegisterBooleanPref(prefs::kStabilityExitedCleanly, false);
+ registry->RegisterIntegerPref(prefs::kStabilityExecutionPhase, 0);
registry->RegisterIntegerPref(prefs::kStabilityLaunchCount, -1);
registry->RegisterIntegerPref(prefs::kStabilityPageLoadCount, -1);
registry->RegisterIntegerPref(prefs::kStabilityCrashCount, 0);
@@ -457,6 +459,8 @@ class PageLoadTest : public testing::Test {
metrics->browser_clean_exit =
local_state->GetBoolean(prefs::kStabilityExitedCleanly);
+ metrics->browser_execution_phase =
+ local_state->GetInteger(prefs::kStabilityExecutionPhase);
metrics->browser_launch_count =
local_state->GetInteger(prefs::kStabilityLaunchCount);
metrics->page_load_count =