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

Method exportStacks

fgprof.go:195–209  ·  view source on GitHub ↗

exportStacks returns the stacks in this profile except those that have been set to Ignore().

()

Source from the content-addressed store, hash-verified

193// exportStacks returns the stacks in this profile except those that have been
194// set to Ignore().
195func (p *wallclockProfile) exportStacks() []*wallclockStack {
196 stacks := make([]*wallclockStack, 0, len(p.stacks))
197nextStack:
198 for _, ws := range p.stacks {
199 for _, f := range ws.frames {
200 for _, igf := range p.ignore {
201 if f.Entry == igf.Entry {
202 continue nextStack
203 }
204 }
205 }
206 stacks = append(stacks, ws)
207 }
208 return stacks
209}
210
211func (p *wallclockProfile) exportFolded(w io.Writer) error {
212 var lines []string

Callers 2

exportFoldedMethod · 0.95
exportPprofMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected