Migration
From version 0.17.0
onwards this project's name is Gungraun
. The packages
were renamed from iai-callgrind
to gungraun
, iai-callgrind-runner
to
gungraun-runner
and iai-callgrind-macros
to gungraun-macros
.
Migration check-list
- Update the library: Rename
iai-callgrind
togungraun
in yourCargo.toml
and use a version>=0.17.0
. - Update all usages of
use iai_callgrind
touse gungraun
. - Update the binary: Uninstall the old binary with
cargo uninstall iai-callgrind-runner
. Install the new binary for example with binstall:cargo binstall gungraun-runner@0.17.0
- Update any scripts which installed
iai-callgrind-runner
in the CI to usegungraun-runner
. - If you are parsing the benchmark output: The summary line has changed from
Iai-Callgrind result: Ok, ...
toGungraun result: Ok, ...
- Update any environment variable names to use the
GUNGRAUN
prefix instead ofIAI_CALLGRIND
. For exampleIAI_CALLGRIND_LOG=warn
->GUNGRAUN_LOG=warn
orIAI_CALLGRIND_VALGRIND_INCLUDE=...
toGUNGRAUN_VALGRIND_INCLUDE=...
. - If you want to keep the old benchmark output from the
target/iai
directory, simply rename it totarget/gungraun
. - Rename benchmark files to use
gungraun
instead ofiai
oriai_callgrind
. This will also change the output directory. If you want to keep the old files, for example when renaming the old benchmarks of themy_iai_callgrind_benchmarks.rs
file tomy_gungraun_benchmarks.rs
, then the output directory changes fromtarget/iai/my_package/my_iai_callgrind_benchmarks
totarget/gungraun/my_package/my_gungraun_benchmarks