~linaro-toolchain-dev/cortex-strings/trunk

« back to all changes in this revision

Viewing changes to scripts/plot-top.py

  • Committer: Michael Hope
  • Date: 2011-08-31 23:52:05 UTC
  • Revision ID: michael.hope@linaro.org-20110831235205-gwc0igvevvhyyop8
Various updates to the benchmark plotting scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
def plot(records, bytes):
13
13
    records = [x for x in records if x.bytes==bytes]
14
14
 
15
 
    variants = libplot.unique(records, 'variant')
 
15
    variants = libplot.unique(records, 'variant', prefer='this')
16
16
    functions = libplot.unique(records, 'function')
17
17
 
18
18
    X = pylab.arange(len(functions))
20
20
 
21
21
    colours = iter('bgrcmyk')
22
22
 
 
23
    pylab.clf()
 
24
 
23
25
    for i, variant in enumerate(variants):
24
26
        heights = []
25
27
 
46
48
 
47
49
def main():
48
50
    records = libplot.parse()
49
 
    plot(records, 64)
 
51
 
 
52
    for bytes in [1, 8, 31, 64, 128]:
 
53
        plot(records, bytes)
 
54
 
50
55
    pylab.show()
51
56
 
52
57
if __name__ == '__main__':