MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / putContextVars

Method putContextVars

src/jrd/Monitoring.cpp:1471–1488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1469
1470
1471void Monitoring::putContextVars(SnapshotData::DumpRecord& record, const StringMap& variables,
1472 SINT64 object_id, bool is_attachment)
1473{
1474 StringMap::ConstAccessor accessor(&variables);
1475
1476 for (bool found = accessor.getFirst(); found; found = accessor.getNext())
1477 {
1478 record.reset(rel_mon_ctx_vars);
1479
1480 const int field_id = is_attachment ? f_mon_ctx_var_att_id : f_mon_ctx_var_tra_id;
1481 record.storeInteger(field_id, object_id);
1482
1483 record.storeString(f_mon_ctx_var_name, accessor.current()->first);
1484 record.storeString(f_mon_ctx_var_value, accessor.current()->second);
1485
1486 record.write();
1487 }
1488}
1489
1490
1491void Monitoring::putMemoryUsage(SnapshotData::DumpRecord& record, const MemoryStats& stats,

Callers

nothing calls this directly

Calls 7

storeIntegerMethod · 0.80
storeStringMethod · 0.80
getFirstMethod · 0.45
getNextMethod · 0.45
resetMethod · 0.45
currentMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected