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

Unified Diff: content/renderer/render_thread_impl.h

Issue 196103006: Add V8 heap statistics in a time-line manner in tracing. (Closed) Base URL: /home/dmikurube/repos/chromium@work-sai-json
Patch Set: rebased Created 6 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/renderer/render_thread_impl.h
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index 3bc7f9dc887ef8e135bdc1605eab2820c33b6e6e..6fa9447c4e151c99166aabc02685226c05d50b4c 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -97,6 +97,7 @@ class PeerConnectionTracker;
class RendererDemuxerAndroid;
class RendererWebKitPlatformSupportImpl;
class RenderProcessObserver;
+class V8HeapStatisticsMonitor;
class VideoCaptureImplManager;
class WebGraphicsContext3DCommandBufferImpl;
class WebRTCIdentityService;
@@ -198,6 +199,10 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread,
return webkit_platform_support_.get();
}
+ V8HeapStatisticsMonitor* v8_heap_statistics_monitor() {
+ return v8_heap_statistics_monitor_.get();
+ }
+
IPC::ForwardingMessageFilter* compositor_output_surface_filter() const {
return compositor_output_surface_filter_.get();
}
@@ -517,6 +522,8 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread,
// The following flag is used to control layout test specific behavior.
bool layout_test_mode_;
+ scoped_ptr<V8HeapStatisticsMonitor> v8_heap_statistics_monitor_;
+
// Timer that periodically calls IdleHandler.
base::RepeatingTimer<RenderThreadImpl> idle_timer_;

Powered by Google App Engine
This is Rietveld 408576698