1. A method comprising: defining one or more classes within a software application as being in scope, any class not defined as being in scope are defined as being out of scope, wherein all classes comprise at least one method; determining an amount of allocated memory for each of said in scope classes and said out of scope classes; and if one of said methods from one of said out of scope classes are called as a result of the calling of one of the in scope classes, adding said allocated memory from said out of scope class to said allocated memory of said in scope class.