Function
wasmtime_guestprofiler_sample
(
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)] |
| 54 | pub 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)] |
| 65 | pub extern "C" fn wasmtime_guestprofiler_finish( |
Callers
nothing calls this directly
Tested by
no test coverage detected