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

Method startRecording

valdi_core/src/valdi_core/cpp/Utils/Trace.cpp:87–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87size_t Tracer::startRecording() {
88 std::lock_guard<std::mutex> lock(_mutex);
89 auto sequence = ++_recordingSequence;
90 _recording = true;
91
92 _recorders.emplace_back(sequence);
93
94 return sequence;
95}
96
97std::vector<RecordedTrace> Tracer::stopRecording(size_t recordingIdentifier) {
98 std::lock_guard<std::mutex> lock(_mutex);

Callers 2

TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64