1. A computer-implemented method comprising: defining a subset of classes to be monitored in an object oriented software application on a virtual machine, each class in the monitored subset having at least one method; intercepting, using one or more processors, a first method call associated with a monitored class; linking a measurement of memory allocated for use by the monitored class to the monitored class; intercepting, using the one or more processors, a second method call associated with an unmonitored class, the second method call resulting from the first method call; and aggregating a measurement of memory allocated for use by the unmonitored class to the measurement linked to the monitored class.