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

Unified Diff: gin/v8_isolate_memory_dump_provider.cc

Issue 2051773002: [DoNotSubmit] Added peak_size to v8/malloc and test benchmark. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « base/trace_event/trace_config.cc ('k') | tools/perf/benchmarks/memory_infra.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/v8_isolate_memory_dump_provider.cc
diff --git a/gin/v8_isolate_memory_dump_provider.cc b/gin/v8_isolate_memory_dump_provider.cc
index 6b26c3129621b94749c913171e0e85a76955ab37..5df638836df80683cb1b1d9fb71bb2d45145685e 100644
--- a/gin/v8_isolate_memory_dump_provider.cc
+++ b/gin/v8_isolate_memory_dump_provider.cc
@@ -160,6 +160,9 @@ void V8IsolateMemoryDumpProvider::DumpHeapStatistics(
malloc_dump->AddScalar(base::trace_event::MemoryAllocatorDump::kNameSize,
base::trace_event::MemoryAllocatorDump::kUnitsBytes,
heap_statistics.malloced_memory());
+ malloc_dump->AddScalar("peak_size",
+ base::trace_event::MemoryAllocatorDump::kUnitsBytes,
+ heap_statistics.malloced_peak_memory());
const char* system_allocator_name =
base::trace_event::MemoryDumpManager::GetInstance()
->system_allocator_pool_name();
« no previous file with comments | « base/trace_event/trace_config.cc ('k') | tools/perf/benchmarks/memory_infra.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698