MCPcopy Create free account
hub / github.com/dispatchrun/wzprof / Before

Method Before

mem.go:300–304  ·  view source on GitHub ↗
(ctx context.Context, mod api.Module, def api.FunctionDefinition, params []uint64, si experimental.StackIterator)

Source from the content-addressed store, hash-verified

298}
299
300func (p *reallocProfiler) Before(ctx context.Context, mod api.Module, def api.FunctionDefinition, params []uint64, si experimental.StackIterator) {
301 p.addr = api.DecodeU32(params[0])
302 p.size = api.DecodeU32(params[1])
303 p.stack = makeStackTrace(p.stack, si)
304}
305
306func (p *reallocProfiler) After(ctx context.Context, mod api.Module, def api.FunctionDefinition, results []uint64) {
307 p.memory.observeFree(p.addr)

Callers

nothing calls this directly

Calls 1

makeStackTraceFunction · 0.85

Tested by

no test coverage detected