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

Unified Diff: cc/tiles/software_image_decode_controller.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: cc/tiles/software_image_decode_controller.cc
diff --git a/cc/tiles/software_image_decode_controller.cc b/cc/tiles/software_image_decode_controller.cc
index ed433e8cc0a01a24da508ed86c4ae669b41b64b0..a44d7d0feecc309d5ebe748df60c1a1876a37815 100644
--- a/cc/tiles/software_image_decode_controller.cc
+++ b/cc/tiles/software_image_decode_controller.cc
@@ -4,6 +4,7 @@
#include "cc/tiles/software_image_decode_controller.h"
+#include <inttypes.h>
#include <stdint.h>
#include <algorithm>
@@ -707,9 +708,9 @@ void SoftwareImageDecodeController::DumpImageMemoryForCache(
for (const auto& image_pair : cache) {
std::string dump_name = base::StringPrintf(
- "cc/image_memory/controller_%p/%s/image_%" PRIu64 "_id_%d", this,
- cache_name, image_pair.second->tracing_id(),
- image_pair.first.image_id());
+ "cc/image_memory/controller_0x%" PRIXPTR "/%s/image_%" PRIu64 "_id_%d",
+ reinterpret_cast<uintptr_t>(this), cache_name,
+ image_pair.second->tracing_id(), image_pair.first.image_id());
base::trace_event::MemoryAllocatorDump* dump =
image_pair.second->memory()->CreateMemoryAllocatorDump(
dump_name.c_str(), pmd);

Powered by Google App Engine
This is Rietveld 408576698