You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(criterion-compat): build walltime URIs like instrumented URIs
Walltime mode rebuilt the benchmark URI in the analysis phase from
`current_file`/`macro_group`, which are only set by
`criterion_group!`/`criterion_main!`. Bypassing the macros with a
custom main produced URIs like `::::my_group::my_bench`.
Build the URI once in `BenchmarkGroup` (skipping empty segments and
deriving the file from the caller location when the macros are
bypassed) and thread it through `BenchmarkId::codspeed_uri`, so
walltime reports the same URI as the instrumented modes.
Also derive the caller file per `benchmark_group` call instead of
filling it once on `Criterion`, so benchmark functions living in
different files don't inherit a stale file from a previous call.
Fixes COD-2324
0 commit comments