1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 11:31:54 +08:00
Files
kubo/cmd/ipfs/debug.go
2022-07-06 18:40:37 +02:00

16 lines
219 B
Go

package main
import (
"net/http"
"github.com/ipfs/kubo/profile"
)
func init() {
http.HandleFunc("/debug/stack",
func(w http.ResponseWriter, _ *http.Request) {
_ = profile.WriteAllGoroutineStacks(w)
},
)
}