Patent ID: 7401324
Filing Date: 2008-07-15
Classification: G06F

Abstract:
1. A method for performing time measurements during instrumentation-based profiling, comprising: measuring an overhead time, wherein the overhead time is the time required to execute profiling instrumentation code in isolation measured through a calibration procedure, wherein the calibration procedure involves executing the instrumentation code in a loop for a number of times, and wherein multiple copies of the instrumentation code are included in the loop; receiving a code to be profiled; inserting the profiling instrumentation code in the code; executing the code including the instrumented portions of the code; measuring a time for executing the code including the instrumented portions of the code; subtracting the overhead time from the measured time to obtain the time for the code to be profiled; wherein the profiling instrumentation code is executed multiple times to determine an average value for the overhead time; wherein the profiling instrumentation code includes method entry code that takes a first time measurement at the beginning of a method, and method exit code that takes a second time measurement at the end of the method, wherein the first and second time measurements are used to calculate an execution time for the method; and wherein determining the overhead time involves calculating an inner time t