~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-09-09 15:34:02 UTC
  • Revision ID: will.newton@linaro.org-20130909153402-40quvmkeofe6g7og
Fix more comments relating to alignment.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
            matches = [x for x in records if x.variant==variant and x.function==function and x.src_alignment==8]
31
31
 
32
32
            if matches:
33
 
                match = matches[0]
34
 
                heights.append(match.bytes*match.loops/match.elapsed/(1024*1024))
 
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)
35
37
            else:
36
38
                heights.append(0)
37
39