proc,service: expose goroutine pprof labels in api

Labels can help in identifying a particular goroutine during debugging.

Fixes #1763
This commit is contained in:
Dmitry Neverov
2020-01-18 09:18:44 +01:00
committed by Derek Parker
parent 1ac990c705
commit ca3fe88899
5 changed files with 71 additions and 0 deletions

View File

@ -308,6 +308,8 @@ type Goroutine struct {
// ID of the associated thread for running goroutines
ThreadID int `json:"threadID"`
Unreadable string `json:"unreadable"`
// Goroutine's pprof labels
Labels map[string]string `json:"labels,omitempty"`
}
// DebuggerCommand is a command which changes the debugger's execution state.