instrumentation: Add compileTrace option

Adds support for optionally saving and reporting trace files generated by
Clang's `-ftime-trace` option.
This commit is contained in:
Martin Duffy
2026-06-05 11:06:09 -04:00
committed by Brad King
parent 059170f19c
commit 0480222ff4
14 changed files with 268 additions and 59 deletions

View File

@@ -76,7 +76,7 @@ equivalent JSON query file.
API_VERSION 1
DATA_VERSION 1.0
HOOKS postGenerate preCMakeBuild postCMakeBuild
OPTIONS staticSystemInformation dynamicSystemInformation trace
OPTIONS staticSystemInformation dynamicSystemInformation compileTrace trace
CALLBACK ${CMAKE_COMMAND} -P /path/to/handle_data.cmake
CALLBACK ${CMAKE_COMMAND} -P /path/to/handle_data_2.cmake
CUSTOM_CONTENT myString STRING string
@@ -92,7 +92,7 @@ equivalent JSON query file.
"postGenerate", "preCMakeBuild", "postCMakeBuild"
],
"options": [
"staticSystemInformation", "dynamicSystemInformation", "trace"
"staticSystemInformation", "dynamicSystemInformation", "compileTrace", "trace"
],
"callbacks": [
"/path/to/cmake -P /path/to/handle_data.cmake",