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

Method WriteBlockProfile

internal/debug/api.go:143–145  ·  view source on GitHub ↗

WriteBlockProfile writes a goroutine blocking profile to the given file.

(file string)

Source from the content-addressed store, hash-verified

141
142// WriteBlockProfile writes a goroutine blocking profile to the given file.
143func (*HandlerT) WriteBlockProfile(file string) error {
144 return writeProfile("block", file)
145}
146
147// MutexProfile turns on mutex profiling for nsec seconds and writes profile data to file.
148// It uses a profile rate of 1 for most accurate information. If a different rate is

Callers

nothing calls this directly

Calls 1

writeProfileFunction · 0.85

Tested by

no test coverage detected