Registry / observability / pkg-profile

pkg-profile

JSON →
library1.7.0gogounverified

Package profile provides a simple way to manage runtime/pprof profiling of your Go application.

go get github.com/pkg/profile
INSTALL
IMPORT
SIG · PKG-PROFILE
P
pkg-profile
observabilitygov1.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

profile
github.com/pkg/profile

Starts CPU profiling and defers the stop.

package main import ( "github.com/pkg/profile" ) func main() { defer profile.Start(profile.CPUProfile).Stop() // Your code here }
Debug
Known issues
gotchaProfiling may affect performance; ensure it is only enabled in development or debugging.
fix
Use build tags or environment variables to conditionally enable profiling.
affects: *
Upgrade
Version history
1.7.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
OpenAI (training)
2
Amazon
1
Resources
pkg-profile — go get pkg-profile · libregistry