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

Unified Diff: content/child/child_discardable_shared_memory_manager.cc

Issue 2058973002: testing Base URL: https://chromium.googlesource.com/chromium/src.git@set_whitelist
Patch Set: rebase. 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 | « chrome/test/base/tracing_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_discardable_shared_memory_manager.cc
diff --git a/content/child/child_discardable_shared_memory_manager.cc b/content/child/child_discardable_shared_memory_manager.cc
index a0236a40ca7a2686a5dd86c80345455adc36ab3f..8cf113a7556b279c668514e2767c9c76d7300d83 100644
--- a/content/child/child_discardable_shared_memory_manager.cc
+++ b/content/child/child_discardable_shared_memory_manager.cc
@@ -4,6 +4,8 @@
#include "content/child/child_discardable_shared_memory_manager.h"
+#include <inttypes.h>
+
#include <algorithm>
#include <utility>
@@ -18,6 +20,7 @@
#include "base/process/memory.h"
#include "base/process/process_metrics.h"
#include "base/strings/string_number_conversions.h"
+#include "base/strings/stringprintf.h"
#include "base/threading/thread_task_runner_handle.h"
#include "base/trace_event/memory_dump_manager.h"
#include "base/trace_event/trace_event.h"
@@ -217,7 +220,9 @@ bool ChildDiscardableSharedMemoryManager::OnMemoryDump(
if (args.level_of_detail ==
base::trace_event::MemoryDumpLevelOfDetail::BACKGROUND) {
base::trace_event::MemoryAllocatorDump* total_dump =
- pmd->CreateAllocatorDump("discardable");
+ pmd->CreateAllocatorDump(
+ base::StringPrintf("discardable/child_0x%" PRIXPTR,
+ reinterpret_cast<uintptr_t>(this)));
const size_t total_size = heap_.GetSize();
const size_t freelist_size = heap_.GetSizeOfFreeLists();
total_dump->AddScalar(base::trace_event::MemoryAllocatorDump::kNameSize,
« no previous file with comments | « chrome/test/base/tracing_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698