Files
Shailend ChandandgVisor bot 3ea8558fb1 watchdog: Add a "stuck goroutines" suffix to the full stack dump at panic
Sometimes the full stack dump is too large to capture all goroutines.
It can aid investigation if all obviously stuck goroutines are logged
together at the end.

PiperOrigin-RevId: 852558759
2026-01-05 19:57:20 -08:00

32 lines
602 B
Python

load("//tools:defs.bzl", "go_library", "go_test")
package(
default_applicable_licenses = ["//:license"],
licenses = ["notice"],
)
go_library(
name = "watchdog",
srcs = ["watchdog.go"],
visibility = ["//:sandbox"],
deps = [
"//pkg/log",
"//pkg/metric",
"//pkg/sentry/kernel",
"//pkg/sentry/ktime",
"//pkg/sync",
],
)
go_test(
name = "watchdog_test",
size = "small",
srcs = [
"watchdog_test.go",
],
library = ":watchdog",
deps = [
"@com_github_google_go_cmp//cmp:go_default_library",
],
)