firefox-devtools/profiler

Support go's pprof format

Offen

#4.462 geöffnet am 08.02.2023

 (13 Kommentare) (6 Reaktionen) (0 zugewiesene Personen)TypeScript (486 Forks)auto 404
help wantedprofile data

Repository-Metriken

Stars
 (1.515 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Here are examples of the cpu profile and heap profile generated with -cpuprofile and -memprofile options: cpu.prof.gz mem.prof.gz

I generated these from the github cli repository running this command line: go test -cpuprofile cpu.prof -memprofile mem.prof github.com/cli/cli/v2/api It may be better to use a more complex test.

It may be better to support the callgrind format or the traces format, that can be output from pprof (go tool pprof -callgrind <filename> or go tool pprof -traces <filename>).

Here are examples for files generated using these formats:

callgrind formart for the cpu profile: profile001.callgraph.out.gz

callgrind format for the memory profile: profile003.callgraph.out.gz

traces format for the cpu profile: cpu.prof.traces.gz

traces format for the memory profile: mem.prof.traces.gz

┆Issue is synchronized with this Jira Task

Contributor Guide