MCPcopy
hub / github.com/felixge/fgprof / Export

Method Export

fgprof.go:182–191  ·  view source on GitHub ↗
(w io.Writer, f Format, hz int, startTime, endTime time.Time)

Source from the content-addressed store, hash-verified

180}
181
182func (p *wallclockProfile) Export(w io.Writer, f Format, hz int, startTime, endTime time.Time) error {
183 switch f {
184 case FormatFolded:
185 return p.exportFolded(w)
186 case FormatPprof:
187 return p.exportPprof(hz, startTime, endTime).Write(w)
188 default:
189 return fmt.Errorf("unknown format: %q", f)
190 }
191}
192
193// exportStacks returns the stacks in this profile except those that have been
194// set to Ignore().

Callers 1

StartFunction · 0.80

Calls 2

exportFoldedMethod · 0.95
exportPprofMethod · 0.95

Tested by

no test coverage detected