Index: content/browser/gpu/gpu_process_host.cc |
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc |
index 7a13cbf3d6e7274f0aa81c4c2d65bbf64fe10daa..1049fdb009851e383f10b2170b9a061a0aa1c540 100644 |
--- a/content/browser/gpu/gpu_process_host.cc |
+++ b/content/browser/gpu/gpu_process_host.cc |
@@ -346,12 +346,20 @@ GpuProcessHost::~GpuProcessHost() { |
// options). |
if (process_launched_ && kind_ == GPU_PROCESS_KIND_SANDBOXED) { |
if (software_rendering_) { |
+ UMA_HISTOGRAM_ENUMERATION("GPU.SoftwareRendererLifetimeEvents", |
+ DIED_FIRST_TIME + g_gpu_software_crash_count, |
+ GPU_PROCESS_LIFETIME_EVENT_MAX); |
+ |
if (++g_gpu_software_crash_count >= kGpuMaxCrashCount) { |
// The software renderer is too unstable to use. Disable it for current |
// session. |
gpu_enabled_ = false; |
} |
} else { |
+ UMA_HISTOGRAM_ENUMERATION("GPU.GPUProcessLifetimeEvents", |
+ DIED_FIRST_TIME + g_gpu_crash_count, |
+ GPU_PROCESS_LIFETIME_EVENT_MAX); |
+ |
if (++g_gpu_crash_count >= kGpuMaxCrashCount) { |
#if !defined(OS_CHROMEOS) |
// The gpu process is too unstable to use. Disable it for current |
@@ -362,9 +370,6 @@ GpuProcessHost::~GpuProcessHost() { |
} |
} |
} |
- UMA_HISTOGRAM_ENUMERATION("GPU.GPUProcessLifetimeEvents", |
- DIED_FIRST_TIME + g_gpu_crash_count, |
- GPU_PROCESS_LIFETIME_EVENT_MAX); |
int exit_code; |
base::TerminationStatus status = process_->GetTerminationStatus(&exit_code); |