MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / GetStackTrace

Function GetStackTrace

base/util.go:1849–1853  ·  view source on GitHub ↗

GetStackTrace will return goroutine stack traces for all goroutines in Sync Gateway.

()

Source from the content-addressed store, hash-verified

1847
1848// GetStackTrace will return goroutine stack traces for all goroutines in Sync Gateway.
1849func GetStackTrace() (bytes.Buffer, error) {
1850 profBuf := bytes.Buffer{}
1851 err := pprof.Lookup("goroutine").WriteTo(&profBuf, 2)
1852 return profBuf, err
1853}
1854
1855// RotateFilenamesIfNeeded will remove old files if there are more than
1856// 10 matching the given filename pattern.

Callers 2

RegisterSignalHandlerFunction · 0.92

Calls

no outgoing calls

Tested by 1