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

Unified Diff: base/trace_event/heap_profiler_string_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_string_deduplicator.cc
diff --git a/base/trace_event/heap_profiler_string_deduplicator.cc b/base/trace_event/heap_profiler_string_deduplicator.cc
index bf035a19c03044b5cf675d77caa85ff65ea292db..5938e306175e77a5c105ac718f3ed5b1b307cad5 100644
--- a/base/trace_event/heap_profiler_string_deduplicator.cc
+++ b/base/trace_event/heap_profiler_string_deduplicator.cc
@@ -38,6 +38,8 @@ int StringDeduplicator::Insert(StringPiece string) {
}
void StringDeduplicator::SerializeIncrementally(TracedValue* traced_value) {
+ TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("memory-infra"),
+ "StringDeduplicator::SerializeIncrementally");
for (; last_serialized_index_ != strings_.size(); ++last_serialized_index_) {
traced_value->BeginDictionary();
traced_value->SetInteger("id", last_serialized_index_);
« no previous file with comments | « base/trace_event/heap_profiler_stack_frame_deduplicator.cc ('k') | base/trace_event/heap_profiler_type_name_deduplicator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698