File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
csharp/ql/src/Metrics/internal Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * @name Extractor diagnostics
3
+ * @description This query is for internal use only and may change without notice.
4
+ * @kind table
5
+ * @id csharp/extractor-diagnostics
6
+ */
7
+
8
+ import csharp
9
+
10
+ bindingset [ i]
11
+ private float getCompilationTimeSum ( int i ) {
12
+ result = sum ( float f | compilation_time ( _, _, i , f ) | f )
13
+ }
14
+
15
+ select getCompilationTimeSum ( 0 ) as sum_frontend_cpu_seconds ,
16
+ getCompilationTimeSum ( 1 ) as sum_frontend_elapsed_seconds ,
17
+ getCompilationTimeSum ( 4 ) as sum_frontend_user_seconds ,
18
+ getCompilationTimeSum ( 2 ) as sum_extractor_cpu_seconds ,
19
+ getCompilationTimeSum ( 3 ) as sum_extractor_elapsed_seconds ,
20
+ getCompilationTimeSum ( 5 ) as sum_extractor_user_seconds ,
21
+ sum ( float f | compilation_finished ( _, f , _) | f ) as sum_total_cpu_seconds ,
22
+ sum ( float f | compilation_finished ( _, _, f ) | f ) as sum_total_elapsed_seconds ,
23
+ getCompilationTimeSum ( 6 ) as sum_peak_working_set_mb ,
24
+ max ( float f | compilation_time ( _, _, 6 , f ) | f ) as max_peak_working_set_mb
You can’t perform that action at this time.
0 commit comments