summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-13 15:04:28 -0600
committerJeff Carr <[email protected]>2025-02-13 15:04:28 -0600
commit08a5b198c7c8b7d08ab9cd7f166a8ababc88b140 (patch)
treea44ed661948ee3726412629c6a30a6a127003d5c /init.go
parentc215e3c2c4aaa8fe1b97d9ba4dd8c4a748f4f8c2 (diff)
no more newaction(). finally.
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)
}
}()