MCPcopy Create free account
hub / github.com/apple/foundationdb / tryGetValue

Method tryGetValue

flow/Trace.cpp:1503–1512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1501}
1502
1503bool TraceEventFields::tryGetValue(std::string key, std::string& outValue) const {
1504 for (auto itr = begin(); itr != end(); ++itr) {
1505 if (itr->first == key) {
1506 outValue = itr->second;
1507 return true;
1508 }
1509 }
1510
1511 return false;
1512}
1513
1514std::string TraceEventFields::getValue(std::string key) const {
1515 std::string value;

Callers 4

getNumericValueFunction · 0.80
getErrorFunction · 0.80

Calls 2

beginFunction · 0.85
endFunction · 0.85

Tested by

no test coverage detected