@@ -26,6 +26,7 @@ public static class PerfettoPluginConstants
2626 public const string RawCookerId = nameof ( PerfettoRawCooker ) ;
2727 public const string CounterCookerId = nameof ( PerfettoCounterCooker ) ;
2828 public const string CpuCounterTrackCookerId = nameof ( PerfettoCpuCounterTrackCooker ) ;
29+ public const string GpuCounterTrackCookerId = nameof ( PerfettoGpuCounterTrackCooker ) ;
2930 public const string ProcessCounterTrackCookerId = nameof ( PerfettoProcessCounterTrackCooker ) ;
3031 public const string CounterTrackCookerId = nameof ( PerfettoCounterTrackCooker ) ;
3132 public const string ProcessTrackCookerId = nameof ( PerfettoProcessTrackCooker ) ;
@@ -42,6 +43,7 @@ public static class PerfettoPluginConstants
4243 public const string FtraceEventCookerId = nameof ( PerfettoFtraceEventCooker ) ;
4344 public const string CpuFrequencyEventCookerId = nameof ( PerfettoCpuFrequencyEventCooker ) ;
4445 public const string CpuCountersEventCookerId = nameof ( PerfettoCpuCountersEventCooker ) ;
46+ public const string GpuCountersEventCookerId = nameof ( PerfettoGpuCountersEventCooker ) ;
4547 public const string ProcessMemoryEventCookerId = nameof ( PerfettoProcessMemoryEventCooker ) ;
4648 public const string SystemMemoryEventCookerId = nameof ( PerfettoSystemMemoryEventCooker ) ;
4749 public const string CpuSamplingEventCookerId = nameof ( PerfettoCpuSamplingEventCooker ) ;
@@ -57,6 +59,7 @@ public static class PerfettoPluginConstants
5759 public const string RawEvent = PerfettoRawEvent . Key ;
5860 public const string CounterEvent = PerfettoCounterEvent . Key ;
5961 public const string CpuCounterTrackEvent = PerfettoCpuCounterTrackEvent . Key ;
62+ public const string GpuCounterTrackEvent = PerfettoGpuCounterTrackEvent . Key ;
6063 public const string ProcessCounterTrackEvent = PerfettoProcessCounterTrackEvent . Key ;
6164 public const string CounterTrackEvent = PerfettoCounterTrackEvent . Key ;
6265 public const string ProcessTrackEvent = PerfettoProcessTrackEvent . Key ;
@@ -73,67 +76,71 @@ public static class PerfettoPluginConstants
7376 public const string FtraceEvent = nameof ( PerfettoFtraceEvent ) ;
7477 public const string CpuFrequencyEvent = nameof ( PerfettoCpuFrequencyEvent ) ;
7578 public const string CpuCountersEvent = nameof ( PerfettoCpuCountersEvent ) ;
79+ public const string GpuCountersEvent = nameof ( PerfettoGpuCountersEvent ) ;
7680 public const string ProcessMemoryEvent = nameof ( PerfettoProcessMemoryEvent ) ;
7781 public const string SystemMemoryEvent = nameof ( PerfettoSystemMemoryEvent ) ;
7882 public const string CpuSamplingEvent = nameof ( PerfettoCpuSamplingEvent ) ;
7983
8084 // Paths for source cookers
8185 public static readonly DataCookerPath SliceCookerPath =
82- new DataCookerPath ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . SliceCookerId ) ;
86+ DataCookerPath . ForSource ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . SliceCookerId ) ;
8387 public static readonly DataCookerPath ArgCookerPath =
84- new DataCookerPath ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . ArgCookerId ) ;
88+ DataCookerPath . ForSource ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . ArgCookerId ) ;
8589 public static readonly DataCookerPath ThreadTrackCookerPath =
86- new DataCookerPath ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . ThreadTrackCookerId ) ;
90+ DataCookerPath . ForSource ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . ThreadTrackCookerId ) ;
8791 public static readonly DataCookerPath ThreadCookerPath =
88- new DataCookerPath ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . ThreadCookerId ) ;
92+ DataCookerPath . ForSource ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . ThreadCookerId ) ;
8993 public static readonly DataCookerPath ProcessCookerPath =
90- new DataCookerPath ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . ProcessCookerId ) ;
94+ DataCookerPath . ForSource ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . ProcessCookerId ) ;
9195 public static readonly DataCookerPath SchedSliceCookerPath =
92- new DataCookerPath ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . SchedSliceCookerId ) ;
96+ DataCookerPath . ForSource ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . SchedSliceCookerId ) ;
9397 public static readonly DataCookerPath AndroidLogCookerPath =
94- new DataCookerPath ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . AndroidLogCookerId ) ;
98+ DataCookerPath . ForSource ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . AndroidLogCookerId ) ;
9599 public static readonly DataCookerPath RawCookerPath =
96- new DataCookerPath ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . RawCookerId ) ;
100+ DataCookerPath . ForSource ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . RawCookerId ) ;
97101 public static readonly DataCookerPath CounterCookerPath =
98- new DataCookerPath ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . CounterCookerId ) ;
102+ DataCookerPath . ForSource ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . CounterCookerId ) ;
99103 public static readonly DataCookerPath CpuCounterTrackCookerPath =
100- new DataCookerPath ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . CpuCounterTrackCookerId ) ;
104+ DataCookerPath . ForSource ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . CpuCounterTrackCookerId ) ;
105+ public static readonly DataCookerPath GpuCounterTrackCookerPath =
106+ DataCookerPath . ForSource ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . GpuCounterTrackCookerId ) ;
101107 public static readonly DataCookerPath ProcessCounterTrackCookerPath =
102- new DataCookerPath ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . ProcessCounterTrackCookerId ) ;
108+ DataCookerPath . ForSource ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . ProcessCounterTrackCookerId ) ;
103109 public static readonly DataCookerPath CounterTrackCookerPath =
104- new DataCookerPath ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . CounterTrackCookerId ) ;
110+ DataCookerPath . ForSource ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . CounterTrackCookerId ) ;
105111 public static readonly DataCookerPath ProcessTrackCookerPath =
106- new DataCookerPath ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . ProcessTrackCookerId ) ;
112+ DataCookerPath . ForSource ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . ProcessTrackCookerId ) ;
107113 public static readonly DataCookerPath PerfSampleCookerPath =
108- new DataCookerPath ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . PerfSampleCookerId ) ;
114+ DataCookerPath . ForSource ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . PerfSampleCookerId ) ;
109115 public static readonly DataCookerPath StackProfileCallSiteCookerPath =
110- new DataCookerPath ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . StackProfileCallSiteCookerId ) ;
116+ DataCookerPath . ForSource ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . StackProfileCallSiteCookerId ) ;
111117 public static readonly DataCookerPath StackProfileFrameCookerPath =
112- new DataCookerPath ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . StackProfileFrameCookerId ) ;
118+ DataCookerPath . ForSource ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . StackProfileFrameCookerId ) ;
113119 public static readonly DataCookerPath StackProfileMappingCookerPath =
114- new DataCookerPath ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . StackProfileMappingCookerId ) ;
120+ DataCookerPath . ForSource ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . StackProfileMappingCookerId ) ;
115121 public static readonly DataCookerPath StackProfileSymbolCookerPath =
116- new DataCookerPath ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . StackProfileSymbolCookerId ) ;
122+ DataCookerPath . ForSource ( PerfettoPluginConstants . ParserId , PerfettoPluginConstants . StackProfileSymbolCookerId ) ;
117123
118124 // Paths for composite cookers
119125 public static readonly DataCookerPath GenericEventCookerPath =
120- new DataCookerPath ( PerfettoPluginConstants . GenericEventCookerId ) ;
126+ DataCookerPath . ForComposite ( PerfettoPluginConstants . GenericEventCookerId ) ;
121127 public static readonly DataCookerPath CpuSchedEventCookerPath =
122- new DataCookerPath ( PerfettoPluginConstants . CpuSchedEventCookerId ) ;
128+ DataCookerPath . ForComposite ( PerfettoPluginConstants . CpuSchedEventCookerId ) ;
123129 public static readonly DataCookerPath LogcatEventCookerPath =
124- new DataCookerPath ( PerfettoPluginConstants . LogcatEventCookerId ) ;
130+ DataCookerPath . ForComposite ( PerfettoPluginConstants . LogcatEventCookerId ) ;
125131 public static readonly DataCookerPath FtraceEventCookerPath =
126- new DataCookerPath ( PerfettoPluginConstants . FtraceEventCookerId ) ;
132+ DataCookerPath . ForComposite ( PerfettoPluginConstants . FtraceEventCookerId ) ;
127133 public static readonly DataCookerPath CpuFrequencyEventCookerPath =
128- new DataCookerPath ( PerfettoPluginConstants . CpuFrequencyEventCookerId ) ;
134+ DataCookerPath . ForComposite ( PerfettoPluginConstants . CpuFrequencyEventCookerId ) ;
129135 public static readonly DataCookerPath CpuCountersEventCookerPath =
130- new DataCookerPath ( PerfettoPluginConstants . CpuCountersEventCookerId ) ;
136+ DataCookerPath . ForComposite ( PerfettoPluginConstants . CpuCountersEventCookerId ) ;
137+ public static readonly DataCookerPath GpuCountersEventCookerPath =
138+ DataCookerPath . ForComposite ( PerfettoPluginConstants . GpuCountersEventCookerId ) ;
131139 public static readonly DataCookerPath ProcessMemoryEventCookerPath =
132- new DataCookerPath ( PerfettoPluginConstants . ProcessMemoryEventCookerId ) ;
140+ DataCookerPath . ForComposite ( PerfettoPluginConstants . ProcessMemoryEventCookerId ) ;
133141 public static readonly DataCookerPath SystemMemoryEventCookerPath =
134- new DataCookerPath ( PerfettoPluginConstants . SystemMemoryEventCookerId ) ;
142+ DataCookerPath . ForComposite ( PerfettoPluginConstants . SystemMemoryEventCookerId ) ;
135143 public static readonly DataCookerPath CpuSamplingEventCookerPath =
136- new DataCookerPath ( PerfettoPluginConstants . CpuSamplingEventCookerId ) ;
137-
144+ DataCookerPath . ForComposite ( PerfettoPluginConstants . CpuSamplingEventCookerId ) ;
138145 }
139146}
0 commit comments