mirror of
https://github.com/golang/go
synced 2024-11-24 02:20:18 -07:00
cmd/pprof: fix symbol resolution for remote profiles
Fixes #9199. LGTM=iant R=golang-codereviews, iant CC=austin, golang-codereviews, minux https://golang.org/cl/183080043
This commit is contained in:
parent
14948481f6
commit
9f04a62a39
@ -32,6 +32,10 @@ func Symbolize(mode string, prof *profile.Profile, obj plugin.ObjTool, ui plugin
|
||||
}
|
||||
}
|
||||
|
||||
if len(prof.Mapping) == 0 {
|
||||
return fmt.Errorf("no known mappings")
|
||||
}
|
||||
|
||||
mt, err := newMapping(prof, obj, ui, force)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user