| 1201 | } |
| 1202 | |
| 1203 | WASMEDGE_CAPI_EXPORT double WasmEdge_StatisticsGetInstrPerSecond( |
| 1204 | const WasmEdge_StatisticsContext *Cxt) noexcept { |
| 1205 | if (Cxt) { |
| 1206 | return fromStatCxt(Cxt)->getInstrPerSecond(); |
| 1207 | } |
| 1208 | return 0.0; |
| 1209 | } |
| 1210 | |
| 1211 | WASMEDGE_CAPI_EXPORT uint64_t WasmEdge_StatisticsGetTotalCost( |
| 1212 | const WasmEdge_StatisticsContext *Cxt) noexcept { |