summaryrefslogtreecommitdiffstats
path: root/run.py
blob: 5577a3224a1bf0f0a36d0f061610edac50db2b55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/python3
import sta

######################################
# Sched Trace Analyzer LaunchPad     #
######################################

def main():

    # A sample trace
    trace = sta.Trace(g6_list)
    trace.filter("pid==4125")
    trace.sort('job')
    trace.print_count(True)
    trace.print_records()

    #Some other things you can do (old commands I've used)
    #trace.filter("exec_time>8828")
    #trace.filter("job==12")
    #trace.filter("when>2000000000")
    #trace.filter("when<2500000000")
    #trace.filter("forced?==True")
    #trace.filter("type==1")
    #trace.filter("type!=3")


######################################
# Put lists of your trace files here #
######################################

path = '/home/mollison/sta/traces/'

full_list = [
path + 'st-g6-0.bin',
path + 'st-g6-1.bin',
path + 'st-g6-2.bin',
path + 'st-g6-3.bin',
path + 'st-x19-0.bin',
path + 'st-x19-1.bin',
path + 'st-x19-2.bin',
path + 'st-x19-3.bin',
path + 'st0.fg',
path + 'st1.fg']

short_list = [
path + 'st-x19-2.bin']

g6_list = [
path + 'st-g6-0.bin',
path + 'st-g6-1.bin',
path + 'st-g6-2.bin',
path + 'st-g6-3.bin']

x19_list = [
path + 'st-x19-0.bin',
path + 'st-x19-1.bin',
path + 'st-x19-2.bin',
path + 'st-x19-3.bin']

simple_list = [
path + 'st0.fg',
path + 'st1.fg']


##############
# start main #
##############

if __name__=='__main__':
    main()