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

Side by Side 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: addressed 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 unified diff | Download patch
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_RENDERER_RENDER_THREAD_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 class MediaStreamCenter; 91 class MediaStreamCenter;
92 class MemoryObserver; 92 class MemoryObserver;
93 class PeerConnectionDependencyFactory; 93 class PeerConnectionDependencyFactory;
94 class MidiMessageFilter; 94 class MidiMessageFilter;
95 class NetInfoDispatcher; 95 class NetInfoDispatcher;
96 class P2PSocketDispatcher; 96 class P2PSocketDispatcher;
97 class PeerConnectionTracker; 97 class PeerConnectionTracker;
98 class RendererDemuxerAndroid; 98 class RendererDemuxerAndroid;
99 class RendererWebKitPlatformSupportImpl; 99 class RendererWebKitPlatformSupportImpl;
100 class RenderProcessObserver; 100 class RenderProcessObserver;
101 class V8HeapStatisticsMonitor;
101 class VideoCaptureImplManager; 102 class VideoCaptureImplManager;
102 class WebGraphicsContext3DCommandBufferImpl; 103 class WebGraphicsContext3DCommandBufferImpl;
103 class WebRTCIdentityService; 104 class WebRTCIdentityService;
104 105
105 // The RenderThreadImpl class represents a background thread where RenderView 106 // The RenderThreadImpl class represents a background thread where RenderView
106 // instances live. The RenderThread supports an API that is used by its 107 // instances live. The RenderThread supports an API that is used by its
107 // consumer to talk indirectly to the RenderViews and supporting objects. 108 // consumer to talk indirectly to the RenderViews and supporting objects.
108 // Likewise, it provides an API for the RenderViews to talk back to the main 109 // Likewise, it provides an API for the RenderViews to talk back to the main
109 // process (i.e., their corresponding WebContentsImpl). 110 // process (i.e., their corresponding WebContentsImpl).
110 // 111 //
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 } 193 }
193 void set_layout_test_mode(bool layout_test_mode) { 194 void set_layout_test_mode(bool layout_test_mode) {
194 layout_test_mode_ = layout_test_mode; 195 layout_test_mode_ = layout_test_mode;
195 } 196 }
196 197
197 RendererWebKitPlatformSupportImpl* webkit_platform_support() const { 198 RendererWebKitPlatformSupportImpl* webkit_platform_support() const {
198 DCHECK(webkit_platform_support_); 199 DCHECK(webkit_platform_support_);
199 return webkit_platform_support_.get(); 200 return webkit_platform_support_.get();
200 } 201 }
201 202
203 V8HeapStatisticsMonitor* v8_heap_statistics_monitor() {
204 return v8_heap_statistics_monitor_.get();
205 }
206
202 IPC::ForwardingMessageFilter* compositor_output_surface_filter() const { 207 IPC::ForwardingMessageFilter* compositor_output_surface_filter() const {
203 return compositor_output_surface_filter_.get(); 208 return compositor_output_surface_filter_.get();
204 } 209 }
205 210
206 InputHandlerManager* input_handler_manager() const { 211 InputHandlerManager* input_handler_manager() const {
207 return input_handler_manager_.get(); 212 return input_handler_manager_.get();
208 } 213 }
209 214
210 // Will be NULL if threaded compositing has not been enabled. 215 // Will be NULL if threaded compositing has not been enabled.
211 scoped_refptr<base::MessageLoopProxy> compositor_message_loop_proxy() const { 216 scoped_refptr<base::MessageLoopProxy> compositor_message_loop_proxy() const {
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 // The number of idle handler calls that skip sending idle notifications. 516 // The number of idle handler calls that skip sending idle notifications.
512 int idle_notifications_to_skip_; 517 int idle_notifications_to_skip_;
513 518
514 bool suspend_webkit_shared_timer_; 519 bool suspend_webkit_shared_timer_;
515 bool notify_webkit_of_modal_loop_; 520 bool notify_webkit_of_modal_loop_;
516 bool webkit_shared_timer_suspended_; 521 bool webkit_shared_timer_suspended_;
517 522
518 // The following flag is used to control layout test specific behavior. 523 // The following flag is used to control layout test specific behavior.
519 bool layout_test_mode_; 524 bool layout_test_mode_;
520 525
526 scoped_ptr<V8HeapStatisticsMonitor> v8_heap_statistics_monitor_;
527
521 // Timer that periodically calls IdleHandler. 528 // Timer that periodically calls IdleHandler.
522 base::RepeatingTimer<RenderThreadImpl> idle_timer_; 529 base::RepeatingTimer<RenderThreadImpl> idle_timer_;
523 530
524 // The channel from the renderer process to the GPU process. 531 // The channel from the renderer process to the GPU process.
525 scoped_refptr<GpuChannelHost> gpu_channel_; 532 scoped_refptr<GpuChannelHost> gpu_channel_;
526 533
527 // Cache of variables that are needed on the compositor thread by 534 // Cache of variables that are needed on the compositor thread by
528 // GpuChannelHostFactory methods. 535 // GpuChannelHostFactory methods.
529 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; 536 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_;
530 537
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 bool is_one_copy_enabled_; 588 bool is_one_copy_enabled_;
582 589
583 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; 590 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_;
584 591
585 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 592 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
586 }; 593 };
587 594
588 } // namespace content 595 } // namespace content
589 596
590 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 597 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698