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

Unified Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 2350423003: [Tentaive patch for discussion] Add Purge+Suspend metrics as UMA.
Patch Set: Add UMA to tab_manager Created 4 years, 3 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/browser/renderer_host/render_process_host_impl.h
diff --git a/content/browser/renderer_host/render_process_host_impl.h b/content/browser/renderer_host/render_process_host_impl.h
index aac8afa60c469e67337e8ded3fe2a9e2d5abfcf8..e8fe20f5b077bc040149ef8c05b013fb2018753f 100644
--- a/content/browser/renderer_host/render_process_host_impl.h
+++ b/content/browser/renderer_host/render_process_host_impl.h
@@ -184,6 +184,7 @@ class CONTENT_EXPORT RenderProcessHostImpl
void ForceReleaseWorkerRefCounts() override;
bool IsWorkerRefCountDisabled() override;
void PurgeAndSuspend() override;
+ const base::TimeTicks& GetLastPurgeAndSuspendTime() const override;
mojom::RouteProvider* GetRemoteRouteProvider();
@@ -491,6 +492,8 @@ class CONTENT_EXPORT RenderProcessHostImpl
// Stores the time at which the first call to Init happened.
base::TimeTicks init_time_;
+ base::TimeTicks last_purge_and_suspend_time_;
+
// Used to launch and terminate the process without blocking the UI thread.
std::unique_ptr<ChildProcessLauncher> child_process_launcher_;

Powered by Google App Engine
This is Rietveld 408576698