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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 2774813002: Hang Monitor UMA (Closed)
Patch Set: fixed typo and period Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 // Starts a hang monitor timeout. If there's already a hang monitor timeout 725 // Starts a hang monitor timeout. If there's already a hang monitor timeout
726 // the new one will only fire if it has a shorter delay than the time 726 // the new one will only fire if it has a shorter delay than the time
727 // left on the existing timeouts. 727 // left on the existing timeouts.
728 void StartHangMonitorTimeout(base::TimeDelta delay, 728 void StartHangMonitorTimeout(base::TimeDelta delay,
729 blink::WebInputEvent::Type event_type); 729 blink::WebInputEvent::Type event_type);
730 730
731 // Stops all existing hang monitor timeouts and assumes the renderer is 731 // Stops all existing hang monitor timeouts and assumes the renderer is
732 // responsive. 732 // responsive.
733 void StopHangMonitorTimeout(); 733 void StopHangMonitorTimeout();
734 734
735 // Used for UMA logging how long the renderer was unresponsive.
736 void LogHangMonitorUnresponsive();
737
735 // true if a renderer has once been valid. We use this flag to display a sad 738 // true if a renderer has once been valid. We use this flag to display a sad
736 // tab only when we lose our renderer and not if a paint occurs during 739 // tab only when we lose our renderer and not if a paint occurs during
737 // initialization. 740 // initialization.
738 bool renderer_initialized_; 741 bool renderer_initialized_;
739 742
740 // True if |Destroy()| has been called. 743 // True if |Destroy()| has been called.
741 bool destroyed_; 744 bool destroyed_;
742 745
743 // Our delegate, which wants to know mainly about keyboard events. 746 // Our delegate, which wants to know mainly about keyboard events.
744 // It will remain non-NULL until DetachDelegate() is called. 747 // It will remain non-NULL until DetachDelegate() is called.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 // by the renderer. 816 // by the renderer.
814 int in_flight_event_count_; 817 int in_flight_event_count_;
815 818
816 // Flag to detect recursive calls to GetBackingStore(). 819 // Flag to detect recursive calls to GetBackingStore().
817 bool in_get_backing_store_; 820 bool in_get_backing_store_;
818 821
819 // Used for UMA histogram logging to measure the time for a repaint view 822 // Used for UMA histogram logging to measure the time for a repaint view
820 // operation to finish. 823 // operation to finish.
821 base::TimeTicks repaint_start_time_; 824 base::TimeTicks repaint_start_time_;
822 825
826 // Used for UMA histogram logging to measure how long the renderer is hanging.
827 base::TimeTicks hang_start_time_;
828
823 // Set to true if we shouldn't send input events from the render widget. 829 // Set to true if we shouldn't send input events from the render widget.
824 bool ignore_input_events_; 830 bool ignore_input_events_;
825 831
826 // Set when we update the text direction of the selected input element. 832 // Set when we update the text direction of the selected input element.
827 bool text_direction_updated_; 833 bool text_direction_updated_;
828 blink::WebTextDirection text_direction_; 834 blink::WebTextDirection text_direction_;
829 835
830 // Set when we cancel updating the text direction. 836 // Set when we cancel updating the text direction.
831 // This flag also ignores succeeding update requests until we call 837 // This flag also ignores succeeding update requests until we call
832 // NotifyTextDirection(). 838 // NotifyTextDirection().
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 uint32_t last_compositor_frame_sink_id_ = 0; 948 uint32_t last_compositor_frame_sink_id_ = 0;
943 949
944 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 950 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
945 951
946 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 952 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
947 }; 953 };
948 954
949 } // namespace content 955 } // namespace content
950 956
951 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 957 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698