summaryrefslogtreecommitdiffstats
path: root/unit_trace/stdout_printer.py
diff options
context:
space:
mode:
authorMac Mollison <mollison@cs.unc.edu>2010-03-26 14:27:38 -0400
committerMac Mollison <mollison@cs.unc.edu>2010-03-26 14:27:38 -0400
commitd486ddadacd9e9308e64c251388ff262d4b2d198 (patch)
tree25770a1f024aaa67062771418d5fd85426a059fd /unit_trace/stdout_printer.py
parent58d168e52c3de9f3a53d0aea802be5cab492ade6 (diff)
Track and print triggering events with inversions
Diffstat (limited to 'unit_trace/stdout_printer.py')
-rw-r--r--unit_trace/stdout_printer.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/unit_trace/stdout_printer.py b/unit_trace/stdout_printer.py
index 4fea95a..a56acce 100644
--- a/unit_trace/stdout_printer.py
+++ b/unit_trace/stdout_printer.py
@@ -33,8 +33,9 @@ def _print_event(record):
33 print "Time: %d" % (record.when) 33 print "Time: %d" % (record.when)
34 34
35def _print_inversion_start(record): 35def _print_inversion_start(record):
36 print "Inversion Record IDs: (%d, U)" % (record.id)
37 print "Type: %s" % ("Inversion start") 36 print "Type: %s" % ("Inversion start")
37 print "Inversion Record IDs: (%d, U)" % (record.id)
38 print "Triggering Event IDs: (%d, U)" % (record.triggering_event_id)
38 print "Time: %d" % (record.job.inversion_start) 39 print "Time: %d" % (record.job.inversion_start)
39 print "Job: %d.%d" % (record.job.pid,record.job.job) 40 print "Job: %d.%d" % (record.job.pid,record.job.job)
40 print "Deadline: %d" % (record.job.deadline) 41 print "Deadline: %d" % (record.job.deadline)
@@ -48,8 +49,12 @@ def _print_inversion_start(record):
48 print #newline 49 print #newline
49 50
50def _print_inversion_end(record): 51def _print_inversion_end(record):
51 print "Inversion record IDs: (%d, %d)" % (record.inversion_start_id,record.id)
52 print "Type: %s" % ("Inversion end") 52 print "Type: %s" % ("Inversion end")
53 print "Inversion record IDs: (%d, %d)" % (record.inversion_start_id,
54 record.id)
55 print("Triggering Event IDs: (%d, %d)" %
56 (record.inversion_start_triggering_event_id,
57 record.triggering_event_id))
53 print "Time: %d" % (record.job.inversion_end) 58 print "Time: %d" % (record.job.inversion_end)
54 print "Duration: %d" % ( 59 print "Duration: %d" % (
55 record.job.inversion_end - record.job.inversion_start) 60 record.job.inversion_end - record.job.inversion_start)