Merge pull request #2475 from lolbinarycat/patch-3
Profiling with perf: specify the section of bootstrap settings.
This commit is contained in:
commit
a2c80e6e23
|
|
@ -7,8 +7,8 @@ This is a guide for how to profile rustc with [perf](https://perf.wiki.kernel.or
|
||||||
- Get a clean checkout of rust-lang/master, or whatever it is you want
|
- Get a clean checkout of rust-lang/master, or whatever it is you want
|
||||||
to profile.
|
to profile.
|
||||||
- Set the following settings in your `bootstrap.toml`:
|
- Set the following settings in your `bootstrap.toml`:
|
||||||
- `debuginfo-level = 1` - enables line debuginfo
|
- `rust.debuginfo-level = 1` - enables line debuginfo
|
||||||
- `jemalloc = false` - lets you do memory use profiling with valgrind
|
- `rust.jemalloc = false` - lets you do memory use profiling with valgrind
|
||||||
- leave everything else the defaults
|
- leave everything else the defaults
|
||||||
- Run `./x build` to get a full build
|
- Run `./x build` to get a full build
|
||||||
- Make a rustup toolchain pointing to that result
|
- Make a rustup toolchain pointing to that result
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue