Test application for heap allocation measurement of client bootstrap
For one of our grants we need to do reporting on memory consumption of frequent use-cases of Arti/Tor.
For sponsor 8 (and 4?) we found a "clean" bootstrap (with no local cache files) to be a useful metric to submit as there is a lot of activity during this step (connecting into the network, fetching large documents, etc.)
Would it be possible to build an application that:
- Creates a new Arti client instance
- Bootstraps
- If it's successful, it should report back how much memory was allocated on the heap.
- Exit.
For Tor (C implementation) we did something similar with a patched client that exit'ed the main loop after bootstrap was successful for this.
Is this a big task?
Could this be related to the work in #87 ? It would be fine to track number of object's of a given type that is allocated and order it by object count * size, but the important value for the grant reporting here is the sum.
CC @gaba