Index: base/trace_event/heap_profiler_stack_frame_deduplicator.cc |
diff --git a/base/trace_event/heap_profiler_stack_frame_deduplicator.cc b/base/trace_event/heap_profiler_stack_frame_deduplicator.cc |
index 22957804f137b38b44f1610e6621c698702bbbd3..49a235051c0731fd930bd7a897fc793cb867ab40 100644 |
--- a/base/trace_event/heap_profiler_stack_frame_deduplicator.cc |
+++ b/base/trace_event/heap_profiler_stack_frame_deduplicator.cc |
@@ -4,6 +4,7 @@ |
#include "base/trace_event/heap_profiler_stack_frame_deduplicator.h" |
+#include <inttypes.h> |
#include <stddef.h> |
#include <string> |
@@ -90,6 +91,12 @@ void StackFrameDeduplicator::AppendAsTraceFormat(std::string* out) const { |
static_cast<const char*>(frame.value)); |
frame_node_value->SetString("name", stringify_buffer); |
break; |
+ case StackFrame::Type::PROGRAM_COUNTER: |
+ SStringPrintf(&stringify_buffer, |
+ "pc:%" PRIxPTR, |
+ reinterpret_cast<uintptr_t>(frame.value)); |
+ frame_node_value->SetString("name", stringify_buffer); |
+ break; |
} |
if (frame_node->parent_frame_index >= 0) { |
SStringPrintf(&stringify_buffer, "%d", frame_node->parent_frame_index); |