mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: emit file:line info into traces
This makes traces self-contained and simplifies trace workflow in modern cloud environments where it is simpler to reach a service via HTTP than to obtain the binary. Change-Id: I6ff3ca694dc698270f1e29da37d5efaf4e843a0d Reviewed-on: https://go-review.googlesource.com/21732 Run-TryBot: Dmitry Vyukov <dvyukov@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
parent
9ada88aec2
commit
0fb7b4cccd
4 changed files with 156 additions and 128 deletions
|
|
@ -104,11 +104,6 @@ func parseEvents() ([]*trace.Event, error) {
|
|||
loader.err = fmt.Errorf("failed to parse trace: %v", err)
|
||||
return
|
||||
}
|
||||
err = trace.Symbolize(events, programBinary)
|
||||
if err != nil {
|
||||
loader.err = fmt.Errorf("failed to symbolize trace: %v", err)
|
||||
return
|
||||
}
|
||||
loader.events = events
|
||||
})
|
||||
return loader.events, loader.err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue