Patent ID: 8166077

Claim:
A computer-implemented method of collecting profile information for a component of a software program including at least one component, and the at least one component including multiple methods, the computer-implemented method comprising: generating a data structure that maps a plurality of methods to a plurality of components, wherein each method in the plurality of methods includes a name, and wherein the data structure maps the plurality of methods to the plurality of components using at least a portion of the names of the plurality of methods; in response to execution of a first method of the plurality of methods by a profiler during profiling of the software program: determining a statistic associated with the execution of the first method; accessing the data structure using the name of the first method to determine a respective component from among the plurality of components that is associated with the first method; and associating the determined statistic with the respective component; determining for at least a second method among the plurality of methods the component that the second method maps to based upon the generated data structure, including determining that the second method maps to the respective component; and determining an aggregate cost associated with the respective component based on statistics associated with the first and second methods.