MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / WasmEdge_StatisticsGetInstrPerSecond

Function WasmEdge_StatisticsGetInstrPerSecond

lib/api/wasmedge.cpp:1203–1209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1201}
1202
1203WASMEDGE_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
1211WASMEDGE_CAPI_EXPORT uint64_t WasmEdge_StatisticsGetTotalCost(
1212 const WasmEdge_StatisticsContext *Cxt) noexcept {

Callers 1

TESTFunction · 0.85

Calls 1

getInstrPerSecondMethod · 0.80

Tested by 1

TESTFunction · 0.68