Method and system for compensating for output overhead in trace date using trace record information
First Claim
1. A method for processing trace data output in a data processing system, the method comprising the computer-implemented steps of:
- reading a first timestamp and a second timestamp from a first trace record;
reading a third timestamp and a fourth timestamp from a second trace record; and
computing the difference between a time value associated with the first trace record and a time value associated with the second trace record to obtain a delta time.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and system for compensating for output overhead in trace data is provided by analyzing and compensating for the overhead associated with outputting trace information to a trace buffer or a trace file in the form of trace records. A trace record represents an occurrence of some profiling event of interest. Each trace record contains a starting timestamp representing the time at which the generation of the trace record was commenced and an ending timestamp representing the time at which the generation of the trace record was completed. In order to compute the period of execution time attributable to the application program or system being profiled, a starting timestamp of a trace record is compared with the ending timestamp of a preceding trace record, and the difference between the timestamps is directly related to the execution time of the application program or system being profiled. The time period between the timestamps in a trace record is implicitly disregarded as attributable to overhead in the generation of trace records.
93 Citations
27 Claims
-
1. A method for processing trace data output in a data processing system, the method comprising the computer-implemented steps of:
-
reading a first timestamp and a second timestamp from a first trace record;
reading a third timestamp and a fourth timestamp from a second trace record; and
computing the difference between a time value associated with the first trace record and a time value associated with the second trace record to obtain a delta time. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
attributing the delta time to a performance statistic for a routine whose execution caused a trace record to be generated.
-
-
5. The method of claim 1 wherein the first trace record and the second trace record are output during execution of a profiling process in the data processing system.
-
6. The method of claim 1 wherein the delta time is the difference between the third timestamp and the second timestamp.
-
7. The method of claim 1 further comprising:
adjusting the delta time in proportion to an amount of time required to obtain a timestamp.
-
8. The method of claim 1 further comprising:
adjusting a time value associated with the second timestamp in proportion to an amount of time required to obtain a timestamp.
-
9. The method of claim 1 wherein the trace records are generated by a trace card.
-
10. A data processing system for processing trace data output in the data processing system, the data processing system comprising:
-
first reading means for reading a first timestamp and a second timestamp from a first trace record;
second reading means for reading a third timestamp and a fourth timestamp from a second trace record; and
computing means for computing the difference between a time value associated with the first trace record and a time value associated with the second trace record to obtain a delta time. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
attributing means for attributing the delta time to a performance statistic for a routine whose execution caused a trace record to be generated.
-
-
14. The data processing system of claim 10 wherein the first trace record and the second trace record are output during execution of a profiling process in the data processing system.
-
15. The data processing system of claim 10 wherein the delta time is the difference between the third timestamp and the second timestamp.
-
16. The data processing system of claim 10 further comprising:
first adjusting means for adjusting the delta time in proportion to an amount of time required to obtain a timestamp.
-
17. The data processing system of claim 10 further comprising:
second adjusting means for adjusting a time value associated with the second timestamp in proportion to an amount of time required to obtain a timestamp.
-
18. The data processing system of claim 10 wherein the trace records are generated by a trace card.
-
19. A computer program product in a computer-readable medium for use in a data processing system for processing trace data output, the computer program product comprising:
-
first instructions for reading a first timestamp and a second timestamp from a first trace record;
second instructions for reading a third timestamp and a fourth timestamp from a second trace record; and
third instructions for computing the difference between a time value associated with the first trace record and a time value associated with the second trace record to obtain a delta time. - View Dependent Claims (20, 21, 22, 23, 24, 25, 26, 27)
instructions for attributing the delta time to a performance statistic for a routine whose execution caused a trace record to be generated.
-
-
23. The computer program product of claim 19 wherein the first trace record and the second trace record are output during execution of a profiling process in the data processing system.
-
24. The computer program product of claim 19 wherein the delta time is the difference between the third timestamp and the second timestamp.
-
25. The computer program product of claim 19 further comprising:
instructions for adjusting the delta time in proportion to an amount of time required to obtain a timestamp.
-
26. The computer program product of claim 19 further comprising:
instructions for adjusting a time value associated with the second timestamp in proportion to an amount of time required to obtain a timestamp.
-
27. The computer program product of claim 19 wherein the trace records are generated by a trace card.
Specification