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

Function WasmEdge_StatisticsGetInstrCount

lib/api/wasmedge.cpp:1195–1201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1193}
1194
1195WASMEDGE_CAPI_EXPORT uint64_t WasmEdge_StatisticsGetInstrCount(
1196 const WasmEdge_StatisticsContext *Cxt) noexcept {
1197 if (Cxt) {
1198 return fromStatCxt(Cxt)->getInstrCount();
1199 }
1200 return 0;
1201}
1202
1203WASMEDGE_CAPI_EXPORT double WasmEdge_StatisticsGetInstrPerSecond(
1204 const WasmEdge_StatisticsContext *Cxt) noexcept {

Callers 1

TESTFunction · 0.85

Calls 1

getInstrCountMethod · 0.45

Tested by 1

TESTFunction · 0.68