// Reset all metrics collected so far.
Reset all metrics collected so far.
// Reset all metrics collected so far .
func (p *SingleProfiler) Reset() error {
	c, err := p.ReadCount()
	if err != nil {
		return err
	}
	p.enabled = c.Enabled
	return p.Event.Reset()
}
func ( p * SingleProfiler ) Reset ( ) error { c , err := p . ReadCount ( ) if err != nil { return err } p . enabled = c . Enabled return p . Event . Reset ( ) }
Reset all metrics collected so far.
Reset all metrics collected so far .