mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-06 11:31:54 +08:00
16 lines
219 B
Go
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)
|
|
},
|
|
)
|
|
}
|