MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / ScopeTimer

Method ScopeTimer

src/framework/debug/profiler.cpp:7–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace engine::debug {
6
7ScopeTimer::ScopeTimer(
8 LogLevel level,
9 std::string_view category,
10 std::string_view name)
11 : active_(log_enabled()),
12 level_(level),
13 category_(category),
14 name_(name),
15 started_(active_ ? std::chrono::steady_clock::now() : std::chrono::steady_clock::time_point{}) {}
16
17ScopeTimer::~ScopeTimer() {
18 if (!active_) {

Callers

nothing calls this directly

Calls 1

log_enabledFunction · 0.85

Tested by

no test coverage detected