Skip to content

Commit e2ae327

Browse files
committed
C#: Add internal extractor diagnostics query
1 parent ece952a commit e2ae327

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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

0 commit comments

Comments
 (0)