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

Function selectTraceFormatter

flow/Trace.cpp:710–717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

708} // namespace
709
710bool selectTraceFormatter(std::string format) {
711 ASSERT(!g_traceLog.isOpen());
712 bool recognized = traceFormatImpl</*validate*/ false>(format);
713 if (!recognized) {
714 TraceEvent(SevWarnAlways, "UnrecognizedTraceFormat").detail("format", format);
715 }
716 return recognized;
717}
718
719bool validateTraceFormat(std::string format) {
720 return traceFormatImpl</*validate*/ true>(format);

Callers 3

parseArgsInternalMethod · 0.85
parseDecodeCommandLineFunction · 0.85
createDatabaseMethod · 0.85

Calls 3

TraceEventClass · 0.85
detailMethod · 0.80
isOpenMethod · 0.45

Tested by

no test coverage detected