commit | 870f62641f173dca32f8192d51bf126bbcc43404 | [log] [tgz] |
---|---|---|
author | Takashi SAKAMOTO <[email protected]> | Tue Aug 22 04:08:27 2017 |
committer | Commit Bot <[email protected]> | Tue Aug 22 04:08:27 2017 |
tree | 1ec1271ed47622c88c56028531c4500fe8867ec6 | |
parent | 75339eda1f391761f7f3d72c24cf5edc9451a56b [diff] [blame] |
Add PurgeAndSuspend.Experimental.TimeToFirstActivePaint.AfterBackgrounded.5min. We need this metric to understand the effect of PurgeAndSuspendAggressive experiment. BUG=670539 Change-Id: If086477b11f514f58e84e9cc6e260fa1758af013 Reviewed-on: https://chromium-review.googlesource.com/616333 Reviewed-by: Avi Drissman <[email protected]> Reviewed-by: Kentaro Hara <[email protected]> Reviewed-by: Ilya Sherman <[email protected]> Commit-Queue: Takashi Sakamoto <[email protected]> Cr-Commit-Position: refs/heads/master@{#496207}
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h index cfab7ab..9d23e3b 100644 --- a/content/renderer/render_thread_impl.h +++ b/content/renderer/render_thread_impl.h
@@ -511,9 +511,7 @@ }; bool GetRendererMemoryMetrics(RendererMemoryMetrics* memory_metrics) const; - bool NeedsToRecordFirstActivePaint() const { - return needs_to_record_first_active_paint_; - } + bool NeedsToRecordFirstActivePaint(int metric_type) const; protected: RenderThreadImpl( @@ -794,6 +792,7 @@ RendererMemoryMetrics purge_and_suspend_memory_metrics_; bool needs_to_record_first_active_paint_; + base::TimeTicks was_backgrounded_time_; int process_foregrounded_count_; int32_t client_id_;