Commit e31b8cfe authored by vangelis@chromium.org's avatar vangelis@chromium.org

Cleanup GPU lifetime event histograms.

Track crashes when running the s/w rasterizer separately. Also fix an off
by one error in the crash counts.

BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151966 0039d316-1c4b-4281-b951-d872f2087c98
parent 84fa95fa
......@@ -354,12 +354,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
......@@ -370,9 +378,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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment