MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / wasm_bench_instantiate

Function wasm_bench_instantiate

crates/bench-api/src/lib.rs:397–401  ·  view source on GitHub ↗
(state: *mut c_void)

Source from the content-addressed store, hash-verified

395/// Instantiate the Wasm benchmark module.
396#[unsafe(no_mangle)]
397pub extern "C" fn wasm_bench_instantiate(state: *mut c_void) -> ExitCode {
398 let state = unsafe { (state as *mut BenchState).as_mut().unwrap() };
399 let result = state.instantiate().context("failed to instantiate");
400 to_exit_code(result)
401}
402
403/// Execute the Wasm benchmark module.
404#[unsafe(no_mangle)]

Callers

nothing calls this directly

Calls 5

to_exit_codeFunction · 0.85
unwrapMethod · 0.45
as_mutMethod · 0.45
contextMethod · 0.45
instantiateMethod · 0.45

Tested by

no test coverage detected