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

Unified Diff: content/common/discardable_shared_memory_heap.cc

Issue 1308213005: Fix the size dumped by child discardable manager for tracing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@discardable
Patch Set: Created 5 years, 4 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/common/discardable_shared_memory_heap.cc
diff --git a/content/common/discardable_shared_memory_heap.cc b/content/common/discardable_shared_memory_heap.cc
index 8996979a730afc1e252de45557bf3acf0574e038..f1990ba99cf9519f3607da2da11c5662a2396413 100644
--- a/content/common/discardable_shared_memory_heap.cc
+++ b/content/common/discardable_shared_memory_heap.cc
@@ -74,10 +74,11 @@ DiscardableSharedMemoryHeap::ScopedMemorySegment::CreateMemoryAllocatorDump(
base::trace_event::MemoryAllocatorDump* dump = pmd->CreateAllocatorDump(name);
dump->AddScalar(base::trace_event::MemoryAllocatorDump::kNameSize,
base::trace_event::MemoryAllocatorDump::kUnitsBytes,
- static_cast<uint64_t>(span->length()));
+ static_cast<uint64_t>(span->shared_memory()->mapped_size()));
reveman 2015/08/26 15:56:18 hm, mapped_size is the total size of the segment b
ssid 2015/08/26 16:00:35 Ah yes, I got confused here because of the host si
- pmd->AddSuballocation(dump->guid(),
- base::StringPrintf("discardable/segment_%d", id_));
+ pmd->AddSuballocation(
+ dump->guid(),
+ base::StringPrintf("discardable/segment_%d/allocated_objects", id_));
return dump;
}
« 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