Open ShiromMakkad opened 7 months ago
I also get a sigtrap if the frequency is set too high even without criterion integration
Here is an exact copy of the code: https://github.com/cedar-policy/cedar-local-agent/blob/main/benches/is_authorized.rs
I'm getting a SIGTRAP in similar circumstances, with every frequency value
Did you guys find a way around this?
I use this: https://github.com/flamegraph-rs/flamegraph. It doesn't have a high sampling frequency though. Wasn't able to resolve that issue.
Did you set it up with criterion
?
There's a CLI arg that you can use to run a criterion benchmark. I used that.
yes got it. thanks!
I'm also seeing this, particularly on ARM mac machines - a linux VM seems be run fine.
I tested this on an M1 Mac pro, so that could be it.
+1 same issue on M1 mac here
+1 same issue on M1 mac here, but it only happens when I use Mutex.
I found this crate from this article: https://www.jibbow.com/posts/criterion-flamegraphs/, which it seems you've implemented as the
criterion
feature flag. I've found a bug and tested it on both the example code from the article and thecriterion
feature flag and I'm getting the same issue.Here's the error:
And my code:
I am running with
--profile-time 5
.