MCPcopy Create free account
hub / github.com/dispatchrun/wzprof / WriteProfile

Function WriteProfile

wzprof.go:205–212  ·  view source on GitHub ↗

WriteProfile writes a profile to a file at the given path.

(path string, prof *profile.Profile)

Source from the content-addressed store, hash-verified

203
204// WriteProfile writes a profile to a file at the given path.
205func WriteProfile(path string, prof *profile.Profile) error {
206 w, err := os.Create(path)
207 if err != nil {
208 return err
209 }
210 defer w.Close()
211 return prof.Write(w)
212}
213
214type symbolizer interface {
215 // Locations returns a list of function locations for a given program

Callers 1

writeProfileFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected