grafana / pyroscope

Continuous Profiling Platform. Debug performance issues down to a single line of code
https://grafana.com/oss/pyroscope/
GNU Affero General Public License v3.0
10.08k stars 609 forks source link

Add fgprof profiling support #1851

Open exfly opened 1 year ago

exfly commented 1 year ago

Add fgprof profiling support for on-cpu as well as off-cpu profiling.

ref: https://github.com/felixge/fgprof

korniltsev commented 1 year ago

I believe you can already use it in pull mode

scrape-configs:
  - job-name: fgprof
    enabled-profiles: [fgprof_cpu]
    profiles:
      fgprof_cpu:
        path: "/debug/fgprof"
        params:
          seconds: [ "10" ]
    static-configs:
      - application: app.name.fgprof
        targets:
          - localhost:6060

https://flamegraph.com/share/da69b420-ac38-11ed-9038-860ef6bcd101