mirror of
https://github.com/hanzoai/visor.git
synced 2026-09-24 17:04:14 +00:00
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
32 lines
602 B
Python
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",
|
|
],
|
|
)
|