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)
},
)
}