Accurate profile and timing information for multitasking systems
First Claim
1. A method of determining execution time for a portion of software, comprising:
- (a) obtaining a first time stamp value at a beginning of the portion while obtaining a first deltaout value for a deltaout parameter, said first deltaout value being indicative of an amount of time the portion has been swapped out prior to the first time stamp value;
(b) obtaining a second time stamp value at an end of the portion while obtaining a second deltaout value for the deltaout parameter, said second deltaout value being indicative of an amount of time the portion has been swapped out prior to the second time stamp value;
(c) adjusting at least one of the first and second time stamp values using the first and second deltaout values to compensate for any amount of time that the portion was swapped out in a multitasking operating system; and
(d) subtracting the first time stamp value from the second time stamp value to determine execution time.
8 Assignments
0 Petitions
Accused Products
Abstract
Determining execution time for a portion of software includes obtaining a first time stamp value at a beginning of the portion and obtaining a second time stamp value at an end of the portion. At least one of the first and second time stamp values is adjusted to compensate for any amount of time that the portion is swapped out in a multitasking operating system. The first time stamp value is subtracted from the second time stamp value to determine execution time. Determining execution time may also include providing a deltaout value that is initialized to zero prior to the portion being run for a first time. The deltaout value is incremented by an amount of time the portion is swapped out. The first time stamp value is compensated by subtracting the deltaout value therefrom and the second time stamp value is compensated by subtracting the deltaout value therefrom.
77 Citations
24 Claims
-
1. A method of determining execution time for a portion of software, comprising:
-
(a) obtaining a first time stamp value at a beginning of the portion while obtaining a first deltaout value for a deltaout parameter, said first deltaout value being indicative of an amount of time the portion has been swapped out prior to the first time stamp value; (b) obtaining a second time stamp value at an end of the portion while obtaining a second deltaout value for the deltaout parameter, said second deltaout value being indicative of an amount of time the portion has been swapped out prior to the second time stamp value; (c) adjusting at least one of the first and second time stamp values using the first and second deltaout values to compensate for any amount of time that the portion was swapped out in a multitasking operating system; and (d) subtracting the first time stamp value from the second time stamp value to determine execution time. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A computer program profiler, comprising:
-
(a) means for obtaining a first time stamp value at a beginning of a portion of software while obtaining a first deltaout value for a deltaout parameter, said first deltaout value being indicative of an amount of the portion has been swapped out prior to the first time stamp value, (b) means for obtaining a second time stamp value at an end of the position while obtaining a second deltaout value, said second deltaout value being indicative of an amount of time the portion has been swapped out prior to the second time stamp value, (c) means for adjusting at least one of the first and second time stamp values using the first and second deltaout values to compensate for any amount of time that the portion is swapped out in a multitasking operating system; and (d) means for subtracting the first time stamp value from the second time stamp value to determine execution time. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24)
-
Specification