Ignore:
Timestamp:
Sep 13, 2013, 2:48:28 PM (6 years ago)
Author:
bhull
Message:

Perf script changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/RE/performance/perf.py

    r3461 r3470  
    3030        if not os.path.exists(outputpath):
    3131                os.makedirs(outputpath)
    32         one=execute_one(execution,1)
    33         results_file = open(outputpath+'/'+execution.stat,'w')
    34         results_file.write(str(one))
    35         results_file.close()
     32        if not os.path.exists(outputpath+'/'+execution.stat):           
     33                one=execute_one(execution,1)
     34                results_file = open(outputpath+'/'+execution.stat,'w')
     35                results_file.write(str(one))
     36                results_file.close()
     37        else:
     38                results_file = open(outputpath+'/'+execution.stat,'r')
     39                one=int(results_file.read())
     40                results_file.close()
    3641        return one,one,one,one
    3742
     
    8489        if execution.program=='nrgrep':
    8590                nrgreplocation='nrgrep-1.0/nrgrep'
     91                e = execution.expression.expression
    8692                if nrgrep_override.has_key(e): e = nrgrep_override[e]
    8793                e = escape_quotes(e)
     
    187193expressions.append(Expression('(^|[^A-Z0-9:])([A-F0-9]{1,4}:){7}[A-F0-9]{1,4}($|[^A-Z0-9:])', 'IPv6', ('reb',)))
    188194
    189 programs = ['bitstreams','agrep', 'nrgrep112', 'grep', 'pcregrep']
     195programs = ['bitstreams', 'agrep', 'nrgrep112', 'grep', 'pcregrep']
    190196#programs = ['bitstreams','grep']
    191197#programs = ['bitstreams']
     
    193199#stats = ['cycles:u', 'instructions:u', 'cache-misses:u', 'L1-dcache-load-misses:u', 'L1-dcache-store-misses:u', 'L1-dcache-prefetch-misses:u', 'L1-icache-load-misses:u']
    194200stats = ['cycles:u']
     201
    195202
    196203typeargument=False
Note: See TracChangeset for help on using the changeset viewer.