Thank you for your response, Philippe. I find your explanation of AutoSave in comparison to AutoFlush to be very informative.
Your question about if the memory leak really relates to growing TTree size and amadio’s question about the resulting file size has also been helpful. Given the maximum size at which I expect my files to be produced at, it does seem like leak would be elsewhere in the macro.
I have started looking into using valgrind. I have modified what Axel has under “Threading checks” in his post, including also the flag --leak-check=full
as described here. Something that I would like clarified, though, is if this flag includes the output corresponding to when the flag --tool=massif
is set? It doesn’t look like I can set both these flags simultaneously?