Using Dave Cheney's profile package to figure out the execution path of a library I'm trying to understand.
The application starts, (it's a server), I hit ^c after a couple of minutes, and the console says
Stopping Profiling
Stopping
Main() catches the console interrupt:
signal.Notify(c, os.Interrupt)
log.Info("Stopping")
But the cpu profile file is empty. Is there a way to force is to sync before exiting?