diff options
author | Mac Mollison <mollison@cs.unc.edu> | 2009-02-01 14:49:00 -0500 |
---|---|---|
committer | Mac Mollison <mollison@cs.unc.edu> | 2009-02-01 14:49:00 -0500 |
commit | 645d2388371d97cd106f6e68cd9ef7a722010166 (patch) | |
tree | 5afddbb5d723cbb743d80c67a18d3b0a770879d2 | |
parent | 439e60b68c42ccc49475a13f1afcf81260c332d3 (diff) |
Fixed error in sta_output in which get_types was not found
-rwxr-xr-x | sta.py | 2 | ||||
-rw-r--r-- | sta_output.py | 2 | ||||
-rw-r--r-- | sta_types.py | 1 |
3 files changed, 4 insertions, 1 deletions
@@ -16,7 +16,7 @@ from sta_types import * | |||
16 | # Business logic # | 16 | # Business logic # |
17 | ################## | 17 | ################## |
18 | 18 | ||
19 | def trace_iter(*files): | 19 | def trace_iter(files): |
20 | """Returns an iterator for iterating over trace(s) and producing records.""" | 20 | """Returns an iterator for iterating over trace(s) and producing records.""" |
21 | for file in files: | 21 | for file in files: |
22 | f = open(file,'rb') | 22 | f = open(file,'rb') |
diff --git a/sta_output.py b/sta_output.py index 6e5546f..1e46f78 100644 --- a/sta_output.py +++ b/sta_output.py | |||
@@ -2,6 +2,8 @@ | |||
2 | # Output formatting functions # | 2 | # Output formatting functions # |
3 | #################################### | 3 | #################################### |
4 | 4 | ||
5 | from sta_types import get_type | ||
6 | |||
5 | def print_record_verbose(record): | 7 | def print_record_verbose(record): |
6 | """Prints a record verbosely, given the record as a dict.""" | 8 | """Prints a record verbosely, given the record as a dict.""" |
7 | print(50*'=') | 9 | print(50*'=') |
diff --git a/sta_types.py b/sta_types.py index d837559..aaff49e 100644 --- a/sta_types.py +++ b/sta_types.py | |||
@@ -52,6 +52,7 @@ class StSwitchAwayData: | |||
52 | format = 'LI' | 52 | format = 'LI' |
53 | formatStr = struct.Struct(StHeader.format + format) | 53 | formatStr = struct.Struct(StHeader.format + format) |
54 | keys = StHeader.keys + ['when','exec_time'] | 54 | keys = StHeader.keys + ['when','exec_time'] |
55 | message = 'A process was away on a given CPU.' | ||
55 | 56 | ||
56 | class StCompletionData: | 57 | class StCompletionData: |
57 | format = 'L7x?c' | 58 | format = 'L7x?c' |