Registry / observability / felixge-fgprof

felixge-fgprof

JSON →
library0.9.5gogounverified

A sampling Go profiler that analyzes both On-CPU and Off-CPU time to provide a more complete picture of program performance.

go get github.com/felixge/fgprof
INSTALL
IMPORT
SIG · FELIXGE-FGPROF
F
felixge-fgprof
observabilitygov0.9.5
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.

fgprof
github.com/felixge/fgprof

Start fgprof CPU profiling and write to a file.

package main import ( "log" "os" "runtime/pprof" "github.com/felixge/fgprof" ) func main() { f, _ := os.Create("profile.fgprof") defer f.Close() if err := pprof.StartCPUProfile(f); err != nil { log.Fatal(err) } defer pprof.StopCPUProfile() // ... your code ... }
Debug
Known issues
gotchafgprof is a sampling profiler and may not capture all events; use with pprof for comprehensive profiling.
fix
Combine fgprof with standard pprof for both on-CPU and off-CPU analysis.
affects: all
Upgrade
Version history
0.9.5latest 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
felixge-fgprof — go get felixge-fgprof · libregistry