Versions in this module Expand all Collapse all v1 v1.1.0 Jun 6, 2023 Changes in this version + const ValueTypeExternref + const ValueTypeF32 + const ValueTypeF64 + const ValueTypeFuncref + const ValueTypeI32 + const ValueTypeI64 + const ValueTypeMemH64 + const ValueTypeMemI32 + const ValueTypeString + const ValueTypeV128 + func Config(fnd api.FunctionDefinition) (paramLoggers []ParamLogger, resultLoggers []ResultLogger) + func WriteOOM(w Writer, offset uint32, byteCount uint32) + func WriteStringOrOOM(mem api.Memory, w Writer, offset, byteCount uint32) + type LogScopes uint64 + const LogScopeAll + const LogScopeClock + const LogScopeFilesystem + const LogScopeMemory + const LogScopeNone + const LogScopePoll + const LogScopeProc + const LogScopeRandom + func (f LogScopes) IsEnabled(scope LogScopes) bool + func (f LogScopes) String() string + type LoggerKey struct + type ParamLogger func(ctx context.Context, mod api.Module, w Writer, params []uint64) + func NewParamLogger(idx uint32, name string, t ValueType) ParamLogger + type ParamSampler func(ctx context.Context, mod api.Module, params []uint64) bool + type ResultLogger func(ctx context.Context, mod api.Module, w Writer, params, results []uint64) + func NewResultLogger(idx uint32, name string, t ValueType) ResultLogger + type ValWriter func(ctx context.Context, mod api.Module, w Writer, i uint32, vals []uint64) + func ValWriterForType(vt ValueType) ValWriter + type ValueType = api.ValueType + type Writer interface