diff options
author | Mac Mollison <mollison@cs.unc.edu> | 2009-01-29 13:22:06 -0500 |
---|---|---|
committer | Mac Mollison <mollison@cs.unc.edu> | 2009-01-29 13:22:06 -0500 |
commit | 439e60b68c42ccc49475a13f1afcf81260c332d3 (patch) | |
tree | 72756b28ae24e5185023516216b96a16f9b3ca47 | |
parent | e5583136c038cdb004cdfe4cb3d7f1bdbd82f701 (diff) |
Did more cleanup work. Decided for certain to maintain seperate files
for now. Create DEV_NOTES
-rw-r--r-- | DEV_NOTES | 16 | ||||
-rwxr-xr-x | sta.py | 15 | ||||
-rw-r--r-- | sta_output.py | 5 |
3 files changed, 17 insertions, 19 deletions
diff --git a/DEV_NOTES b/DEV_NOTES new file mode 100644 index 0000000..bb80106 --- /dev/null +++ b/DEV_NOTES | |||
@@ -0,0 +1,16 @@ | |||
1 | Sched Trace Analyzer | ||
2 | |||
3 | File Summary: | ||
4 | -sta.py : business logic | ||
5 | -sta_types.py : specifies binary format of sched trace data | ||
6 | -sta_output.py : output formatting function(s) | ||
7 | |||
8 | |||
9 | Likely next steps: | ||
10 | - Try to get StParamData working | ||
11 | - Define convenience comparisons for ordering by earliest time for sort, | ||
12 | - and lambdas for filtering by job or PID or CPU or whatever | ||
13 | - and change read_trace to possibly take multiple traces. | ||
14 | - and /maybe/ allow for saving /loading previously saved traces. | ||
15 | |||
16 | |||
@@ -1,23 +1,10 @@ | |||
1 | #!/usr/bin/python3 | 1 | #!/usr/bin/python3 |
2 | 2 | ||
3 | #Note to self: I stopped while working on implementing an iterator so I could | ||
4 | # do a filter() operation to get only events of a certain job so I could compare | ||
5 | # to Bjoern's pdf | ||
6 | # Note: Just got StDump iterator working. Remember list() in iterator. | ||
7 | # Note: Just got a generator working :) Awesome, need to pretty up. | ||
8 | # Note: Likely next steps: | ||
9 | # - Define convenience comparisons for ordering by earliest time for sort, | ||
10 | # - and lambdas for filtering by job or PID or CPU or whatever | ||
11 | # - and change read_trace to possibly take multiple traces. | ||
12 | # - and /maybe/ allow for saving /loading previously saved traces. | ||
13 | |||
14 | |||
15 | 3 | ||
16 | ################## | 4 | ################## |
17 | # Starting stuff # | 5 | # Imports # |
18 | ################## | 6 | ################## |
19 | 7 | ||
20 | # Imports | ||
21 | import sys | 8 | import sys |
22 | from sta_output import * | 9 | from sta_output import * |
23 | from sta_types import * | 10 | from sta_types import * |
diff --git a/sta_output.py b/sta_output.py index d2235b7..6e5546f 100644 --- a/sta_output.py +++ b/sta_output.py | |||
@@ -2,11 +2,6 @@ | |||
2 | # Output formatting functions # | 2 | # Output formatting functions # |
3 | #################################### | 3 | #################################### |
4 | 4 | ||
5 | def print_record(record): | ||
6 | """Prints a record, given the record as a dict.""" | ||
7 | print(record) | ||
8 | |||
9 | |||
10 | def print_record_verbose(record): | 5 | def print_record_verbose(record): |
11 | """Prints a record verbosely, given the record as a dict.""" | 6 | """Prints a record verbosely, given the record as a dict.""" |
12 | print(50*'=') | 7 | print(50*'=') |