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

Unified Diff: base/trace_event/heap_profiler_type_name_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
« no previous file with comments | « base/trace_event/heap_profiler_string_deduplicator.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/heap_profiler_type_name_deduplicator.cc
diff --git a/base/trace_event/heap_profiler_type_name_deduplicator.cc b/base/trace_event/heap_profiler_type_name_deduplicator.cc
index 0f011653b1ea0d735f2e562e2a324ff599d931eb..8224b5a9cfa92f7aa6869b99fa967112edb9e71b 100644
--- a/base/trace_event/heap_profiler_type_name_deduplicator.cc
+++ b/base/trace_event/heap_profiler_type_name_deduplicator.cc
@@ -87,6 +87,8 @@ int TypeNameDeduplicator::Insert(const char* type_name) {
}
void TypeNameDeduplicator::SerializeIncrementally(TracedValue* traced_value) {
+ TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("memory-infra"),
+ "TypeNameDeduplicator::SerializeIncrementally");
for (const auto* name_and_id : new_type_ids_) {
traced_value->BeginDictionary();
« no previous file with comments | « base/trace_event/heap_profiler_string_deduplicator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698