Files
Alexander CuevaandgVisor bot e11d0a7b1c Add block, goroutine, mutex, and trace subcommands to runsc profile
Implement the remaining runtime profiling subcommands for `runsc profile`:
- `goroutine`: Dumps the current stack traces of all running goroutines
in Sentry.
- `block`: Collects a goroutine blocking contention profile.
- `mutex`: Collects a mutex contention profile.
- `trace`: Collects an execution trace.

PiperOrigin-RevId: 978048587
2026-09-08 12:20:09 -07:00

31 lines
659 B
Python

load("//tools:defs.bzl", "go_library")
package(
default_applicable_licenses = ["//:license"],
licenses = ["notice"],
)
go_library(
name = "profile",
srcs = [
"block.go",
"cpu.go",
"goroutine.go",
"heap.go",
"mutex.go",
"profile.go",
"trace.go",
],
visibility = [
"//runsc:__subpackages__",
],
deps = [
"//runsc/cmd/util",
"//runsc/config",
"//runsc/container",
"//runsc/flag",
"@com_github_google_subcommands//:go_default_library",
"@com_github_opencontainers_runtime_spec//specs-go:go_default_library",
],
)