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

Unified Diff: base/trace_event/heap_profiler_stack_frame_deduplicator.cc

Issue 2980083002: [tracing] Add trace events to key heap profiler functions. (Closed)
Patch Set: Don't trace in TraceLog Created 3 years, 5 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: 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 5e314984749925da7d2efc5f1f3e7852b5be8302..a7dac9c567083601c48a822dfc43a1d2f237899a 100644
--- a/base/trace_event/heap_profiler_stack_frame_deduplicator.cc
+++ b/base/trace_event/heap_profiler_stack_frame_deduplicator.cc
@@ -13,6 +13,7 @@
#include "base/strings/stringprintf.h"
#include "base/trace_event/heap_profiler_string_deduplicator.h"
#include "base/trace_event/memory_usage_estimator.h"
+#include "base/trace_event/trace_event.h"
#include "base/trace_event/trace_event_argument.h"
#include "base/trace_event/trace_event_memory_overhead.h"
@@ -80,6 +81,8 @@ int StackFrameDeduplicator::Insert(const StackFrame* beginFrame,
}
void StackFrameDeduplicator::SerializeIncrementally(TracedValue* traced_value) {
+ TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("memory-infra"),
+ "StackFrameDeduplicator::SerializeIncrementally");
std::string stringify_buffer;
for (; last_exported_index_ < frames_.size(); ++last_exported_index_) {
« no previous file with comments | « base/trace_event/heap_profiler_event_writer.cc ('k') | base/trace_event/heap_profiler_string_deduplicator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698