Empty cpu profile file?

108 views
Skip to first unread message

joe mcguckin

unread,
Aug 20, 2019, 7:58:29 PM8/20/19
to golang-nuts
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?

jake...@gmail.com

unread,
Aug 21, 2019, 12:37:43 PM8/21/19
to golang-nuts
Reply all
Reply to author
Forward
0 new messages