I am writing a program with limited memory usage. I have some questions about allocation measurement for which I could not find the answer yet (I am a bit new with profiling in general). It might be due to wrong keyword for research though ...
1) How to measure the maximum memory usage over time? Or at least the memory used at a given time? The total allocation does not matter so much in my setup. 2) Also, if I delete some item x (through x=0; gc()), such that one field *vec* of x is a vector, does "x=0; gc() " also clear x.vec from the memory? Thank you!
