about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2018-09-10 14:38:11 -0400
committerWho? Me?! <mark-i-m@users.noreply.github.com>2018-09-10 19:25:29 -0500
commit9799b0b3acb60e6658e7b6b8dd15f0d4dd7c48b7 (patch)
treee9015719a3d27c446e8a39f992c116188a559a23 /src/doc/rustc-dev-guide
parente40767296a7935302ac4f84fe900186e41622e96 (diff)
downloadrust-9799b0b3acb60e6658e7b6b8dd15f0d4dd7c48b7.tar.gz
rust-9799b0b3acb60e6658e7b6b8dd15f0d4dd7c48b7.zip
fix various bash snippets
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/profiling/with_perf.md18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/doc/rustc-dev-guide/src/profiling/with_perf.md b/src/doc/rustc-dev-guide/src/profiling/with_perf.md
index c851d1a23e5..7d8276cedfb 100644
--- a/src/doc/rustc-dev-guide/src/profiling/with_perf.md
+++ b/src/doc/rustc-dev-guide/src/profiling/with_perf.md
@@ -27,8 +27,8 @@ of events, though, like cache misses and so forth.
 
 The basic `perf` command is this:
 
-```
-perf record -F99 --call-graph dwarf XXX
+```bash
+> perf record -F99 --call-graph dwarf XXX
 ```
 
 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
 information from debuginfo, which is accurate. The `XXX` is the
 command you want to profile. So, for example, you might do:
 
-```
-perf record -F99 --call-graph dwarf cargo +<toolchain> rustc
+```bash
+> perf record -F99 --call-graph dwarf cargo +<toolchain> rustc
 ```
 
 to run `cargo` -- here `<toolchain>` should be the name of the toolchain
@@ -74,9 +74,9 @@ do profiling for you! You can find
 
 For example, to measure the clap-rs test, you might do:
 
-```
-> ./target/release/collector \
-    --output-repo /path/to/place/output \
+```bash
+> ./target/release/collector
+    --output-repo /path/to/place/output
     profile perf-record
     --rustc /path/to/rustc/executable/from/your/build/directory
     --cargo `which cargo`
@@ -179,8 +179,8 @@ would analyze NLL performance.
 
 You can install perf-focus using `cargo install`:
 
-```
-cargo install perf-focus
+```bash
+> cargo install perf-focus
 ```
 
 ### Example: How much time is spent in MIR borrowck?