(path string)
| 105 | } |
| 106 | |
| 107 | func (f *Flags) runCPUProfile(path string) { |
| 108 | file, err := os.Create(path) |
| 109 | if err != nil { |
| 110 | log.Fatal(err) |
| 111 | } |
| 112 | f.cpuProfileFile = file |
| 113 | pprof.StartCPUProfile(file) |
| 114 | } |
| 115 | |
| 116 | func runMemProfile(path string) { |
| 117 | f, err := os.Create(path) |