code: func stopProfile() {
  	if prof.cpu != nil {
  		pprof.StopCPUProfile()
  		prof.cpu.Close()
  		log.Println("CPU profiling stopped")
  	}
  	if prof.mem != nil {
  		pprof.Lookup("heap").WriteTo(prof.mem, 0)
  		prof.mem.Close()
  		log.Println("memory profiling stopped")
  	}
  }
docs: // stopProfile closes the CPU and memory profiles if they are running.