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

Method append

valdi_core/src/valdi_core/cpp/Utils/Trace.cpp:78–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void Tracer::append(std::string&& trace, const TraceTimePoint& start, const TraceTimePoint& end) {
79 std::lock_guard<std::mutex> lock(_mutex);
80 if (_recorders.empty()) {
81 return;
82 }
83
84 _pendingTraces.emplace_back(std::move(trace), start, end, getCurrentThreadId(), _recordingSequence);
85}
86
87size_t Tracer::startRecording() {
88 std::lock_guard<std::mutex> lock(_mutex);

Callers

nothing calls this directly

Calls 2

getCurrentThreadIdFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected