instrument

package
v1.0.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const GasCounterName string = "gas_count"

Variables

This section is empty.

Functions

func MeterGasAndStack

func MeterGasAndStack(wasm []byte, stackHeight uint32) ([]byte, error)

MeterGasAndStack - adds gas and stack instrumentation. gas instrumentation uses global counter "gas_count", the variable is inserted by rust library during instrumentation. stackHeight - if 0 then no stack metering is inserted, otherwise if wasm stack grows over user defined height program execution aborted.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL