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

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

Issue 2843373004: Record renderer's memory growth 30min, 60min and 90min after purging separately. (Closed)
Patch Set: Fixed comment Created 3 years, 7 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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 577
578 void OnMemoryPressure( 578 void OnMemoryPressure(
579 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); 579 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level);
580 580
581 void OnCreateNewSharedWorker( 581 void OnCreateNewSharedWorker(
582 const WorkerProcessMsg_CreateWorker_Params& params); 582 const WorkerProcessMsg_CreateWorker_Params& params);
583 bool RendererIsHidden() const; 583 bool RendererIsHidden() const;
584 void OnRendererHidden(); 584 void OnRendererHidden();
585 void OnRendererVisible(); 585 void OnRendererVisible();
586 586
587 void RecordPurgeAndSuspendMemoryGrowthMetrics() const; 587 void RecordPurgeAndSuspendMemoryGrowthMetrics(
588 const char* suffix,
589 int foregrounded_count_when_purged);
588 590
589 void ReleaseFreeMemory(); 591 void ReleaseFreeMemory();
590 592
591 void OnSyncMemoryPressure( 593 void OnSyncMemoryPressure(
592 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); 594 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level);
593 595
594 std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( 596 std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource(
595 int routing_id); 597 int routing_id);
596 598
597 std::unique_ptr<cc::SyntheticBeginFrameSource> 599 std::unique_ptr<cc::SyntheticBeginFrameSource>
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 mojom::StoragePartitionServicePtr storage_partition_service_; 781 mojom::StoragePartitionServicePtr storage_partition_service_;
780 782
781 AssociatedInterfaceRegistryImpl associated_interfaces_; 783 AssociatedInterfaceRegistryImpl associated_interfaces_;
782 784
783 mojo::AssociatedBinding<mojom::Renderer> renderer_binding_; 785 mojo::AssociatedBinding<mojom::Renderer> renderer_binding_;
784 786
785 mojom::RenderFrameMessageFilterAssociatedPtr render_frame_message_filter_; 787 mojom::RenderFrameMessageFilterAssociatedPtr render_frame_message_filter_;
786 mojom::RenderMessageFilterAssociatedPtr render_message_filter_; 788 mojom::RenderMessageFilterAssociatedPtr render_message_filter_;
787 789
788 RendererMemoryMetrics purge_and_suspend_memory_metrics_; 790 RendererMemoryMetrics purge_and_suspend_memory_metrics_;
789 base::CancelableClosure record_purge_suspend_growth_metric_closure_;
790 bool needs_to_record_first_active_paint_; 791 bool needs_to_record_first_active_paint_;
792 int process_foregrounded_count_;
791 793
792 int32_t client_id_; 794 int32_t client_id_;
793 795
794 variations::ChildProcessFieldTrialSyncer field_trial_syncer_; 796 variations::ChildProcessFieldTrialSyncer field_trial_syncer_;
795 797
796 mojom::FrameSinkProviderPtr frame_sink_provider_; 798 mojom::FrameSinkProviderPtr frame_sink_provider_;
797 799
798 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 800 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
799 }; 801 };
800 802
801 #if defined(COMPILER_MSVC) 803 #if defined(COMPILER_MSVC)
802 #pragma warning(pop) 804 #pragma warning(pop)
803 #endif 805 #endif
804 806
805 } // namespace content 807 } // namespace content
806 808
807 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 809 #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