@@ -27,8 +27,8 @@ of events, though, like cache misses and so forth.
27
27
28
28
The basic ` perf ` command is this:
29
29
30
- ```
31
- perf record -F99 --call-graph dwarf XXX
30
+ ``` bash
31
+ > perf record -F99 --call-graph dwarf XXX
32
32
```
33
33
34
34
The ` -F99 ` tells perf to sample at 99 Hz, which avoids generating too
@@ -38,8 +38,8 @@ activity). The `--call-graph dwarf` tells perf to get call-graph
38
38
information from debuginfo, which is accurate. The ` XXX ` is the
39
39
command you want to profile. So, for example, you might do:
40
40
41
- ```
42
- perf record -F99 --call-graph dwarf cargo +<toolchain> rustc
41
+ ``` bash
42
+ > perf record -F99 --call-graph dwarf cargo +< toolchain> rustc
43
43
```
44
44
45
45
to run ` cargo ` -- here ` <toolchain> ` should be the name of the toolchain
@@ -74,9 +74,9 @@ do profiling for you! You can find
74
74
75
75
For example, to measure the clap-rs test, you might do:
76
76
77
- ```
78
- > ./target/release/collector \
79
- --output-repo /path/to/place/output \
77
+ ``` bash
78
+ > ./target/release/collector
79
+ --output-repo /path/to/place/output
80
80
profile perf-record
81
81
--rustc /path/to/rustc/executable/from/your/build/directory
82
82
--cargo ` which cargo`
@@ -179,8 +179,8 @@ would analyze NLL performance.
179
179
180
180
You can install perf-focus using ` cargo install ` :
181
181
182
- ```
183
- cargo install perf-focus
182
+ ``` bash
183
+ > cargo install perf-focus
184
184
```
185
185
186
186
### Example: How much time is spent in MIR borrowck?
0 commit comments