(w io.Writer, f Format, hz int, startTime, endTime time.Time)
| 180 | } |
| 181 | |
| 182 | func (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(). |
no test coverage detected