pub struct ProcessTimings {
pub wall_ms: f64,
pub startup_ms: f64,
pub thread_pool_ms: f64,
pub config_ms: f64,
pub git_ms: f64,
pub analysis_ms: f64,
pub post_analysis_ms: f64,
pub output_ms: f64,
}Expand description
Process-level spans around the analysis pipeline.
The pipeline stages cover only part of a command. These spans cover the
rest: argument parsing, the thread pool, config loading, git, the work after
the analysis and the report output. wall_ms is the time from process start
to this report, so wall_ms minus the sum of the other spans is time that
no span measured.
Fields§
§wall_ms: f64Time from process start to this report.
startup_ms: f64Time from process start until the command starts: argument parsing, logging setup and the thread pool.
thread_pool_ms: f64The part of startup_ms that builds the worker thread pool.
config_ms: f64Config loading and validation for the command.
git_ms: f64Git calls outside the pipeline, for example --changed-since.
analysis_ms: f64The analysis call. The pipeline stage fields are parts of this span.
post_analysis_ms: f64Work after the analysis and before the output: scope filters, rules, baselines and gates.
output_ms: f64Report serialization and write.