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

Method Stackiter

python.go:170–181  ·  view source on GitHub ↗
(mod api.Module, def api.FunctionDefinition, wasmsi experimental.StackIterator)

Source from the content-addressed store, hash-verified

168}
169
170func (p *python) Stackiter(mod api.Module, def api.FunctionDefinition, wasmsi experimental.StackIterator) experimental.StackIterator {
171 m := mod.Memory()
172 tsp := deref[ptr32](m, p.pyrtaddr+padTstateCurrentInRT)
173 cframep := deref[ptr32](m, tsp+padCframeInThreadState)
174 framep := deref[ptr32](m, cframep+padCurrentFrameInCFrame)
175
176 return &pystackiter{
177 namedbg: def.DebugName(),
178 mem: m,
179 framep: framep,
180 }
181}
182
183type pystackiter struct {
184 namedbg string

Callers

nothing calls this directly

Calls 1

DebugNameMethod · 0.45

Tested by

no test coverage detected