summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMac Mollison <mollison@cs.unc.edu>2009-01-29 13:22:06 -0500
committerMac Mollison <mollison@cs.unc.edu>2009-01-29 13:22:06 -0500
commit439e60b68c42ccc49475a13f1afcf81260c332d3 (patch)
tree72756b28ae24e5185023516216b96a16f9b3ca47
parente5583136c038cdb004cdfe4cb3d7f1bdbd82f701 (diff)
Did more cleanup work. Decided for certain to maintain seperate files
for now. Create DEV_NOTES
-rw-r--r--DEV_NOTES16
-rwxr-xr-xsta.py15
-rw-r--r--sta_output.py5
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 @@
1Sched Trace Analyzer
2
3File 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
9Likely 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
diff --git a/sta.py b/sta.py
index f97154d..b0bb65a 100755
--- a/sta.py
+++ b/sta.py
@@ -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
21import sys 8import sys
22from sta_output import * 9from sta_output import *
23from sta_types import * 10from 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
5def print_record(record):
6 """Prints a record, given the record as a dict."""
7 print(record)
8
9
10def print_record_verbose(record): 5def 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*'=')