1
0
mirror of https://github.com/golang/go synced 2024-11-24 00:30:15 -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:
Russ Cox 2014-12-03 14:14:00 -05:00
parent 14948481f6
commit 9f04a62a39

View File

@ -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