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

Method getTotalCost

include/common/statistics.h:75–77  ·  view source on GitHub ↗

Getter for total gas cost.

Source from the content-addressed store, hash-verified

73
74 /// Getter for total gas cost.
75 uint64_t getTotalCost() const {
76 return CostSum.load(std::memory_order_relaxed);
77 }
78 std::atomic_uint64_t &getTotalCostRef() { return CostSum; }
79
80 /// Getter and setter for cost limit.

Callers 1

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected