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

Side by Side Diff: content/renderer/render_thread_impl.h

Issue 2643723007: time metric: record elapsed time from when the backgrounded and purged renderer is foregrounded unti (Closed)
Patch Set: Fixed. Created 3 years, 10 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/renderer/render_thread_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_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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 size_t blink_gc_kb; 490 size_t blink_gc_kb;
491 size_t malloc_mb; 491 size_t malloc_mb;
492 size_t discardable_kb; 492 size_t discardable_kb;
493 size_t v8_main_thread_isolate_mb; 493 size_t v8_main_thread_isolate_mb;
494 size_t total_allocated_mb; 494 size_t total_allocated_mb;
495 size_t non_discardable_total_allocated_mb; 495 size_t non_discardable_total_allocated_mb;
496 size_t total_allocated_per_render_view_mb; 496 size_t total_allocated_per_render_view_mb;
497 }; 497 };
498 void GetRendererMemoryMetrics(RendererMemoryMetrics* memory_metrics) const; 498 void GetRendererMemoryMetrics(RendererMemoryMetrics* memory_metrics) const;
499 499
500 bool NeedsToRecordFirstActivePaint() const {
501 return needs_to_record_first_active_paint_;
502 }
503
500 protected: 504 protected:
501 RenderThreadImpl( 505 RenderThreadImpl(
502 const InProcessChildThreadParams& params, 506 const InProcessChildThreadParams& params,
503 std::unique_ptr<blink::scheduler::RendererScheduler> scheduler, 507 std::unique_ptr<blink::scheduler::RendererScheduler> scheduler,
504 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); 508 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue);
505 RenderThreadImpl( 509 RenderThreadImpl(
506 std::unique_ptr<base::MessageLoop> main_message_loop, 510 std::unique_ptr<base::MessageLoop> main_message_loop,
507 std::unique_ptr<blink::scheduler::RendererScheduler> scheduler); 511 std::unique_ptr<blink::scheduler::RendererScheduler> scheduler);
508 512
509 private: 513 private:
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 mojo::AssociatedBinding<mojom::Renderer> renderer_binding_; 764 mojo::AssociatedBinding<mojom::Renderer> renderer_binding_;
761 765
762 mojom::RenderFrameMessageFilterAssociatedPtr render_frame_message_filter_; 766 mojom::RenderFrameMessageFilterAssociatedPtr render_frame_message_filter_;
763 mojom::RenderMessageFilterAssociatedPtr render_message_filter_; 767 mojom::RenderMessageFilterAssociatedPtr render_message_filter_;
764 scoped_refptr<mojom::ThreadSafeRenderMessageFilterAssociatedPtr> 768 scoped_refptr<mojom::ThreadSafeRenderMessageFilterAssociatedPtr>
765 thread_safe_render_message_filter_; 769 thread_safe_render_message_filter_;
766 770
767 base::CancelableClosure record_purge_suspend_metric_closure_; 771 base::CancelableClosure record_purge_suspend_metric_closure_;
768 RendererMemoryMetrics purge_and_suspend_memory_metrics_; 772 RendererMemoryMetrics purge_and_suspend_memory_metrics_;
769 base::CancelableClosure record_purge_suspend_growth_metric_closure_; 773 base::CancelableClosure record_purge_suspend_growth_metric_closure_;
774 bool needs_to_record_first_active_paint_;
770 775
771 int32_t client_id_; 776 int32_t client_id_;
772 777
773 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 778 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
774 }; 779 };
775 780
776 #if defined(COMPILER_MSVC) 781 #if defined(COMPILER_MSVC)
777 #pragma warning(pop) 782 #pragma warning(pop)
778 #endif 783 #endif
779 784
780 } // namespace content 785 } // namespace content
781 786
782 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 787 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698