| 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) |
no test coverage detected