Skip to content

Commit 183dc31

Browse files
committed
adding a stamp to each trace to order by recording
1 parent 6d43874 commit 183dc31

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

jitlog/objects.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ def read_le_addr(self, fileobj):
458458
def add_trace(self, trace_type, unique_id, trace_nmr, jd_name=None):
459459
""" Create a new trace object and attach it to the forest """
460460
trace = Trace(self, trace_type, self.timepos, unique_id, jd_name)
461+
trace.stamp = len(self.traces)
461462
self.traces[unique_id] = trace
462463
self.last_trace = trace
463464
return trace

0 commit comments

Comments
 (0)