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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2663733002: Fix PurgeAndSuspend.MemoryGrowth.* UMA. (Closed)
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 791b768e20150c16dbc36542af686f796eeac3b0..757d071264e36eb5e330f34def2d31a13c8b642b 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -1825,7 +1825,7 @@ void RenderThreadImpl::RecordPurgeAndSuspendMemoryGrowthMetrics() const {
"PurgeAndSuspend.Experimental.MemoryGrowth.BlinkGCKB",
GET_MEMORY_GROWTH(memory_metrics, purge_and_suspend_memory_metrics_,
blink_gc_kb));
- UMA_HISTOGRAM_MEMORY_MB(
+ UMA_HISTOGRAM_MEMORY_KB(
"PurgeAndSuspend.Experimental.MemoryGrowth.MallocKB",
GET_MEMORY_GROWTH(memory_metrics, purge_and_suspend_memory_metrics_,
malloc_mb) * 1024);
@@ -1833,11 +1833,11 @@ void RenderThreadImpl::RecordPurgeAndSuspendMemoryGrowthMetrics() const {
"PurgeAndSuspend.Experimental.MemoryGrowth.DiscardableKB",
GET_MEMORY_GROWTH(memory_metrics, purge_and_suspend_memory_metrics_,
discardable_kb));
- UMA_HISTOGRAM_MEMORY_MB(
+ UMA_HISTOGRAM_MEMORY_KB(
"PurgeAndSuspend.Experimental.MemoryGrowth.V8MainThreadIsolateKB",
GET_MEMORY_GROWTH(memory_metrics, purge_and_suspend_memory_metrics_,
v8_main_thread_isolate_mb) * 1024);
- UMA_HISTOGRAM_MEMORY_MB(
+ UMA_HISTOGRAM_MEMORY_KB(
"PurgeAndSuspend.Experimental.MemoryGrowth.TotalAllocatedKB",
GET_MEMORY_GROWTH(memory_metrics, purge_and_suspend_memory_metrics_,
total_allocated_mb) * 1024);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698