(ctx context.Context, mod api.Module, def api.FunctionDefinition, params []uint64, si experimental.StackIterator)
| 278 | } |
| 279 | |
| 280 | func (p *callocProfiler) Before(ctx context.Context, mod api.Module, def api.FunctionDefinition, params []uint64, si experimental.StackIterator) { |
| 281 | p.count = api.DecodeU32(params[0]) |
| 282 | p.size = api.DecodeU32(params[1]) |
| 283 | p.stack = makeStackTrace(p.stack, si) |
| 284 | } |
| 285 | |
| 286 | func (p *callocProfiler) After(ctx context.Context, mod api.Module, def api.FunctionDefinition, results []uint64) { |
| 287 | p.memory.observeAlloc(api.DecodeU32(results[0]), p.count*p.size, p.stack) |
nothing calls this directly
no test coverage detected