[tracing] Add slow tag explicitly to disabled by default trace categories
This CL explicitly adds "slow" tag to disabled by default categories.
Perfetto already does this implicitly, which I plan on removing in
favor of explicit tags.
Note that perfetto no longer adds the tag if already present:
https://github.com/google/perfetto/pull/2060
Bug: b/413057996
Change-Id: I656030c5725d06e3b704ed6364894ca2284180aa
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/399940
Reviewed-by: Evan Shrubsole <eshr@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
Cr-Commit-Position: refs/heads/main@{#45144}
diff --git a/rtc_base/trace_categories.h b/rtc_base/trace_categories.h
index ef4070c..e6b3ab5 100644
--- a/rtc_base/trace_categories.h
+++ b/rtc_base/trace_categories.h
@@ -27,8 +27,9 @@
RTC_EXPORT,
perfetto::Category("webrtc"),
perfetto::Category("webrtc_stats"),
- perfetto::Category(TRACE_DISABLED_BY_DEFAULT("webrtc")),
- perfetto::Category(TRACE_DISABLED_BY_DEFAULT("webrtc_stats")));
+ perfetto::Category(TRACE_DISABLED_BY_DEFAULT("webrtc")).SetTags("slow"),
+ perfetto::Category(TRACE_DISABLED_BY_DEFAULT("webrtc_stats"))
+ .SetTags("slow"));
PERFETTO_USE_CATEGORIES_FROM_NAMESPACE(webrtc);