Update information about debuginfo configuration
This commit is contained in:
parent
922bbf5d19
commit
3510bdcba1
|
|
@ -47,7 +47,7 @@ stack backtrace:
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want line numbers for the stack trace, you can enable
|
If you want line numbers for the stack trace, you can enable
|
||||||
`debuginfo-lines=true` or `debuginfo=true` in your config.toml and rebuild the
|
`debuginfo-level = 1` or `debuginfo-level = 2` in your config.toml and rebuild the
|
||||||
compiler. Then the backtrace will look like this:
|
compiler. Then the backtrace will look like this:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
|
|
|
||||||
|
|
@ -36,11 +36,9 @@ debug-assertions = true
|
||||||
# performance perhaps (less inlining) but it's worth it.
|
# performance perhaps (less inlining) but it's worth it.
|
||||||
codegen-units = 0
|
codegen-units = 0
|
||||||
|
|
||||||
# I always enable full debuginfo, though debuginfo-lines is more important.
|
# I always enable full debuginfo, however the line debuginfo (which is a more important part
|
||||||
debuginfo = true
|
# and enables e.g. line numbers in backtraces) is enabled by `debuginfo-level = 1` too.
|
||||||
|
debuginfo-level = 2
|
||||||
# Gives you line numbers for backtraces.
|
|
||||||
debuginfo-lines = true
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### What is `x.py`?
|
### What is `x.py`?
|
||||||
|
|
|
||||||
|
|
@ -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 `config.toml`:
|
- Set the following settings in your `config.toml`:
|
||||||
- `debuginfo-lines = true`
|
- `debuginfo-level = 1` - enables line debuginfo
|
||||||
- `use-jemalloc = false` — lets you do memory use profiling with valgrind
|
- `use-jemalloc = false` - lets you do memory use profiling with valgrind
|
||||||
- leave everything else the defaults
|
- leave everything else the defaults
|
||||||
- Run `./x.py build` to get a full build
|
- Run `./x.py 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