Added counting of physical losses at a wall

to deletion logger
This commit is contained in:
2025-07-09 16:39:56 +02:00
parent 603434e161
commit 0237292c5c
6 changed files with 65 additions and 5 deletions
+9
View File
@@ -145,6 +145,15 @@ void CpuSynchronizer::synchronize(DeletionLogger* logger) {
pair.second = last_sync_num_deletion;
logger->sync_num_deletions[pair.first] = last_sync_num_deletion;
}
for (auto& pair : logger->num_phys_deletions) {
double num_deletion = pair.second;
double last_sync_num_deletion = logger->sync_num_phys_deletions[pair.first];
sumToAll(num_deletion, last_sync_num_deletion);
// last_sync_num_deletion now contains the total number of deletions
// across all cpus -> update the values in the objects
pair.second = last_sync_num_deletion;
logger->sync_num_phys_deletions[pair.first] = last_sync_num_deletion;
}
}
}