1. A method of collecting profile information for a component of a software program, the method comprising: generating a data structure that maps at least one method to the component, wherein the method includes a name, and wherein the data structure maps the method to the component using at least a portion of the name of the method; and in response to execution of the method by a profiler during profiling of the software program: determining a statistic associated with the execution of the method; accessing the data structure using the name of the method to determine the component associated with the method; and associating the determined statistic with the determined component.