blob: b6c63b1e5ba21350be93d6153671bebf42d94801 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
//go:build windows
package debug
import (
"fmt"
"os"
)
// SetDebugDir sets the directory where debug output files will be written.
// On Windows, signal handlers are not supported, so this is a no-op.
func SetDebugDir(dir string) {
// No-op on Windows
}
// InitSignalHandlers sets up signal handlers for runtime diagnostics.
// On Windows, SIGUSR1 and SIGUSR2 are not available, so this prints a warning.
func InitSignalHandlers() {
fmt.Fprintln(os.Stderr, "debug: signal handlers not supported on Windows")
fmt.Fprintln(os.Stderr, "debug: consider using GODEBUG environment variable or pprof HTTP endpoint")
}
|