mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: Add support for pprof in coder agent (#1985)
* feat: Allow USR1 signal to start pprof
This commit is contained in:
@@ -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() {}
|
||||
}
|
||||
Reference in New Issue
Block a user