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

Function wasm_bench_execute

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

Source from the content-addressed store, hash-verified

403/// Execute the Wasm benchmark module.
404#[unsafe(no_mangle)]
405pub extern "C" fn wasm_bench_execute(state: *mut c_void) -> ExitCode {
406 let state = unsafe { (state as *mut BenchState).as_mut().unwrap() };
407 let result = state.execute().context("failed to execute");
408 to_exit_code(result)
409}
410
411/// Helper function for converting a Rust result to a C error code.
412///

Callers

nothing calls this directly

Calls 5

to_exit_codeFunction · 0.85
unwrapMethod · 0.45
as_mutMethod · 0.45
contextMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected