Open Fi3 opened 1 year ago
I made a quick fork for those who can't migrate to iai-callgrind
which is more actively maintained.
You can override the dep to point to the fixed version:
[patch.crates-io]
iai = { git = "https://github.com/lambdaclass/iai", branch = "fix/valgrind-forward-compatibility" }
What the fix does is add explicitly the --cache-sim=yes
argument for cachegrind, since from version 3.21 and later it defaults to --cache-sim=no
, so the expected events are not emitted.
I'm using fedora 38 and when I install valgrind i get the 3.21 version. Iai seem to not work with it, if I run the example in the README I get:
If I print events at line 160 of lib.rs I get:
Events: {"Ir": 442824}
Downgrading to valgrind 3.18 solve the issue