| 1183 | // >>>>>>>> WasmEdge statistics functions >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> |
| 1184 | |
| 1185 | WASMEDGE_CAPI_EXPORT WasmEdge_StatisticsContext * |
| 1186 | WasmEdge_StatisticsCreate(void) noexcept { |
| 1187 | try { |
| 1188 | return toStatCxt(new WasmEdge::Statistics::Statistics); |
| 1189 | } catch (...) { |
| 1190 | handleCAPIError(); |
| 1191 | return nullptr; |
| 1192 | } |
| 1193 | } |
| 1194 | |
| 1195 | WASMEDGE_CAPI_EXPORT uint64_t WasmEdge_StatisticsGetInstrCount( |
| 1196 | const WasmEdge_StatisticsContext *Cxt) noexcept { |