{"id":51014,"library":"felixge-fgprof","title":"fgprof","description":"A sampling Go profiler that analyzes both On-CPU and Off-CPU time to provide a more complete picture of program performance.","status":"active","version":"0.9.5","language":"go","source_language":null,"source_url":"https://github.com/felixge/fgprof","tags":["profiling","performance","debugging","sampling"],"install":[{"cmd":"go get github.com/felixge/fgprof","lang":"bash","label":"Install github.com/felixge/fgprof"}],"dependencies":[],"imports":[{"symbol":"fgprof","correct":"github.com/felixge/fgprof"}],"quickstart":{"code":"package main\n\nimport (\n\t\"log\"\n\t\"os\"\n\t\"runtime/pprof\"\n\t\"github.com/felixge/fgprof\"\n)\n\nfunc main() {\n\tf, _ := os.Create(\"profile.fgprof\")\n\tdefer f.Close()\n\tif err := pprof.StartCPUProfile(f); err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer pprof.StopCPUProfile()\n\t// ... your code ...\n}","lang":"go","description":"Start fgprof CPU profiling and write to a file."},"warnings":[{"fix":"Combine fgprof with standard pprof for both on-CPU and off-CPU analysis.","message":"fgprof is a sampling profiler and may not capture all events; use with pprof for comprehensive profiling.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'analyz':7 'complet':21 'cpu':11,15 'debug':28 'fgprof':1 'go':4 'off-cpu':13 'on-cpu':9 'perform':25,27 'pictur':22 'profil':5,26 'program':24 'provid':18 'sampl':3,29 'time':16","created_at":"2026-06-15T05:17:22.433105+00:00","updated_at":"2026-06-15T05:17:22.433105+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/felixge/fgprof","github":"https://github.com/felixge/fgprof","docs":"https://pkg.go.dev/github.com/felixge/fgprof#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["observability"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}