MCPcopy Create free account
hub / github.com/pkg/profile / ProfilePath

Function ProfilePath

profile.go:135–139  ·  view source on GitHub ↗

ProfilePath controls the base path where various profiling files are written. If blank, the base path will be generated by ioutil.TempDir.

(path string)

Source from the content-addressed store, hash-verified

133// files are written. If blank, the base path will be generated
134// by ioutil.TempDir.
135func 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.
142func (p *Profile) Stop() {

Callers 1

ExampleProfilePathFunction · 0.92

Calls

no outgoing calls

Tested by 1

ExampleProfilePathFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…