is there a built-in facility in ROOT that allows me to read out the current memory usage of the running ROOT process? I found gSystem->GetMemInfo(), but it provides only the memory information on a system-wide level, which is of limited use…
This example shows how to retrieve memory and CPU info:
Thank you for your quick reply. Unfortunately the example shows only the use of gSystem->GetMemInfo(), which is of limited use to me as I can’t determine the memory usage of the ROOT-process by it. It is not even useful (on Linux) to get a Delta in Memory-Usage, since the fMemUsed-field includes the memory used by Linux for caching.
I asked @bellenot who suggested to use GetProcInfo. Is it better for you ?
Yes! That is the information I was looking for! Thank you so much!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.