package profiling
import "gvisor.dev/gvisor/test/kubernetes/benchmarks/profiling"
Package profiling helps with getting profiles from running benchmarks.
Index ¶
Functions ¶
func MaybeSetup ¶
func MaybeSetup(ctx context.Context, t *testing.T, k8sCtx k8sctx.KubernetesContext, c *testcluster.TestCluster, ns *testcluster.Namespace) (func(), error)
MaybeSetup sets up profiling if requested. It returns a cleanup function. If the returned error is nil, the cleanup function is non-nil and should be called regardless of whether profiling is actually enabled or not.
Source Files ¶
profiling.go
- Version
- v0.0.0-20250605235530-a6711d1e1dc6 (latest)
- Published
- Jun 5, 2025
- Platform
- linux/amd64
- Imports
- 32 packages
- Last checked
- 4 hours ago –
Tools for package owners.