tailcfg, control/controlclient: add goroutine dump debug feature

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2021-03-03 10:17:05 -08:00
committed by Brad Fitzpatrick
parent f858b0d25f
commit 92cdb30b26
4 changed files with 87 additions and 0 deletions

View File

@@ -824,6 +824,10 @@ type Debug struct {
// DisableSubnetsIfPAC controls whether subnet routers should be
// disabled if WPAD is present on the network.
DisableSubnetsIfPAC opt.Bool `json:",omitempty"`
// GoroutineDumpURL, if non-empty, requests that the client do
// a one-time dump of its active goroutines to the given URL.
GoroutineDumpURL string `json:",omitempty"`
}
func (k MachineKey) String() string { return fmt.Sprintf("mkey:%x", k[:]) }