felixge / felixge/fgprof

document how to do a start/defer style profile dump

Open
#38 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3.1k
Forks
99
PR merge metrics
No merged PRs in 30d

Description

I want to do multiple runs of my code, dump each to a file and then open them in a flamgraph viewer, normally I do this:
```
f, _ := os.Create("cpu.prof")
pprof.StartCPUProfile(f)
defer pprof.StopCPUProfile()
```

... here it seems to be:
```
f, _ := os.Create("cpu.prof")
stop := fgprof.Start(f, "pprof")
defer stop()
```

but some proper Readme docs would be great

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.