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

Method addBuggify

flow/Trace.cpp:1377–1390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1375}
1376
1377void TraceBatch::addBuggify(int activated, int line, std::string file) {
1378 if (FLOW_KNOBS->MIN_TRACE_SEVERITY > TRACE_BATCH_IMPLICIT_SEVERITY) {
1379 return;
1380 }
1381 if (g_network) {
1382 auto& buggifyInfo = buggifyBatch.emplace_back(BuggifyInfo(TraceEvent::getCurrentTime(), activated, line, file));
1383 if (dumpImmediately())
1384 dump();
1385 else
1386 g_traceLog.annotateEvent(buggifyInfo.fields);
1387 } else {
1388 buggifyBatch.push_back(BuggifyInfo(0, activated, line, file));
1389 }
1390}
1391
1392void TraceBatch::dump() {
1393 if (!g_traceLog.isOpen() || FLOW_KNOBS->MIN_TRACE_SEVERITY > TRACE_BATCH_IMPLICIT_SEVERITY)

Callers 1

getSBVarFunction · 0.80

Calls 4

BuggifyInfoClass · 0.85
emplace_backMethod · 0.80
annotateEventMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected