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

Unified Diff: content/browser/gpu_process_host.cc

Issue 6791017: GPU.GPUProcessLifetimeEvents Crash probes added (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: base:: needed Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/process_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu_process_host.cc
diff --git a/content/browser/gpu_process_host.cc b/content/browser/gpu_process_host.cc
index 8eda8236593bc32e1246e6fdca5360a448f3e07f..6b1e7840c4b0b3dfd9e1594c93ad66b4825c8d6e 100644
--- a/content/browser/gpu_process_host.cc
+++ b/content/browser/gpu_process_host.cc
@@ -7,6 +7,7 @@
#include "base/command_line.h"
#include "base/memory/ref_counted.h"
#include "base/metrics/histogram.h"
+#include "base/process_util.h"
#include "base/string_piece.h"
#include "chrome/browser/gpu_process_host_ui_shim.h"
#include "chrome/browser/tab_contents/render_view_host_delegate_helper.h"
@@ -177,6 +178,10 @@ void GpuProcessHost::OnChildDied() {
UMA_HISTOGRAM_ENUMERATION("GPU.GPUProcessLifetimeEvents",
DIED_FIRST_TIME + g_gpu_crash_count,
GPU_PROCESS_LIFETIME_EVENT_MAX);
+ base::TerminationStatus status = GetChildTerminationStatus(NULL);
+ UMA_HISTOGRAM_ENUMERATION("GPU.GPUProcessTerminationStatus",
+ status,
+ base::TERMINATION_STATUS_MAX_ENUM);
BrowserChildProcessHost::OnChildDied();
}
« no previous file with comments | « base/process_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698