3.6. TAU_TRACK_HEAP

TAU_TRACK_HEAPtakes a sample at entry and exit of each routine and triggers a context event that associates the atomic event with the executing callstack. By default, TAU uses a callpath depth of 2, so you see:


NumSamples   MaxValue   MinValue  MeanValue  Std. Dev.  Event Name

        40  5.036E+04       2069  3.011E+04  1.228E+04  Heap Memory Used
(KB) : Entry : int main(int, char **) C => void func(int, int) C

If you set TAU_CALLPATH_DEPTH to 1, you will see:

        40  5.036E+04       2068  3.011E+04  1.227E+04  Heap Memory Used
(KB) : Entry : void func(int, int) C

And if you set TAU_CALLPATH_DEPTH to 0, it generates:

       365  5.138E+04      44.39   3.09E+04  1.234E+04  Heap Memory Used
(KB) : Entry
       365  5.138E+04       2064  3.115E+04   1.21E+04  Heap Memory Used
(KB) : Exit