{"id":45056652,"url":"https://github.com/xyctruth/profiler","last_synced_at":"2026-02-19T09:44:21.329Z","repository":{"id":37980210,"uuid":"438471734","full_name":"xyctruth/profiler","owner":"xyctruth","description":"Continuous profiling based on pprof","archived":false,"fork":false,"pushed_at":"2023-07-05T12:37:50.000Z","size":6076,"stargazers_count":229,"open_issues_count":7,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-18T02:42:54.226Z","etag":null,"topics":["continuous-profiling","go","golang","kubernetes","monitoring","performance","pprof","profile","profiler","profiling","trace"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xyctruth.png","metadata":{"files":{"readme":"README-EN.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-15T02:41:37.000Z","updated_at":"2024-11-08T13:35:36.000Z","dependencies_parsed_at":"2024-06-18T22:35:29.872Z","dependency_job_id":"efdbc25d-d892-4e67-b1b9-f7ab87d8d496","html_url":"https://github.com/xyctruth/profiler","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/xyctruth/profiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyctruth%2Fprofiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyctruth%2Fprofiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyctruth%2Fprofiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyctruth%2Fprofiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xyctruth","download_url":"https://codeload.github.com/xyctruth/profiler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyctruth%2Fprofiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29609525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T06:47:36.664Z","status":"ssl_error","status_checked_at":"2026-02-19T06:45:47.551Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["continuous-profiling","go","golang","kubernetes","monitoring","performance","pprof","profile","profiler","profiling","trace"],"created_at":"2026-02-19T09:44:18.840Z","updated_at":"2026-02-19T09:44:21.317Z","avatar_url":"https://github.com/xyctruth.png","language":"Go","readme":"# Profiler\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/xyctruth/profiler?x=xyctruth)](https://goreportcard.com/report/github.com/xyctruth/profiler)\n[![codecov](https://codecov.io/gh/xyctruth/profiler/branch/master/graph/badge.svg?token=YWNYJK9KQW)](https://codecov.io/gh/xyctruth/profiler)\n[![Build status](https://img.shields.io/github/workflow/status/xyctruth/profiler/Server-Build/master)](https://github.com/xyctruth/profiler/actions/workflows/server-build.yml)\n[![Release status](https://img.shields.io/github/v/release/xyctruth/profiler)](https://github.com/xyctruth/profiler/releases)\n[![LICENSE status](https://img.shields.io/github/license/xyctruth/profiler)](https://github.com/xyctruth/profiler/blob/master/LICENSE)\n\n\u003e [English](./README-EN.md) / [中文](./README-ZH.md)\n\n## Introduction\n\n**Profiler is a continuous profiling tool that based on `go pprof` and `go trace`**\n\n- **Supported Sample**\n  - `trace` `fgprof` `profile` `mutex` `heap` `goroutine` `allocs` `block` `threadcreate`\n- **Hot reloading configuration**\n  - Collect samples of the target service according to the configuration file\n  - The collection program will watch the changes of the configuration file and apply the changed immediately\n- **Chart Trend**\n  - Provide charts to observe the trend of multiple service performance indicators and find the time point of performance problems\n  - Each bubble is a sample file of Profile and Trace\n- **Detailed Analysis**\n  - Click the bubbles in the charts to jump to the detailed page of Profile and Trace for further detailed analysis\n\n### [Demo](https://profiler.xyctruth.work/)\n\n\u003ctable\u003e\n  \u003ctr\u003e\n      \u003ctd width=\"50%\" align=\"center\"\u003e\u003cb\u003eChart trend\u003c/b\u003e\u003c/td\u003e\n      \u003ctd width=\"50%\" align=\"center\"\u003e\u003cb\u003eClick the bubble to jump the detailed profile\u003c/b\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n     \u003ctd\u003e\u003cimg src=\"https://xtruth.oss-cn-shenzhen.aliyuncs.com/profiler.png\"/\u003e\u003c/td\u003e\n     \u003ctd\u003e\u003cimg src=\"https://xtruth.oss-cn-shenzhen.aliyuncs.com/profiler-pprof.png\"/\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n      \u003ctd width=\"50%\" align=\"center\"\u003e\u003cb\u003eClick the bubble to jump to the detailed trace\u003c/b\u003e\u003c/td\u003e\n      \u003ctd width=\"50%\" align=\"center\"\u003e\u003cb\u003eClick the bubble to jump to the detailed trance\u003c/b\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n     \u003ctd\u003e\u003cimg src=\"https://xtruth.oss-cn-shenzhen.aliyuncs.com/profiler-trace.png\"/\u003e\u003c/td\u003e\n     \u003ctd\u003e\u003cimg src=\"https://xtruth.oss-cn-shenzhen.aliyuncs.com/profiler-trace1.png\"/\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Getting Started\n\n### Local\n\nRun server on port 8080\n```bash\ngo run server/main.go \n```\n\nRun ui on port 80\n```bash\ncd ui\nnpm install --registry=https://registry.npm.taobao.org\nnpm run dev --base_api_url=http://localhost:8080\n```\n\n### Docker\n\n```bash\ndocker run -d -p 80:80 --name profiler xyctruth/profiler:latest\n```\n\nUsing custom configuration file\n\n```bash\nmkdir ~/profiler-config/\ncp ./collector.yaml ~/profiler-config/\ndocker run -d -p 80:80 -v ~/profiler-config/:/profiler/config/ --name profiler xyctruth/profiler:latest\n```\n\nUsing persistent data\n\n```bash\ndocker run -d -p 80:80 -v ~/profiler-data/:/profiler/data/ --name profiler xyctruth/profiler:latest\n```\n\n### Helm\n\nInstall the Profiler chart:\n\n```bash\nhelm install --create-namespace -n profiler-system profiler ./charts/profiler\n```\n\nMore on [Helm docs](https://github.com/xyctruth/profiler/blob/master/charts/profiler/README.EN.md) \n\n### Collector configuration\n\nThe `golang` program that needs to be collected and analyzed needs to provide the `net/http/pprof` endpoint and configure it in the `./collector.yaml` configuration file.\n\nThe configuration file can be updated online, and the collection program will monitor the change of the configuration file and apply the changed configuration file immediately.\n\n`collector.yaml`\n\n```yaml\ncollector:\n  targetConfigs:\n\n    profiler-server:        # Target name\n      interval: 15s         # Scrape interval\n      expiration: 0         # No expiration time\n      instances: [\"localhost:9000\"]  # Target service host\n      labels:\n        namespace: f005\n        type: gateway\n      profileConfigs:       # Use default configuration\n\n    server2:\n      interval: 10s\n      expiration: 168h      # Expiration time seven days\n      instances: [\"localhost:9000\"]\n      labels:\n        namespace: f004\n        type: svc\n      profileConfigs:       # Override some default configuration fields\n        trace:\n          enable: false\n        fgprof:\n          enable: false\n        profile:\n          path: /debug/pprof/profile?seconds=10\n          enable: false\n        heap:\n          path: /debug/pprof/heap\n\n```\n\ndefault configuration of `profileConfigs`\n\nThe default trace analysis is turned off, because the trace file is too large, about (500KB ~ 2M), you need to open the trace analysis in the `collector.yaml` setting to override the default trace configuration.\n\n```yaml\nprofileConfigs:\n  profile:\n    path: /debug/pprof/profile?seconds=10\n    enable: true\n  fgprof:\n    path: /debug/fgprof?seconds=10\n    enable: true\n  mutex:\n    path: /debug/pprof/mutex\n    enable: true\n  heap:\n    path: /debug/pprof/heap\n    enable: true\n  goroutine:\n    path: /debug/pprof/goroutine\n    enable: true\n  allocs:\n    path: /debug/pprof/allocs\n    enable: true\n  block:\n    path: /debug/pprof/block\n    enable: true\n  threadcreate:\n    path: /debug/pprof/threadcreate\n    enable: true\n  trace:\n    path: /debug/pprof/trace?seconds=10\n    enable: false\n```\n\n## JetBrains OSS License\n\n\u003ca href=\"https://jb.gg/OpenSourceSupport\"\u003e \u003cimg src=\"https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg\" alt=\"JetBrains Logo (Main) logo.\"\u003e \u003c/a\u003e\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyctruth%2Fprofiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxyctruth%2Fprofiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyctruth%2Fprofiler/lists"}