mirror of
https://github.com/go-delve/delve.git
synced 2025-10-28 20:53:42 +08:00
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:
committed by
Derek Parker
parent
1ac990c705
commit
ca3fe88899
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user