# Functions
BenchmarkFunctionListener implements a benchmark for function listeners.
GetSnapshotter gets the Snapshotter from a host function.
MultiFunctionListenerFactory constructs a FunctionListenerFactory which combines the listeners created by each of the factories passed as arguments.
NewStackIterator constructs a stack iterator from a list of stack frames.
WithCloseNotifier registers the given CloseNotifier into the given context.Context.
WithFunctionListenerFactory registers a FunctionListenerFactory with the context.
WithImportResolver returns a new context with the given ImportResolver.
WithMemoryAllocator registers the given MemoryAllocator into the given context.Context.
WithSnapshotter enables snapshots.
# Constants
CoreFeaturesThreads enables threads instructions ("threads").
# Structs
StackFrame represents a frame on the call stack.
# Interfaces
CloseNotifier is a notification hook, invoked when a module is closed.
FunctionListener can be registered for any function via FunctionListenerFactory to be notified when the function is called.
FunctionListenerFactory returns FunctionListeners to be notified when a function is called.
InternalFunction exposes some information about a function instance.
InternalModule is an api.Module that exposes additional information.
LinearMemory is an expandable []byte that backs a Wasm linear memory.
MemoryAllocator is a memory allocation hook, invoked to create a LinearMemory.
Snapshot holds the execution state at the time of a Snapshotter.Snapshot call.
Snapshotter allows host functions to snapshot the WebAssembly execution environment.
StackIterator allows iterating on each function of the call stack, starting from the top.
# Type aliases
CloseNotifyFunc is a convenience for defining inlining a CloseNotifier.
FunctionListenerFactoryFunc is a function type implementing the FunctionListenerFactory interface, making it possible to use regular functions and methods as factory of function listeners.
FunctionListenerFunc is a function type implementing the FunctionListener interface, making it possible to use regular functions and methods as listeners of function invocation.
ImportResolver is an experimental func type that, if set, will be used as the first step in resolving imports.
MemoryAllocatorFunc is a convenience for defining inlining a MemoryAllocator.
ProgramCounter is an opaque value representing a specific execution point in a module.