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