code: func (h *HandlerT) StopCPUProfile() error {
  	h.mu.Lock()
  	defer h.mu.Unlock()
  	pprof.StopCPUProfile()
  	if h.cpuW == nil {
  		return errors.New("CPU profiling not in progress")
  	}
  	log.Info("Done writing CPU profile", "dump", h.cpuFile)
  	h.cpuW.Close()
  	h.cpuW = nil
  	h.cpuFile = ""
  	return nil
  }
docs: // StopCPUProfile stops an ongoing CPU profile.