diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2024-04-19 14:39:33 -0400 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2024-04-19 14:39:33 -0400 |
| commit | 7c2f43ff039795576bc0014c367b893fbbaceca4 (patch) | |
| tree | 00e01658128079a503e35f3df15298c9fc9a8bfa /include/framework | |
| parent | b34e90b0ca84b5506625930defac997c44bf37c0 (diff) | |
| download | dynamic-extension-7c2f43ff039795576bc0014c367b893fbbaceca4.tar.gz | |
Benchmark updates
Diffstat (limited to 'include/framework')
| -rw-r--r-- | include/framework/DynamicExtension.h | 4 | ||||
| -rw-r--r-- | include/framework/structure/ExtensionStructure.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/framework/DynamicExtension.h b/include/framework/DynamicExtension.h index 9e1b8fa..9d54777 100644 --- a/include/framework/DynamicExtension.h +++ b/include/framework/DynamicExtension.h @@ -204,6 +204,8 @@ public: auto t = m_buffer->get_memory_usage() + epoch->get_structure()->get_memory_usage(); end_job(epoch); + fprintf(stderr, "total: %ld\n", t); + return t; } @@ -214,7 +216,7 @@ public: */ size_t get_aux_memory_usage() { auto epoch = get_active_epoch(); - auto t = epoch->get_buffer().get_aux_memory_usage() + epoch->get_structure()->get_aux_memory_usage(); + auto t = m_buffer->get_memory_usage() + epoch->get_structure()->get_aux_memory_usage(); end_job(epoch); return t; diff --git a/include/framework/structure/ExtensionStructure.h b/include/framework/structure/ExtensionStructure.h index ffba1c1..6ad7aad 100644 --- a/include/framework/structure/ExtensionStructure.h +++ b/include/framework/structure/ExtensionStructure.h @@ -161,9 +161,11 @@ public: size_t get_memory_usage() { size_t cnt = 0; for (size_t i=0; i<m_levels.size(); i++) { + fprintf(stderr, "%ld\t%ld\n", i, m_levels[i]->get_memory_usage()); if (m_levels[i]) cnt += m_levels[i]->get_memory_usage(); } + fprintf(stderr, "%ld\n", cnt); return cnt; } |