Patent ID: 8856753
Filing Date: 2014-10-07
Classification: G06F

Abstract:
1. A method for measuring processor performance in executing a section of software code, comprising: resetting a clock associated with the section of software code; detecting that the section of software code is beginning to be executed; in response to detecting that the section of software code is beginning to be executed, starting the clock associated with the section of software code; detecting that the section of software code is no longer being executed; and, in response to detecting that the section of software code is no longer being executed, stopping the clock associated with the section of software code; and, outputting a value of the clock associated with the section of software code, where the value corresponds to the processor performance in executing the section of software code, wherein the clock is stopped and restarted as the section of software code temporarily stops execution to cede control to a plurality of other sections of software code, wherein the section of software code is a first section of software code, wherein a first clock value is associated with the first section of software code and a plurality of other clock values are associated with the plurality of other sections of software code, detecting that one of the plurality of other sections of software code is being executed; in response to detecting that the one of the plurality of other sections of software code is being executed, starting one of a plurality of other clocks associated with the one of the plurality of other sections of software code; and in response to detecting that the one of the plurality of other sections of software code stopped executing, restarting the first clock associated with the first section of software code, wherein a user arbitrarily tags the first section of software code at a location independent of any elements within the software code and the user arbitrarily tags each of the plurality of other sections of software code at a location independent of any elements within the software code for monitoring, and wherein the section of software code is detected as the beginning to be executed based on the user tag of the first section of software code.