Patent ID: 9594662
Date: 2017-03-14
CPC Classifications: G06F

Claim:
1. A method for automatically identifying and instrumenting a particular method used by a particular application, comprising: acquiring application code corresponding with the particular application; identifying terminal and non-terminal components within a portion of the application code corresponding with the particular method used by the particular application, the identifying the terminal components includes identifying a first method call and a second method call within the portion of the application code, the identifying the non-terminal components includes identifying a looping statement and a decision making statement within the portion of the application code; determining a score for the particular method based on the terminal and non-terminal components within the portion of the application code, the determining a score for the particular method comprises determining a first factor corresponding with the looping statement and a second factor corresponding with the decision making statement, the determining a score for the particular method comprises determining a first method score corresponding with the first method call and a second method score corresponding with the second method call, the determining a score for the particular method comprises determining the score for the particular method based on a first product of the first factor and the first method score and a second product of the second factor and the second method score, the second factor is different from the first factor; and instrumenting the particular method based on the score.