Memory Usage by classes and methods

Why is it that the "Memory Allocation" dashlet does not show the amount of memory used by a particular class / method?
Is there any dashlet that shows memory used by a purepath (including the related classes / methods).

1 Reply

Showing memory used by a given class/method is challenging in that multiple classes/methods/purepaths can 'use' the same memory. So how would one report such data?

A better approach is to chase down the objects themselves that are problematic (too many of them, too big, living too long, etc) then track this back into the purepaths and code which is creating or holding reference to those objects. Then you know the offending code for the offending objects.

This approach is similar to what you ask, but avoids the challenge of trying to allocate memory to things directly.

There is some excellent training material, postings and blogs on the Community Portal which go into Memory Diagnostic techniques.