Skip to content

Commit f72ba71

Browse files
nikomatsakismark-i-m
authored andcommitted
fix various bash snippets
1 parent 5665ed6 commit f72ba71

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/profiling/with_perf.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ of events, though, like cache misses and so forth.
2727

2828
The basic `perf` command is this:
2929

30-
```
31-
perf record -F99 --call-graph dwarf XXX
30+
```bash
31+
> perf record -F99 --call-graph dwarf XXX
3232
```
3333

3434
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
3838
information from debuginfo, which is accurate. The `XXX` is the
3939
command you want to profile. So, for example, you might do:
4040

41-
```
42-
perf record -F99 --call-graph dwarf cargo +<toolchain> rustc
41+
```bash
42+
> perf record -F99 --call-graph dwarf cargo +<toolchain> rustc
4343
```
4444

4545
to run `cargo` -- here `<toolchain>` should be the name of the toolchain
@@ -74,9 +74,9 @@ do profiling for you! You can find
7474

7575
For example, to measure the clap-rs test, you might do:
7676

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
8080
profile perf-record
8181
--rustc /path/to/rustc/executable/from/your/build/directory
8282
--cargo `which cargo`
@@ -179,8 +179,8 @@ would analyze NLL performance.
179179

180180
You can install perf-focus using `cargo install`:
181181

182-
```
183-
cargo install perf-focus
182+
```bash
183+
> cargo install perf-focus
184184
```
185185

186186
### Example: How much time is spent in MIR borrowck?

0 commit comments

Comments
 (0)