{"id":73787,"library":"elastic-go-perf","title":"go-perf","description":"Package perf provides access to the Linux perf API for measuring performance events.","status":"active","version":"0.0.0-20191212140718-9c656876f595","language":"go","source_language":null,"source_url":"https://github.com/elastic/go-perf","tags":["linux","perf","performance","profiling","elastic"],"install":[{"cmd":"go get github.com/elastic/go-perf","lang":"bash","label":"Install github.com/elastic/go-perf"}],"dependencies":[],"imports":[{"symbol":"perf","correct":"github.com/elastic/go-perf"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/elastic/go-perf\"\n)\n\nfunc main() {\n\tattr := &perf.Attr{\n\t\tType:   perf.HardwareEvent,\n\t\tConfig: perf.CPUCycles,\n\t}\n\tfmt.Println(attr)\n}","lang":"go","description":"Create a perf attribute for CPU cycles"},"warnings":[{"fix":"Pin to a specific version and test thoroughly before upgrading.","message":"Package is experimental and does not offer compatibility guarantees.","severity":"breaking","affected_versions":"all"}],"env_vars":null,"search_vec":"'access':7 'api':12 'elast':21 'event':16 'go':2 'go-perf':1 'linux':10,17 'measur':14 'packag':4 'perf':3,5,11,18 'perform':15,19 'profil':20 'provid':6","created_at":"2026-06-17T18:55:10.011235+00:00","updated_at":"2026-06-17T18:55:10.011235+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/elastic/go-perf","github":"https://github.com/elastic/go-perf","docs":"https://pkg.go.dev/github.com/elastic/go-perf#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["observability","utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}