exportStacks returns the stacks in this profile except those that have been set to Ignore().
()
| 193 | // exportStacks returns the stacks in this profile except those that have been |
| 194 | // set to Ignore(). |
| 195 | func (p *wallclockProfile) exportStacks() []*wallclockStack { |
| 196 | stacks := make([]*wallclockStack, 0, len(p.stacks)) |
| 197 | nextStack: |
| 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 | |
| 211 | func (p *wallclockProfile) exportFolded(w io.Writer) error { |
| 212 | var lines []string |
no outgoing calls
no test coverage detected