On Tue, 4 Jan 2022, 20:10 Tom Kacvinsky via Gcc-help, <gcc-help@xxxxxxxxxxx> wrote: > Hi all, > > I am interested in -fmem-report to help diagnose an issue > with memory thrashing during a parallel build. Ech separate > compilation if and of itself is not enough to cause the thrash, > but when they're added up over a parallel compile, things go > south. > > So I want to collect total memory usage of GCC during a > compilation and then sum them over the last 16 or so GCC > invocations we have. But I am having a hard time figuring > out the total usage. I see nothing obvious. Any hints? > -ftime-report gives a simple total.