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

Unified Diff: content/renderer/render_thread_impl.h

Issue 2566043004: Add renderer memory metrics (Closed)
Patch Set: Fixed test failure Created 3 years, 11 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/renderer/render_frame_impl.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 508a1dc00840c1e8468225cf72b31eef4b86e161..c8c9b8a269b6b8ae62842f21d517aef8ad2be7cf 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -481,6 +481,18 @@ class CONTENT_EXPORT RenderThreadImpl
// ChildMemoryCoordinatorDelegate implementation.
void OnTrimMemoryImmediately() override;
+ struct RendererMemoryMetrics {
+ size_t partition_alloc_kb;
+ size_t blink_gc_kb;
+ size_t malloc_mb;
+ size_t discardable_kb;
+ size_t v8_main_thread_isolate_mb;
+ size_t total_allocated_mb;
+ size_t non_discardable_total_allocated_mb;
+ size_t total_allocated_per_render_view_mb;
+ };
+ void GetRendererMemoryMetrics(RendererMemoryMetrics* memory_metrics) const;
+
protected:
RenderThreadImpl(
const InProcessChildThreadParams& params,
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698