MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime-go / NewConfig

Function NewConfig

config.go:51–57  ·  view source on GitHub ↗

NewConfig creates a new `Config` with all default options configured.

()

Source from the content-addressed store, hash-verified

49
50// NewConfig creates a new `Config` with all default options configured.
51func NewConfig() *Config {
52 config := &Config{_ptr: C.wasm_config_new()}
53 runtime.SetFinalizer(config, func(config *Config) {
54 config.Close()
55 })
56 return config
57}
58
59// SetDebugInfo configures whether dwarf debug information for JIT code is enabled
60func (cfg *Config) SetDebugInfo(enabled bool) {

Callers 8

TestConfigFunction · 0.85
newComponentEngineFunction · 0.85
refTypesStoreFunction · 0.85
TestInterruptWasmFunction · 0.85
TestAddFuelFunction · 0.85
TestEngineFunction · 0.85
multiMemoryStoreFunction · 0.85

Calls 1

CloseMethod · 0.95

Tested by 8

TestConfigFunction · 0.68
newComponentEngineFunction · 0.68
refTypesStoreFunction · 0.68
TestInterruptWasmFunction · 0.68
TestAddFuelFunction · 0.68
TestEngineFunction · 0.68
multiMemoryStoreFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…