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

Unified Diff: content/browser/dom_storage/dom_storage_area.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_area.cc
diff --git a/content/browser/dom_storage/dom_storage_area.cc b/content/browser/dom_storage/dom_storage_area.cc
index 7bb96f34564f1d9b7225d4b4b4e7bb237f4a631d..81c2be745d637f0256e1140804ba3ec1cdb77dc7 100644
--- a/content/browser/dom_storage/dom_storage_area.cc
+++ b/content/browser/dom_storage/dom_storage_area.cc
@@ -4,6 +4,8 @@
#include "content/browser/dom_storage/dom_storage_area.h"
+#include <inttypes.h>
+
#include <algorithm>
#include <cctype> // for std::isalnum
@@ -347,7 +349,9 @@ void DOMStorageArea::OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd) {
if (!std::isalnum(url[index]))
url[index] = '_';
}
- std::string name = StringPrintf("dom_storage/%s/%p", url.c_str(), this);
+ std::string name =
+ base::StringPrintf("dom_storage/%s/0x%" PRIXPTR, url.c_str(),
Primiano Tucci (use gerrit) 2016/06/14 08:33:51 uh, how is this working today without base? cannot
ssid 2016/06/14 20:28:15 So, we figured that C++ adds the namespaces of the
+ reinterpret_cast<uintptr_t>(this));
const char* system_allocator_name =
base::trace_event::MemoryDumpManager::GetInstance()
« no previous file with comments | « cc/tiles/software_image_decode_controller.cc ('k') | content/browser/dom_storage/dom_storage_context_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698