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

Method startRecord

include/common/timer.h:36–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 Timer() noexcept { unsafeReset(); }
35
36 void startRecord(const TimerTag TT) noexcept {
37 assuming(TT < TimerTag::Max);
38 std::unique_lock Lock(Mutex);
39 const uint32_t Index = static_cast<uint32_t>(TT);
40 StartTime[Index].emplace(std::this_thread::get_id(), Clock::now());
41 }
42
43 void stopRecord(const TimerTag TT) noexcept {
44 assuming(TT < TimerTag::Max);

Callers 2

startRecordWasmMethod · 0.80
startRecordHostMethod · 0.80

Calls 2

nowClass · 0.85
emplaceMethod · 0.45

Tested by

no test coverage detected