MCPcopy Create free account
hub / github.com/CPChain/chain / writeBlockProfile

Function writeBlockProfile

internal/profile/handler.go:94–101  ·  view source on GitHub ↗
(writer io.WriteCloser)

Source from the content-addressed store, hash-verified

92}
93
94func writeBlockProfile(writer io.WriteCloser) error {
95 p := pprof.Lookup("block")
96 if p != nil {
97 return p.WriteTo(writer, 0)
98 } else {
99 return BlockProfileNotExistError
100 }
101}
102
103// tracing
104// StartGoTrace turns on tracing, writing to the given file.

Callers 1

StopBlockingProfileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected