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

Function WasmEdge_StatisticsSetCostTable

lib/api/wasmedge.cpp:1219–1226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1217}
1218
1219WASMEDGE_CAPI_EXPORT void
1220WasmEdge_StatisticsSetCostTable(WasmEdge_StatisticsContext *Cxt,
1221 uint64_t *CostArr,
1222 const uint32_t Len) noexcept {
1223 if (Cxt) {
1224 fromStatCxt(Cxt)->setCostTable(genSpan(CostArr, Len));
1225 }
1226}
1227
1228WASMEDGE_CAPI_EXPORT void
1229WasmEdge_StatisticsSetCostLimit(WasmEdge_StatisticsContext *Cxt,

Callers 1

TESTFunction · 0.85

Calls 2

genSpanFunction · 0.85
setCostTableMethod · 0.80

Tested by 1

TESTFunction · 0.68