summaryrefslogtreecommitdiffstats
path: root/content/browser/gpu/gpu_process_host.h
diff options
context:
space:
mode:
authorfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-11 01:49:53 +0000
committerfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-11 01:49:53 +0000
commitfb25beeae913c5f4ffa5152a93cf7b2fa3845508 (patch)
tree2e23ecfe93a9fc60d8dc1f2e71ad87c02ed10742 /content/browser/gpu/gpu_process_host.h
parent84fed87f4577b3658cd4933a2c81cb57ea76f3d6 (diff)
downloadchromium_src-fb25beeae913c5f4ffa5152a93cf7b2fa3845508.zip
chromium_src-fb25beeae913c5f4ffa5152a93cf7b2fa3845508.tar.gz
chromium_src-fb25beeae913c5f4ffa5152a93cf7b2fa3845508.tar.bz2
Log GPU process launch time to UMA.
BUG=106509 TEST=manually checked chrome://histograms/GPU.GPUPro Review URL: http://codereview.chromium.org/10037025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131691 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/gpu/gpu_process_host.h')
-rw-r--r--content/browser/gpu/gpu_process_host.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/content/browser/gpu/gpu_process_host.h b/content/browser/gpu/gpu_process_host.h
index ab39961..579caf9 100644
--- a/content/browser/gpu/gpu_process_host.h
+++ b/content/browser/gpu/gpu_process_host.h
@@ -14,6 +14,7 @@
#include "base/memory/linked_ptr.h"
#include "base/process.h"
#include "base/threading/non_thread_safe.h"
+#include "base/time.h"
#include "content/common/content_export.h"
#include "content/common/gpu/gpu_process_launch_causes.h"
#include "content/public/browser/browser_child_process_host_delegate.h"
@@ -178,6 +179,9 @@ class GpuProcessHost : public content::BrowserChildProcessHostDelegate,
// Whether we actually launched a GPU process.
bool process_launched_;
+ // Time Init started. Used to log total GPU process startup time to UMA.
+ base::TimeTicks init_start_time_;
+
// Master switch for enabling/disabling GPU acceleration for the current
// browser session. It does not change the acceleration settings for
// existing tabs, just the future ones.