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
Criterion.rs benchmarks support a --profile-time option for doing profiling. However, cargo bench offers no way to run the benchmarks in a profiler, so users have to do that manually.
cargo-criterion could allow the user to provide a command template. For example: cargo criterion --run-with 'perf record -o %TARGET%-perf.data -g %ARGS%' -- --profile-time 120 my_benchmark_name
This would replace %TARGET% with the benchmark target name and %ARGS% with the benchmark target executable and its arguments, then invoke the resulting command.
The text was updated successfully, but these errors were encountered:
bheisler
changed the title
Add option to wrap benchmark target command.
Add option to wrap benchmark target command
Jun 29, 2020
Criterion.rs benchmarks support a
--profile-time
option for doing profiling. However,cargo bench
offers no way to run the benchmarks in a profiler, so users have to do that manually.cargo-criterion could allow the user to provide a command template. For example:
cargo criterion --run-with 'perf record -o %TARGET%-perf.data -g %ARGS%' -- --profile-time 120 my_benchmark_name
This would replace
%TARGET%
with the benchmark target name and%ARGS%
with the benchmark target executable and its arguments, then invoke the resulting command.The text was updated successfully, but these errors were encountered: