MCPcopy Create free account
hub / github.com/catboost/catboost / AddDurationBeginNow

Method AddDurationBeginNow

library/cpp/chromium_trace/tracer.cpp:14–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 }
13
14 void TTracer::AddDurationBeginNow(TStringBuf name, TStringBuf cat, const TEventArgs* args) noexcept {
15 if (!Output)
16 return;
17
18 SuppressExceptions([&] {
19 Output->AddEvent(TDurationBeginEvent{
20 TEventOrigin::Here(),
21 name,
22 cat,
23 TEventTime::Now(),
24 TEventFlow{EFlowType::None, 0},
25 },
26 args);
27 });
28 }
29
30 void TTracer::AddDurationEndNow() noexcept {
31 if (!Output)

Callers 1

TDurationEventGuardMethod · 0.80

Calls 2

NowFunction · 0.50
AddEventMethod · 0.45

Tested by

no test coverage detected