()
| 3 | import "github.com/Shopify/goose/profiler" |
| 4 | |
| 5 | func ExampleNewProfiler() { |
| 6 | cpuFile := "cpu.prof" |
| 7 | memoryFile := "memory.prof" |
| 8 | |
| 9 | p := profiler.NewProfiler(cpuFile, memoryFile) |
| 10 | if err := p.Start(); err != nil { |
| 11 | panic(err) |
| 12 | } |
| 13 | |
| 14 | // Do stuff |
| 15 | |
| 16 | if err := p.End(); err != nil { |
| 17 | panic(err) |
| 18 | } |
| 19 | } |
nothing calls this directly
no test coverage detected