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

Unified Diff: content/browser/dom_storage/dom_storage_context_impl.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/dom_storage_context_impl.cc
diff --git a/content/browser/dom_storage/dom_storage_context_impl.cc b/content/browser/dom_storage/dom_storage_context_impl.cc
index e4ccfe0dec5f62f9f7117751b5856eee252c91e0..11b8ca5f4f33545b4d4f8952eb2cf75e65479f9d 100644
--- a/content/browser/dom_storage/dom_storage_context_impl.cc
+++ b/content/browser/dom_storage/dom_storage_context_impl.cc
@@ -4,6 +4,7 @@
#include "content/browser/dom_storage/dom_storage_context_impl.h"
+#include <inttypes.h>
#include <stddef.h>
#include <stdlib.h>
@@ -476,7 +477,8 @@ bool DOMStorageContextImpl::OnMemoryDump(
DOMStorageNamespace::UsageStatistics total_stats =
GetTotalNamespaceStatistics(namespaces_);
auto mad = pmd->CreateAllocatorDump(
- StringPrintf("dom_storage/%p/cache_size", this));
+ base::StringPrintf("dom_storage/0x%" PRIXPTR "/cache_size",
+ reinterpret_cast<uintptr_t>(this)));
mad->AddScalar(base::trace_event::MemoryAllocatorDump::kNameSize,
base::trace_event::MemoryAllocatorDump::kUnitsBytes,
total_stats.total_cache_size);

Powered by Google App Engine
This is Rietveld 408576698