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

Method WriteMemProfile

internal/debug/api.go:170–172  ·  view source on GitHub ↗

WriteMemProfile writes an allocation profile to the given file. Note that the profiling rate cannot be set through the API, it must be set on the command line.

(file string)

Source from the content-addressed store, hash-verified

168// Note that the profiling rate cannot be set through the API,
169// it must be set on the command line.
170func (*HandlerT) WriteMemProfile(file string) error {
171 return writeProfile("heap", file)
172}
173
174// Stacks returns a printed representation of the stacks of all goroutines.
175func (*HandlerT) Stacks() string {

Callers

nothing calls this directly

Calls 1

writeProfileFunction · 0.85

Tested by

no test coverage detected