{"id":15062613,"url":"https://github.com/moderato-app/live-pprof","last_synced_at":"2025-04-12T18:48:32.653Z","repository":{"id":255588631,"uuid":"841691764","full_name":"moderato-app/live-pprof","owner":"moderato-app","description":"Monitor Go app's performance in seconds, not a day.","archived":false,"fork":false,"pushed_at":"2024-12-19T11:55:52.000Z","size":5448,"stargazers_count":298,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T22:07:34.110Z","etag":null,"topics":["development","go","grafana","local","monitor","perfomance","pprof","prometheus"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moderato-app.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-12T22:14:57.000Z","updated_at":"2025-03-31T18:12:09.000Z","dependencies_parsed_at":"2025-01-01T09:12:19.114Z","dependency_job_id":null,"html_url":"https://github.com/moderato-app/live-pprof","commit_stats":{"total_commits":108,"total_committers":1,"mean_commits":108.0,"dds":0.0,"last_synced_commit":"f03ff0e2bf5234a5bf467339192b69bcb62f3271"},"previous_names":["moderato-app/live-pprof"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moderato-app%2Flive-pprof","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moderato-app%2Flive-pprof/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moderato-app%2Flive-pprof/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moderato-app%2Flive-pprof/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moderato-app","download_url":"https://codeload.github.com/moderato-app/live-pprof/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248617999,"owners_count":21134197,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["development","go","grafana","local","monitor","perfomance","pprof","prometheus"],"created_at":"2024-09-24T23:43:34.037Z","updated_at":"2025-04-12T18:48:32.628Z","avatar_url":"https://github.com/moderato-app.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"You don’t want to clutter up your computer with Docker, Prometheus, Grafana or even K8S just to monitor a Go app's heap size, right?\n\nUse `live-pprof` to Monitor a Go app's performance. It launches in seconds, boosting your local development.\n\n[![go-recipes](https://raw.githubusercontent.com/nikolaydubina/go-recipes/main/badge.svg?raw=true)](https://github.com/nikolaydubina/go-recipes)\n\n\u003cimg width=\"1920\" alt=\"Xnip2024-09-10_04-58-57\" src=\"https://github.com/user-attachments/assets/be6fa249-eb7d-4ce9-8db9-8bd8c7c657b1\"\u003e\n\nhttps://github.com/user-attachments/assets/77bfacd8-1779-4aaf-9758-9604362a1eb5\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ckbd\u003eScreenshots\u003c/kbd\u003e\u003c/summary\u003e\n\u003cbr/\u003e\t\n\u003cimg width=\"1920\" alt=\"Heap\" src=\"https://github.com/user-attachments/assets/0bc04e0d-45ed-4b8a-8abf-b550fde31d60\"\u003e\n\u003cimg width=\"1920\" alt=\"CPU\" src=\"https://github.com/user-attachments/assets/67d6852e-26c6-44ca-a23f-a99e71b6e482\"\u003e\n\u003cimg width=\"1920\" alt=\"Allocs\" src=\"https://github.com/user-attachments/assets/22e90362-4c0b-4db5-bb43-bf6234b8bf07\"\u003e\n\u003cimg width=\"1920\" alt=\"Goroutine\" src=\"https://github.com/user-attachments/assets/eb79a142-f0d1-4993-95e7-ce4571ecde19\"\u003e\n\u003cimg width=\"1920\" alt=\"Detect Endpoints\" src=\"https://github.com/user-attachments/assets/837215f1-e7f9-424e-94b2-4f67ba5af697\"\u003e\n\u003cimg width=\"1920\" alt=\"Options\" src=\"https://github.com/user-attachments/assets/7d0b33b9-b5cd-48bf-9ccc-0651ae54685f\"\u003e\n\u003c/details\u003e\n\n\n## Install\n\n```bash\ngo install github.com/moderato-app/live-pprof@v1\n```\n\n## Usage\n\n#### Step 1: setup pprof endpoints\n\n```bash\npackage main\n\nimport (\n\t\"log\"\n\t\"net/http\"\n\t_ \"net/http/pprof\"\n)\n\nfunc main() {\n\tlog.Println(http.ListenAndServe(\"localhost:6060\", nil))\n}\n```\n\n#### Step 2: monitor the pprof endpoints\n\n```bash\nlive-pprof 6060 \n# Or:\nlive-pprof http://localhost:6060/debug/pprof\n# Both commands will monitor http://localhost:6060/debug/pprof\n```\n\n## Limitations\n* Metrics data is stored in the browser memory and is cleared on page refresh.\n* The page slows down as data grows due to charts rendering.\n\nAs you can see, live-pprof is mainly for local development. These limitations mean it’s not a replacement for Prometheus and Grafana.\n\n## Credits\n\u003ca href=\"https://golangweekly.com/latest\" target=\"_blank\"\u003e\n  \u003cimg width=\"200\" alt=\"image\" src=\"https://github.com/user-attachments/assets/25490d69-576c-4d47-9f3a-6b8a1200e57b\"\u003e\n\u003c/a\u003e\n\nThanks to [Golang Weekly](https://golangweekly.com/latest) for the shoutout!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoderato-app%2Flive-pprof","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoderato-app%2Flive-pprof","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoderato-app%2Flive-pprof/lists"}