summaryrefslogtreecommitdiffstats
path: root/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'run.py')
-rwxr-xr-xrun.py18
1 files changed, 8 insertions, 10 deletions
diff --git a/run.py b/run.py
index eac0ef9..5577a32 100755
--- a/run.py
+++ b/run.py
@@ -7,23 +7,21 @@ import sta
7 7
8def main(): 8def main():
9 9
10 #trace = sta.Trace(short_list) 10 # A sample trace
11 trace = sta.Trace(g6_list) 11 trace = sta.Trace(g6_list)
12 trace.filter("pid==4125")
13 trace.sort('job')
14 trace.print_count(True)
15 trace.print_records()
12 16
17 #Some other things you can do (old commands I've used)
13 #trace.filter("exec_time>8828") 18 #trace.filter("exec_time>8828")
14 #trace.filter("job==12") 19 #trace.filter("job==12")
15 #trace.filter("when>2000000000") 20 #trace.filter("when>2000000000")
16 #trace.filter("when<2500000000") 21 #trace.filter("when<2500000000")
17 #trace.filter("forced?==True") 22 #trace.filter("forced?==True")
18 23 #trace.filter("type==1")
19 trace.filter("type==1") 24 #trace.filter("type!=3")
20 #trace.sort(lambda x: x['pid'] or 0)
21
22 for record in trace.iter:
23 sta.print_record_verbose(record)
24
25
26
27 25
28 26
29###################################### 27######################################