Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 391 Bytes

profiling.md

File metadata and controls

18 lines (13 loc) · 391 Bytes

Cargo flamegraph

echo -1 | sudo tee /proc/sys/kernel/perf_event_paranoid
cargo flamegraph --root --bin=laythe -- <path>

Callgrind

valgrind --tool=callgrind --dump-instr=yes --collect-jumps=yes --simulate-cache=yes <path-to-your-executable                [your-executable-program-options]

Instruments

cargo instruments -t <template> -- <path>