wasmedge_sys::ffi

Function WasmEdge_VMGetStatisticsContext

Source
pub unsafe extern "C" fn WasmEdge_VMGetStatisticsContext(
    Cxt: *mut WasmEdge_VMContext,
) -> *mut WasmEdge_StatisticsContext
Expand description

Get the statistics context used in the WasmEdge_VMContext.

The statistics context links to the statistics in the VM context and owned by the VM context. The caller should NOT call the WasmEdge_StatisticsDelete.

This function is thread-safe.

\param Cxt the WasmEdge_VMContext.

\returns pointer to the statistics context.