Patent ID: 7428731
Filing Date: 2008-09-23
Classification: G06F

Abstract:
1. A method, comprising: collecting a loop trip count continuously during runtime of a region of code being executed that contains a loop, the loop trip count being collected each time the loop is entered by one or more monitoring counters instrumented in the region of code; calculating an average trip count continuously during runtime, wherein each average trip count comprises a sequential plurality of collected trip counts over an interval of time; classifying each average trip count to be in one of a plurality of conditions, the one of the plurality of conditions to identify one or more code modification techniques applicable to the loop; dynamically applying, during the same runtime, the one or more applicable code modification techniques to alter the code that relates to the loop when the average trip count classification changes; halting the trip count data collection during the same runtime when a threshold value of consecutive intervals of time pass without a trip count classification change; and removing one or more monitoring counters, during the same runtime, from the region of code relating to the loop when trip count data collection is halted.