| 1469 | |
| 1470 | |
| 1471 | void 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 | |
| 1491 | void Monitoring::putMemoryUsage(SnapshotData::DumpRecord& record, const MemoryStats& stats, |
nothing calls this directly
no test coverage detected