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

Function wasmtime_guestprofiler_sample

crates/c-api/src/profiling.rs:54–62  ·  view source on GitHub ↗
(
    guestprofiler: &mut wasmtime_guestprofiler_t,
    store: &wasmtime_store_t,
    delta_nanos: u64,
)

Source from the content-addressed store, hash-verified

52
53#[unsafe(no_mangle)]
54pub extern "C" fn wasmtime_guestprofiler_sample(
55 guestprofiler: &mut wasmtime_guestprofiler_t,
56 store: &wasmtime_store_t,
57 delta_nanos: u64,
58) {
59 guestprofiler
60 .guest_profiler
61 .sample(&store.store, Duration::from_nanos(delta_nanos));
62}
63
64#[unsafe(no_mangle)]
65pub extern "C" fn wasmtime_guestprofiler_finish(

Callers

nothing calls this directly

Calls 1

sampleMethod · 0.45

Tested by

no test coverage detected