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

Method getInstrPerSecond

include/common/statistics.h:53–56  ·  view source on GitHub ↗

Getter for instructions per second.

Source from the content-addressed store, hash-verified

51
52 /// Getter for instructions per second.
53 double getInstrPerSecond() const {
54 return static_cast<double>(InstrCnt) /
55 std::chrono::duration<double>(getWasmExecTime()).count();
56 }
57
58 /// Setter and getter for the cost table.
59 void setCostTable(Span<const uint64_t> NewTable) {

Callers 1

Calls 1

countMethod · 0.80

Tested by

no test coverage detected