summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2023-07-25 11:16:33 -0400
committerDouglas Rumbaugh <dbr4@psu.edu>2023-07-25 11:16:33 -0400
commit9e869d32344d5bd8ee703a0733d80d48d458217c (patch)
tree01c34169b8fec31eafbadc3b48be686d171ada3e /include
parent64959d4ff45b81d94155f44b4ae9b010f05089fe (diff)
downloaddynamic-extension-9e869d32344d5bd8ee703a0733d80d48d458217c.tar.gz
VPTree: account for size of pointer array in memory usage
Diffstat (limited to 'include')
-rw-r--r--include/shard/VPTree.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/shard/VPTree.h b/include/shard/VPTree.h
index 03645db..6f0423b 100644
--- a/include/shard/VPTree.h
+++ b/include/shard/VPTree.h
@@ -232,9 +232,8 @@ public:
return m_data + idx;
}
-
size_t get_memory_usage() {
- return m_node_cnt * sizeof(vpnode);
+ return m_node_cnt * sizeof(vpnode) + m_reccnt * sizeof(R*);
}
private: