1. A method comprising: identifying stack trace elements in a plurality of stack traces relating to profiling of an application executing at a first virtual machine, the stack trace elements relating to profiling events being detected during the profiling of the application; sorting the stack trace elements as one of parent elements; parent/child elements, or child elements based on a number of times a stack trace element has appeared in the plurality of stack traces and its relationship with other elements in the plurality of stack traces; and creating a tree having nodes to represent the stack trace elements such that that the child elements branch from the parent/child elements or the parent elements, and the parent/child elements branch from the parent elements.