Merge pull request #6643 from MathiasVP/add-frontend-and-extractor-diagnostic-query

C++: Add uninterpreted query for obtaining frontend and extraction time
This commit is contained in:
Geoffrey White
2021-09-15 11:17:58 +01:00
committed by GitHub

View File

@@ -0,0 +1,12 @@
/**
* @name Sum of frontend and extractor time
* @description The sum of elapsed frontend time, and the sum of elapsed extractor time.
* This query is for internal use only and may change without notice.
* @kind table
* @id cpp/frontend-and-extractor-time
*/
import cpp
select sum(Compilation c, float seconds | compilation_time(c, _, 2, seconds) | seconds) as sum_frontend_elapsed_seconds,
sum(Compilation c, float seconds | compilation_time(c, _, 4, seconds) | seconds) as sum_extractor_elapsed_seconds