tailscale/wgengine/monitor
Brad Fitzpatrick d5a870b4dc wgengine/monitor: add --monitor-duration flag to opt-in TestMonitorMode
TestMonitorMode skips by default, without the --monitor flag, and then
it previously ran forever. This adds an option --monitor-duration flag
that defaults to zero (run forever) but if non-zero bounds how long
the tests runs. This means you can then also use e.g. `go test
--cpuprofile` and capture a CPU/mem profile for a minute or two.

Updates #7621

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2023-04-17 11:14:40 -07:00
..
monitor_darwin_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
monitor_darwin.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
monitor_freebsd.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
monitor_linux_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
monitor_linux.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
monitor_polling.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
monitor_test.go wgengine/monitor: add --monitor-duration flag to opt-in TestMonitorMode 2023-04-17 11:14:40 -07:00
monitor_windows.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
monitor.go net/sockstats: remove explicit dependency on wgengine/monitor 2023-03-03 08:37:14 -08:00
polling.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00