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

Unified Diff: content/browser/dom_storage/session_storage_database.cc

Issue 2067543003: [tracing] Replace %p with %PRIXPTR in the memory dump names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix include. 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
Index: content/browser/dom_storage/session_storage_database.cc
diff --git a/content/browser/dom_storage/session_storage_database.cc b/content/browser/dom_storage/session_storage_database.cc
index 219c184e24496ae9d10af45881dcb3d50b55b837..3a9457121d297554867fd5309ba3558dcfe9e76d 100644
--- a/content/browser/dom_storage/session_storage_database.cc
+++ b/content/browser/dom_storage/session_storage_database.cc
@@ -4,6 +4,7 @@
#include "content/browser/dom_storage/session_storage_database.h"
+#include <inttypes.h>
#include <stddef.h>
#include <vector>
@@ -345,7 +346,8 @@ void SessionStorageDatabase::OnMemoryDump(
DCHECK(res);
auto mad = pmd->CreateAllocatorDump(
- base::StringPrintf("dom_storage/session_storage_%p", this));
+ base::StringPrintf("dom_storage/session_storage_0x%" PRIXPTR,
+ reinterpret_cast<uintptr_t>(this)));
mad->AddScalar(base::trace_event::MemoryAllocatorDump::kNameSize,
base::trace_event::MemoryAllocatorDump::kUnitsBytes, size);

Powered by Google App Engine
This is Rietveld 408576698