{"id":40955669,"url":"https://github.com/gochore/pprofs","last_synced_at":"2026-01-22T05:36:31.290Z","repository":{"id":43342066,"uuid":"443075857","full_name":"gochore/pprofs","owner":"gochore","description":"Auto capture profiles.","archived":false,"fork":false,"pushed_at":"2022-03-07T07:41:24.000Z","size":26,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-17T13:45:41.260Z","etag":null,"topics":["go","golang","pprof"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gochore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-30T12:59:18.000Z","updated_at":"2022-06-20T16:08:32.000Z","dependencies_parsed_at":"2022-09-21T00:54:29.236Z","dependency_job_id":null,"html_url":"https://github.com/gochore/pprofs","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gochore/pprofs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gochore%2Fpprofs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gochore%2Fpprofs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gochore%2Fpprofs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gochore%2Fpprofs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gochore","download_url":"https://codeload.github.com/gochore/pprofs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gochore%2Fpprofs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28656380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","pprof"],"created_at":"2026-01-22T05:36:31.131Z","updated_at":"2026-01-22T05:36:31.283Z","avatar_url":"https://github.com/gochore.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## pprofs\n\nAuto capture profiles.\n\n[![Build Status](https://travis-ci.com/gochore/pprofs.svg?branch=master)](https://travis-ci.com/gochore/pprofs)\n[![codecov](https://codecov.io/gh/gochore/pprofs/branch/master/graph/badge.svg)](https://codecov.io/gh/gochore/pprofs)\n[![Go Report Card](https://goreportcard.com/badge/github.com/gochore/pprofs)](https://goreportcard.com/report/github.com/gochore/pprofs)\n[![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/gochore/pprofs)](https://github.com/gochore/pprofs/blob/master/go.mod)\n[![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/gochore/pprofs)](https://github.com/gochore/pprofs/releases)\n\n## Quick start\n\n```go\npackage main\n\nimport \"github.com/gochore/pprofs\"\n\nfunc main() {\n\tif err := pprofs.EnableCapture(); err != nil {\n\t\tpanic(err)\n\t}\n\t// ...\n}\n```\n\nIt will auto capture profiles and store files in temp dir.\n\nYou can specify the dir and the ttl of files by environment variables:\n\n```bash\nexport PPROF_DIR=\"~/somewhere\"\nexport PPROF_TTL=\"1h\"\n```\n\nOr use options:\n\n```go\nfunc main() {\n\tif err := pprofs.EnableCapture(\n\t\tpprofs.WithStorage(pprofs.NewFileStorage(\"prefix\", \"~/somewhere\", time.Hour)),\n\t); err != nil {\n\t\tpanic(err)\n\t}\n\t// ...\n}\n```\n\nSee [more examples](https://github.com/gochore/pprofs/tree/master/_example).\n\n## Reference\n\n- Inspired by [autopprof](https://github.com/rakyll/autopprof).\n- Learned a lot from [Continuous Profiling of Go programs](https://medium.com/google-cloud/continuous-profiling-of-go-programs-96d4416af77b).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgochore%2Fpprofs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgochore%2Fpprofs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgochore%2Fpprofs/lists"}