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

Function WasmEdge_StatisticsCreate

lib/api/wasmedge.cpp:1185–1193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

TestContextMethod · 0.85
TESTFunction · 0.85

Calls 1

handleCAPIErrorFunction · 0.85

Tested by 2

TestContextMethod · 0.68
TESTFunction · 0.68