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

Method EventInfo

flow/Trace.cpp:1428–1437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1426}
1427
1428TraceBatch::EventInfo::EventInfo(double time, const char* name, uint64_t id, const char* location) {
1429 fields.addField("Severity", format("%d", (int)TRACE_BATCH_IMPLICIT_SEVERITY));
1430 fields.addField("Time", format("%.6f", time));
1431 if (FLOW_KNOBS && FLOW_KNOBS->TRACE_DATETIME_ENABLED) {
1432 fields.addField("DateTime", TraceEvent::printRealTime(time));
1433 }
1434 fields.addField("Type", name);
1435 fields.addField("ID", format("%016" PRIx64, id));
1436 fields.addField("Location", location);
1437}
1438
1439TraceBatch::AttachInfo::AttachInfo(double time, const char* name, uint64_t id, uint64_t to) {
1440 fields.addField("Severity", format("%d", (int)TRACE_BATCH_IMPLICIT_SEVERITY));

Callers

nothing calls this directly

Calls 2

addFieldMethod · 0.80
formatFunction · 0.70

Tested by

no test coverage detected