summaryrefslogtreecommitdiffstats
path: root/include/util
diff options
context:
space:
mode:
authorDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2025-08-14 09:09:44 -0400
committerDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2025-08-14 09:09:44 -0400
commit601481ed0a8061a372900cfb6761e8de81651339 (patch)
treea74ece5b35c101675078f84f86ba212ca2a576a7 /include/util
parent911eb0ef61dc7d327507c6406120a80797190884 (diff)
downloaddynamic-extension-601481ed0a8061a372900cfb6761e8de81651339.tar.gz
Per record cost estimation progress
Diffstat (limited to 'include/util')
-rw-r--r--include/util/types.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/util/types.h b/include/util/types.h
index c10f7ff..88774f5 100644
--- a/include/util/types.h
+++ b/include/util/types.h
@@ -115,7 +115,7 @@ public:
size_t reccnt, ReconstructionType type) {
m_tasks.push_back({std::move(shards), target, reccnt, type});
-
+ total_reccnt += reccnt;
}
void add_reconstruction(level_index source, level_index target,
@@ -130,7 +130,10 @@ public:
total_reccnt += reccnt;
}
- void add_reconstruction(ReconstructionTask task) { m_tasks.push_back(task); }
+ void add_reconstruction(ReconstructionTask task) {
+ m_tasks.push_back(task);
+ total_reccnt += task.reccnt;
+ }
size_t get_total_reccnt() { return total_reccnt; }