Patent ID: 7774784
Filing Date: 2010-08-10
Classification: G06F

Abstract:
1. A method of determining an amount of time consumed by a processor of a multi-tasking operating system in executing a portion of code of a first processing thread, the method comprising acts of: (A) receiving first information indicative of a first temporal interval defining a begin time and an end time of execution of the code portion; (B) receiving second information indicative of one or more second temporal intervals, occurring within the first temporal interval, during which the processor executed a processing thread other than the first processing thread, wherein the second information comprises a plurality of second information elements, each second information element specifying a thread to or from which the processor switched context and a particular time at which the processor switched context; (C) receiving third information indicative of overhead time consumed in acquiring the first information during the first temporal interval; and (D) determining, based on the first, second and third information, the amount of time consumed in executing the code portion by subtracting, from the first temporal interval, the overhead time and a total combined time of the one or more second temporal intervals, wherein the total combined time is determined by the act (D) comprises an act (1) of determining, for each of the one or more second temporal intervals, a begin time and an end time of the second temporal interval based on the second information elements.