Patent ID: 7877734

Claim:
A method of collecting profile information for a JAVA application running in a J2EE application server, the method comprising: for each of a plurality of JAVA applications, generating a unique key therefor and storing the unique key to associate the unique key with each class therein, wherein each class comprises one or more routines; receiving user input to enable profile information collection for a first JAVA application among the plurality of JAVA applications; and during execution of the first JAVA application in the J2EE server: collecting profile information for a first routine associated with the first JAVA application and a second routine called by the first routine in response to determining that the first routine is associated with a first class having a key associated with the first JAVA application; and executing a third routine associated with a second JAVA application without collecting profile information therefor in response to determining that the third routine is associated with a second class having a key associated with the second JAVA application for which profile information collection is not enabled.