| 1489 | |
| 1490 | |
| 1491 | void Monitoring::putMemoryUsage(SnapshotData::DumpRecord& record, const MemoryStats& stats, |
| 1492 | int stat_id, int stat_group) |
| 1493 | { |
| 1494 | // statistics id |
| 1495 | const auto id = getGlobalId(stat_id); |
| 1496 | |
| 1497 | // memory usage |
| 1498 | record.reset(rel_mon_mem_usage); |
| 1499 | record.storeGlobalId(f_mon_mem_stat_id, id); |
| 1500 | record.storeInteger(f_mon_mem_stat_group, stat_group); |
| 1501 | record.storeInteger(f_mon_mem_cur_used, stats.getCurrentUsage()); |
| 1502 | record.storeInteger(f_mon_mem_cur_alloc, stats.getCurrentMapping()); |
| 1503 | record.storeInteger(f_mon_mem_max_used, stats.getMaximumUsage()); |
| 1504 | record.storeInteger(f_mon_mem_max_alloc, stats.getMaximumMapping()); |
| 1505 | |
| 1506 | record.write(); |
| 1507 | } |
| 1508 | |
| 1509 | |
| 1510 | void Monitoring::checkState(thread_db* tdbb) |
nothing calls this directly
no test coverage detected