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

Method putMemoryUsage

src/jrd/Monitoring.cpp:1491–1507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1489
1490
1491void 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
1510void Monitoring::checkState(thread_db* tdbb)

Callers

nothing calls this directly

Calls 8

storeGlobalIdMethod · 0.80
storeIntegerMethod · 0.80
getCurrentUsageMethod · 0.80
getCurrentMappingMethod · 0.80
getMaximumUsageMethod · 0.80
getMaximumMappingMethod · 0.80
resetMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected