Include Graphics.Pipeline trace event to 'graphics.pipeline' category.
This would aid in performing scroll jank analysis with low-overhead
tracing and help with category management for tracing.
Bug: b/292050130
Change-Id: If6858484b8f9ebedca90ec9e1ea847c63512e5f7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4748732
Reviewed-by: Vladimir Levin <vmpstr@chromium.org>
Reviewed-by: Stephen Nusko <nuskos@chromium.org>
Commit-Queue: Aman Verma <amanvr@google.com>
Cr-Commit-Position: refs/heads/main@{#1181495}
diff --git a/cc/slim/frame_sink_impl.cc b/cc/slim/frame_sink_impl.cc
index 50b0254..2613202 100644
--- a/cc/slim/frame_sink_impl.cc
+++ b/cc/slim/frame_sink_impl.cc
@@ -313,7 +313,7 @@
{
TRACE_EVENT(
- "viz,benchmark", "Graphics.Pipeline",
+ "viz,benchmark,graphics.pipeline", "Graphics.Pipeline",
perfetto::Flow::Global(begin_frame_args.trace_id),
[&](perfetto::EventContext ctx) {
auto* event = ctx.event<perfetto::protos::pbzero::ChromeTrackEvent>();
@@ -337,7 +337,7 @@
void FrameSinkImpl::SendDidNotProduceFrame(
const viz::BeginFrameArgs& begin_frame_args) {
TRACE_EVENT(
- "viz,benchmark", "Graphics.Pipeline",
+ "viz,benchmark,graphics.pipeline", "Graphics.Pipeline",
perfetto::Flow::Global(begin_frame_args.trace_id),
[&](perfetto::EventContext ctx) {
auto* event = ctx.event<perfetto::protos::pbzero::ChromeTrackEvent>();