bheisler / criterion.rs

Statistics-driven benchmarking library for Rust
Apache License 2.0
4.28k stars 290 forks source link

--profile-time doesn't work #754

Open codecnotsupported opened 5 months ago

codecnotsupported commented 5 months ago

[Title]

Sewer56 commented 5 months ago

It's weird, I ran into it too. It works when invoked as cargo bench --bench my_benchmark --profile profile -- --profile-time 10, but when using 0.5.1, it doesn't work on the resulting binary, i.e. if you try to pass it to the file in deps folder.

Edit: I did some debugging of cargo bench with strace. Seems you need to invoke it as --profile-time 10 --bench