mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-01 17:47:53 +03:00
Use addr2line only for --line option (pprof).
This commit is contained in:
parent
a91f210929
commit
a53610130d
1 changed files with 2 additions and 1 deletions
|
|
@ -3725,7 +3725,8 @@ sub MapToSymbols {
|
|||
|
||||
# If "addr2line" isn't installed on the system at all, just use
|
||||
# nm to get what info we can (function names, but not line numbers).
|
||||
if (system("$addr2line --help >/dev/null 2>&1") != 0) {
|
||||
if ($main::opt_lines == 0 || system("$addr2line --help >/dev/null 2>&1")
|
||||
!= 0) {
|
||||
MapSymbolsWithNM($image, $offset, $pclist, $symbols);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue