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

« back to all changes in this revision

Viewing changes to scripts/plot-top.py

  • Committer: Will Newton
  • Date: 2013-04-30 14:31:08 UTC
  • Revision ID: will.newton@linaro.org-20130430143108-ww31c741wek8dnus
Split bionic reference code into A15 and A9 versions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
        heights = []
28
28
 
29
29
        for function in functions:
30
 
            matches = [x for x in records if x.variant==variant and x.function==function and x.src_alignment==8]
 
30
            matches = [x for x in records if x.variant==variant and x.function==function and x.alignment==8]
31
31
 
32
32
            if matches:
33
 
                vals = [match.bytes*match.loops/match.elapsed/(1024*1024) for
34
 
                        match in matches]
35
 
                mean = sum(vals)/len(vals)
36
 
                heights.append(mean)
 
33
                match = matches[0]
 
34
                heights.append(match.bytes*match.loops/match.elapsed/(1024*1024))
37
35
            else:
38
36
                heights.append(0)
39
37