MCPcopy
hub / github.com/perkeep/perkeep / dumpGoroutines

Function dumpGoroutines

pkg/serverinit/serverinit.go:761–766  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

759}
760
761func dumpGoroutines(w http.ResponseWriter, r *http.Request) {
762 buf := make([]byte, 2<<20)
763 buf = buf[:runtime.Stack(buf, true)]
764 w.Header().Set("Content-Type", "text/plain; charset=utf-8")
765 w.Write(buf)
766}
767
768// StartApps starts all the server applications that were configured
769// during InstallHandlers. It should only be called after perkeepd

Callers

nothing calls this directly

Calls 2

SetMethod · 0.65
WriteMethod · 0.45

Tested by

no test coverage detected