summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'init.go')
-rw-r--r--init.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.go b/init.go
index 92e4e3d..3a63c0a 100644
--- a/init.go
+++ b/init.go
@@ -13,6 +13,7 @@ import (
"os"
"runtime"
"runtime/debug"
+ "runtime/pprof"
"time"
"github.com/awesome-gocui/gocui"
@@ -148,6 +149,7 @@ func gocuiMain() {
os.Stderr = outf
os.Stdout = outf
debug.PrintStack()
+ pprof.Lookup("goroutine").WriteTo(outf, 1)
panic(outf)
}
}()