commit c826288c488996045208730d59de2221065ba249
parent b16aaa08b184f7f09433d6a989d387260eabb2bd
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 15 Jan 2021 13:50:23 +0100
Log SVX memory usage
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/atrstm_build_octrees.c b/src/atrstm_build_octrees.c
@@ -638,6 +638,10 @@ build_octrees(struct atrstm* atrstm, const struct build_octrees_args* args)
time_dump(&t0, TIME_ALL, NULL, buf, sizeof(buf));
log_info(atrstm, "Setup the partitionning data structures in %s\n", buf);
+ i = MEM_ALLOCATED_SIZE(&atrstm->svx_allocator);
+ dump_memory_size(i, NULL, buf, sizeof(buf));
+ log_info(atrstm, "Star-VoXel memory usage: %s\n", buf);
+
exit:
if(pools) {
FOR_EACH(i, 0, atrstm->nthreads) pool_release(pools+i);