ProfilePath controls the base path where various profiling files are written. If blank, the base path will be generated by ioutil.TempDir.
(path string)
| 133 | // files are written. If blank, the base path will be generated |
| 134 | // by ioutil.TempDir. |
| 135 | func ProfilePath(path string) func(*Profile) { |
| 136 | return func(p *Profile) { |
| 137 | p.path = path |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | // Stop stops the profile and flushes any unwritten data. |
| 142 | func (p *Profile) Stop() { |
no outgoing calls
searching dependent graphs…