% cargo init --bin hello
Created binary (application) project
% cd hello
% cargo profiler callgrind --release
Compiling hello in release mode...
Profiling hello with callgrind...
error: Regex error -- please file a bug. In bug report, please include the original output file from profiler, e.g. from valgrind --tool=cachegrind --cachegrind-out-file=cachegrind.txt
% valgrind --tool=cachegrind --cachegrind-out-file=cachegrind.txt target/release/hello
==19861== Cachegrind, a cache and branch-prediction profiler
==19861== Copyright (C) 2002-2015, and GNU GPL'd, by Nicholas Nethercote et al.
==19861== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
==19861== Command: target/release/hello
==19861==
--19861-- warning: L3 cache found, using its data for the LL simulation.
Hello, world!
==19861==
==19861== I refs: 621,681
==19861== I1 misses: 2,045
==19861== LLi misses: 1,860
==19861== I1 miss rate: 0.33%
==19861== LLi miss rate: 0.30%
==19861==
==19861== D refs: 199,643 (141,498 rd + 58,145 wr)
==19861== D1 misses: 4,892 ( 3,346 rd + 1,546 wr)
==19861== LLd misses: 3,590 ( 2,166 rd + 1,424 wr)
==19861== D1 miss rate: 2.5% ( 2.4% + 2.7% )
==19861== LLd miss rate: 1.8% ( 1.5% + 2.4% )
==19861==
==19861== LL refs: 6,937 ( 5,391 rd + 1,546 wr)
==19861== LL misses: 5,450 ( 4,026 rd + 1,424 wr)
==19861== LL miss rate: 0.7% ( 0.5% + 2.4% )
%
cargo 0.16.0-nightly (6e0c18c 2017-01-27)
% uname -rm
4.10.0-11-generic x86_64
valgrind-3.12.0