diff options
author | Mac Mollison <mollison@cs.unc.edu> | 2010-03-26 13:08:32 -0400 |
---|---|---|
committer | Mac Mollison <mollison@cs.unc.edu> | 2010-03-26 13:08:32 -0400 |
commit | a7bf26bd5597661b51c42e34ad2fad4c315b8aed (patch) | |
tree | 8f6e16a8c8a8884336d36be9bab15dd3081f5562 /unit_trace/stdout_printer.py | |
parent | 7dd68f20059d8aecbecf475042e7337129088428 (diff) |
Enable filter by ID instead of time
Filtering by time is too cumbersome (because time values are so large),
so we give each event record an ID and filter by that instead in
in the earliest and latest modules.
Diffstat (limited to 'unit_trace/stdout_printer.py')
-rw-r--r-- | unit_trace/stdout_printer.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unit_trace/stdout_printer.py b/unit_trace/stdout_printer.py index 8842b71..d242bb6 100644 --- a/unit_trace/stdout_printer.py +++ b/unit_trace/stdout_printer.py | |||
@@ -27,6 +27,7 @@ def stdout_printer(stream): | |||
27 | ############################################################################### | 27 | ############################################################################### |
28 | 28 | ||
29 | def _print_event(record): | 29 | def _print_event(record): |
30 | print "ID: %d" % (record.id) | ||
30 | print "Job: %d.%d" % (record.pid,record.job) | 31 | print "Job: %d.%d" % (record.pid,record.job) |
31 | print "Type: %s" % (record.type_name) | 32 | print "Type: %s" % (record.type_name) |
32 | print "Time: %d" % (record.when) | 33 | print "Time: %d" % (record.when) |