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

Unified Diff: content/browser/renderer_host/render_widget_host_delegate.h

Issue 2136173003: Add an histogram to differentiate between hang types of the renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: content/browser/renderer_host/render_widget_host_delegate.h
diff --git a/content/browser/renderer_host/render_widget_host_delegate.h b/content/browser/renderer_host/render_widget_host_delegate.h
index 6777b9c999261e7fc63cbc10a9d51c45dbc9a3ff..6593b826ea7c099f7b8e121cf58eb1da6fee510f 100644
--- a/content/browser/renderer_host/render_widget_host_delegate.h
+++ b/content/browser/renderer_host/render_widget_host_delegate.h
@@ -133,9 +133,25 @@ class CONTENT_EXPORT RenderWidgetHostDelegate {
virtual RenderWidgetHostImpl* GetFocusedRenderWidgetHost(
RenderWidgetHostImpl* receiving_widget);
+ // Enum used in histograms to differentiate between the different
nasko 2016/07/12 17:18:02 nit: Enum is redundant, as it is obvious from the
clamy 2016/07/13 10:02:21 Done.
+ // types of renderer hang reported by
+ // RenderWidgetHostDelegate::RendererUnresponsive.
+ // Only add values at the end, do not delete values.
nasko 2016/07/12 17:18:02 Does that mean we will keep this enum/UMA forever?
Alexei Svitkine (slow) 2016/07/12 18:36:40 You can always delete histograms. That's fine. Th
clamy 2016/07/13 10:02:21 I'm not sure how DumpWithoutCrashing works, and it
nasko 2016/07/15 17:32:08 DumpWithoutCrashing literally does what it says -
+ enum RendererUnresponsiveType {
+ RENDERER_UNRESPONSIVE_UNKNOWN = 0,
+ RENDERER_UNRESPONSIVE_IN_FLIGHT_EVENTS = 1,
+ RENDERER_UNRESPONSIVE_DIALOG_CLOSED = 2,
+ RENDERER_UNRESPONSIVE_DIALOG_SUPPRESSED = 3,
+ RENDERER_UNRESPONSIVE_BEFORE_UNLOAD = 4,
+ RENDERER_UNRESPONSIVE_UNLOAD = 5,
+ RENDERER_UNRESPONSIVE_CLOSE_PAGE = 6,
+ RENDERER_UNRESPONSIVE_MAX = RENDERER_UNRESPONSIVE_CLOSE_PAGE,
+ };
+
// Notification that the renderer has become unresponsive. The
// delegate can use this notification to show a warning to the user.
- virtual void RendererUnresponsive(RenderWidgetHostImpl* render_widget_host) {}
+ virtual void RendererUnresponsive(RenderWidgetHostImpl* render_widget_host,
+ RendererUnresponsiveType type) {}
// Notification that a previously unresponsive renderer has become
// responsive again. The delegate can use this notification to end the

Powered by Google App Engine
This is Rietveld 408576698