| 3677 | } |
| 3678 | |
| 3679 | WASMEDGE_CAPI_EXPORT WasmEdge_StatisticsContext * |
| 3680 | WasmEdge_VMGetStatisticsContext(WasmEdge_VMContext *Cxt) noexcept { |
| 3681 | if (Cxt) { |
| 3682 | return toStatCxt(&Cxt->VM.getStatistics()); |
| 3683 | } |
| 3684 | return nullptr; |
| 3685 | } |
| 3686 | |
| 3687 | WASMEDGE_CAPI_EXPORT void WasmEdge_VMDelete(WasmEdge_VMContext *Cxt) noexcept { |
| 3688 | delete Cxt; |