File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
src/bin/rustc-perf-collector Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ except that `$PROFILER` is one of the following.
244
244
often results in success.
245
245
- ` cachegrind ` : Profile with
246
246
[ Cachegrind] ( http://valgrind.org/docs/manual/cg-manual.html ) , a tracing
247
- profiler.
247
+ profiler. Requires Valgrind 3.15 or later.
248
248
- ** Purpose** . Cachegrind provides global, per-function, and per-source-line
249
249
instruction counts. This fine-grained information can be extremely useful.
250
250
Cachegrind's results are almost deterministic, which eases comparisons
@@ -263,7 +263,7 @@ except that `$PROFILER` is one of the following.
263
263
` --mod-filename='s/rust[01]/rustN/g' ` to eliminate path differences.
264
264
- ` callgrind ` : Profile with
265
265
[ Callgrind] ( http://valgrind.org/docs/manual/cl-manual.html ) , a tracing
266
- profiler.
266
+ profiler. Requires Valgrind 3.15 or later.
267
267
- ** Purpose** . Callgrind collects the same information as Cachegrind, plus
268
268
function call information. So it can be used like either Cachegrind or
269
269
` perf-record ` . However, it cannot perform diffs between profiles.
Original file line number Diff line number Diff line change @@ -577,7 +577,10 @@ impl<'a> Processor for ProfileProcessor<'a> {
577
577
fs:: copy ( & tmp_cgout_file, & cgout_file) ?;
578
578
579
579
let mut cg_annotate_cmd = Command :: new ( "cg_annotate" ) ;
580
- cg_annotate_cmd. arg ( "--auto=yes" ) . arg ( & cgout_file) ;
580
+ cg_annotate_cmd
581
+ . arg ( "--auto=yes" )
582
+ . arg ( "--show-percs=yes" )
583
+ . arg ( & cgout_file) ;
581
584
let output = cg_annotate_cmd. output ( ) ?;
582
585
583
586
fs:: write ( cgann_file, & output. stdout ) ?;
@@ -595,7 +598,10 @@ impl<'a> Processor for ProfileProcessor<'a> {
595
598
fs:: copy ( & tmp_clgout_file, & clgout_file) ?;
596
599
597
600
let mut clg_annotate_cmd = Command :: new ( "callgrind_annotate" ) ;
598
- clg_annotate_cmd. arg ( "--auto=yes" ) . arg ( & clgout_file) ;
601
+ clg_annotate_cmd
602
+ . arg ( "--auto=yes" )
603
+ . arg ( "--show-percs=yes" )
604
+ . arg ( & clgout_file) ;
599
605
let output = clg_annotate_cmd. output ( ) ?;
600
606
601
607
fs:: write ( clgann_file, & output. stdout ) ?;
You can’t perform that action at this time.
0 commit comments