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

Unified Diff: content/renderer/render_thread_impl.h

Issue 2391423004: Add UMA for PurgeAndSuspend. (Closed)
Patch Set: Fixed histograms.xml. Created 4 years, 2 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
« no previous file with comments | « content/child/child_discardable_shared_memory_manager.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.h
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index 8296b5f1327e9be9ca2c4424d2a7062ce0c140b0..350310221dfd283c9abeb940b3bc28a31ad8a23c 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -23,6 +23,7 @@
#include "base/threading/thread_checker.h"
#include "base/timer/timer.h"
#include "build/build_config.h"
+#include "content/child/child_discardable_shared_memory_manager.h"
#include "content/child/child_thread_impl.h"
#include "content/child/memory/child_memory_coordinator_impl.h"
#include "content/common/associated_interface_registry_impl.h"
@@ -43,6 +44,7 @@
#include "net/base/network_change_notifier.h"
#include "third_party/WebKit/public/platform/WebConnectionType.h"
#include "third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h"
+#include "third_party/WebKit/public/web/WebMemoryStatistics.h"
#include "ui/gfx/native_widget_types.h"
#if defined(OS_MACOSX)
@@ -545,6 +547,8 @@ class CONTENT_EXPORT RenderThreadImpl
void OnRendererHidden();
void OnRendererVisible();
+ void RecordPurgeAndSuspendMetrics() const;
+
void ReleaseFreeMemory();
void OnSyncMemoryPressure(
@@ -742,6 +746,7 @@ class CONTENT_EXPORT RenderThreadImpl
mojom::RenderFrameMessageFilterAssociatedPtr render_frame_message_filter_;
mojom::RenderMessageFilterAssociatedPtr render_message_filter_;
+ base::CancelableClosure record_purge_suspend_metric_closure_;
bool is_renderer_suspended_;
DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
« no previous file with comments | « content/child/child_discardable_shared_memory_manager.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698