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

Method begin

valdi_core/src/valdi_core/cpp/Utils/Trace.cpp:56–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 if (it == registry.states.end()) {
55 auto insertedIt = registry.states.emplace(tracer, std::make_unique<TracerRecordingState>()).first;
56 return insertedIt->second.get();
57 }
58 return it->second.get();
59}
60
61void unregisterTracerRecordingState(const Tracer* tracer) {
62 auto& registry = getTracerRecordingStateRegistry();
63 std::lock_guard<std::mutex> lock(registry.mutex);
64 registry.states.erase(tracer);

Callers 15

ValueMapIteratorMethod · 0.45
fromEntriesMethod · 0.45
writeMethod · 0.45
joinMethod · 0.45
makeMethod · 0.45
stopRecordingMethod · 0.45
unmarshallBinaryFunction · 0.45
operator()Method · 0.45
callMethod · 0.45
eraseIfFunction · 0.45
eraseFirstIfFunction · 0.45
sortedMapKeysMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected