In your Cargo.toml
, use:
triton-vm = { version = "0.48.0", default-features = false }
Then, in your code, you can
triton_vm::profiler::start("Triton VM – Prove"); let (/* … */) = triton_vm::prove_program(/* … */)?; let profile = triton_vm::profiler::finish(); println!("{profile}");
See also the documentation of the profiler and, for an example of how to use it, the run
function of the Triton CLI.