MCPcopy Create free account
hub / github.com/Snapchat/Valdi / ScopedTrace

Method ScopedTrace

valdi_core/src/valdi_core/cpp/Utils/Trace.cpp:31–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31ScopedTrace::ScopedTrace(const StringBox& trace) : _trace(trace.toStringView()), _snapTrace(_trace) {
32 begin();
33
34 if (Tracer::shared().isRecording()) {
35 _startTime = {std::chrono::steady_clock::now()};
36 }
37}
38
39ScopedTrace::ScopedTrace(std::string&& trace) : _trace(std::move(trace)), _snapTrace(_trace) {
40 begin();

Callers

nothing calls this directly

Calls 4

beginFunction · 0.85
isRecordingMethod · 0.80
nowFunction · 0.50
toStringViewMethod · 0.45

Tested by

no test coverage detected