File tree 3 files changed +8
-10
lines changed
3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ stack backtrace:
47
47
```
48
48
49
49
If you want line numbers for the stack trace, you can enable
50
- ` debuginfo-lines=true ` or ` debuginfo=true ` in your config.toml and rebuild the
50
+ ` debuginfo-level = 1 ` or ` debuginfo-level = 2 ` in your config.toml and rebuild the
51
51
compiler. Then the backtrace will look like this:
52
52
53
53
``` text
Original file line number Diff line number Diff line change @@ -36,11 +36,9 @@ debug-assertions = true
36
36
# performance perhaps (less inlining) but it's worth it.
37
37
codegen-units = 0
38
38
39
- # I always enable full debuginfo, though debuginfo-lines is more important.
40
- debuginfo = true
41
-
42
- # Gives you line numbers for backtraces.
43
- debuginfo-lines = true
39
+ # I always enable full debuginfo, however the line debuginfo (which is a more important part
40
+ # and enables e.g. line numbers in backtraces) is enabled by `debuginfo-level = 1` too.
41
+ debuginfo-level = 2
44
42
```
45
43
46
44
### What is ` x.py ` ?
Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ This is a guide for how to profile rustc with [perf](https://perf.wiki.kernel.or
7
7
- Get a clean checkout of rust-lang/master, or whatever it is you want
8
8
to profile.
9
9
- Set the following settings in your ` config.toml ` :
10
- - ` debuginfo-lines = true `
11
- - ` use-jemalloc = false ` — lets you do memory use profiling with valgrind
10
+ - ` debuginfo-level = 1 ` - enables line debuginfo
11
+ - ` use-jemalloc = false ` - lets you do memory use profiling with valgrind
12
12
- leave everything else the defaults
13
13
- Run ` ./x.py build ` to get a full build
14
14
- Make a rustup toolchain pointing to that result
15
15
- see [ the "build and run" section for instructions] [ b-a-r ]
16
16
17
17
[ b-a-r ] : ../how-to-build-and-run.html#toolchain
18
-
18
+
19
19
## Gathering a perf profile
20
20
21
21
perf is an excellent tool on linux that can be used to gather and
@@ -295,7 +295,7 @@ altogether ("total") and the percent of time spent in **just that
295
295
function and not some callee of that function** (self). Usually
296
296
"total" is the more interesting number, but not always.
297
297
298
- ### Relative percentages
298
+ ### Relative percentages
299
299
300
300
By default, all in perf-focus are relative to the ** total program
301
301
execution** . This is useful to help you keep perspective — often as
You can’t perform that action at this time.
0 commit comments