update with njn's insight

This commit is contained in:
Niko Matsakis 2018-09-07 11:01:29 -04:00 committed by Who? Me?!
parent 3d17ee3105
commit a42c5d4556
1 changed files with 5 additions and 5 deletions

View File

@ -30,11 +30,11 @@ perf record -F99 --call-graph dwarf XXX
``` ```
The `-F99` tells perf to sample at 99 Hz, which avoids generating too The `-F99` tells perf to sample at 99 Hz, which avoids generating too
much data for longer runs (why 99 Hz you ask? No particular reason, it much data for longer runs (why 99 Hz you ask? It is often chosen
just seems to work well for me). The `--call-graph dwarf` tells perf because it is unlikely to be in lockstep with other periodic
to get call-graph information from debuginfo, which is accurate. The activity). The `--call-graph dwarf` tells perf to get call-graph
`XXX` is the command you want to profile. So, for example, you might information from debuginfo, which is accurate. The `XXX` is the
do: command you want to profile. So, for example, you might do:
``` ```
perf record -F99 --call-graph dwarf cargo +<toolchain> rustc perf record -F99 --call-graph dwarf cargo +<toolchain> rustc