|
7 | 7 | using Microsoft.Performance.SDK.Extensibility; |
8 | 8 | using Microsoft.Performance.SDK.Processing; |
9 | 9 | using Microsoft.Performance.SDK; |
| 10 | +using LTTngCds.CookerData; |
10 | 11 |
|
11 | 12 | namespace LTTngDataExtensions.Tables |
12 | 13 | { |
13 | 14 | [Table] |
14 | | - [RequiresCooker(LTTngThreadDataCooker.CookerPath)] |
| 15 | + [RequiresSourceCooker(LTTngConstants.SourceId, LTTngThreadDataCooker.Identifier)] |
15 | 16 | public class ExecutionEvent |
16 | 17 | { |
17 | 18 | public static TableDescriptor TableDescriptor = new TableDescriptor( |
18 | 19 | Guid.Parse("{91A234C3-3A3C-4230-85DA-76DE1C8E86BA}"), |
19 | 20 | "Execution Events", |
20 | 21 | "Context Switches History", |
21 | | - "Linux LTTng"); |
| 22 | + "Linux LTTng", |
| 23 | + defaultLayout: TableLayoutStyle.GraphAndTable); |
22 | 24 |
|
23 | 25 | private static readonly ColumnConfiguration cpuColumn = |
24 | 26 | new ColumnConfiguration( |
@@ -141,7 +143,7 @@ public class ExecutionEvent |
141 | 143 | public static void BuildTable(ITableBuilder tableBuilder, IDataExtensionRetrieval tableData) |
142 | 144 | { |
143 | 145 | var threads = tableData.QueryOutput<IReadOnlyList<IExecutionEvent>>( |
144 | | - DataOutputPath.Create(LTTngThreadDataCooker.CookerPath + "/ExecutionEvents")); |
| 146 | + DataOutputPath.ForSource(LTTngConstants.SourceId, LTTngThreadDataCooker.Identifier, nameof(LTTngThreadDataCooker.ExecutionEvents))); |
145 | 147 | if (threads.Count == 0) |
146 | 148 | { |
147 | 149 | return; |
@@ -170,7 +172,6 @@ public static void BuildTable(ITableBuilder tableBuilder, IDataExtensionRetrieva |
170 | 172 | switchInTimeColumn, |
171 | 173 | switchOutTimeColumn |
172 | 174 | }, |
173 | | - Layout = TableLayoutStyle.GraphAndTable, |
174 | 175 | InitialFilterShouldKeep = false, |
175 | 176 | InitialFilterQuery = filterIdleSamplesQuery, |
176 | 177 | }; |
@@ -203,7 +204,6 @@ public static void BuildTable(ITableBuilder tableBuilder, IDataExtensionRetrieva |
203 | 204 | TableConfiguration.GraphColumn, |
204 | 205 | percentCpuUsagePreset, |
205 | 206 | }, |
206 | | - Layout = TableLayoutStyle.GraphAndTable, |
207 | 207 | InitialFilterShouldKeep = false, |
208 | 208 | InitialFilterQuery = filterIdleSamplesQuery, |
209 | 209 | }; |
@@ -236,7 +236,6 @@ public static void BuildTable(ITableBuilder tableBuilder, IDataExtensionRetrieva |
236 | 236 | TableConfiguration.GraphColumn, |
237 | 237 | percentCpuUsagePreset, |
238 | 238 | }, |
239 | | - Layout = TableLayoutStyle.GraphAndTable, |
240 | 239 | InitialFilterShouldKeep = false, |
241 | 240 | InitialFilterQuery = filterIdleSamplesQuery, |
242 | 241 | }; |
|
0 commit comments