feat: Add support for pprof in coder agent (#1985)

* feat: Allow USR1 signal to start pprof
This commit is contained in:
Mathias Fredriksson
2022-06-06 16:38:33 +03:00
committed by GitHub
parent 0ac37b146d
commit 59a6826920
3 changed files with 66 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
package cli
import (
"context"
"cdr.dev/slog"
)
// agentStartPPROFOnUSR1 is no-op on Windows (no SIGUSR1 signal).
func agentStartPPROFOnUSR1(ctx context.Context, logger slog.Logger, pprofAddress string) (srvClose func()) {
return func() {}
}