| 76 | } |
| 77 | |
| 78 | void 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 | |
| 87 | size_t Tracer::startRecording() { |
| 88 | std::lock_guard<std::mutex> lock(_mutex); |
nothing calls this directly
no test coverage detected