Lines Matching refs:perf
3 # Script to aggregate and report Linux perf results.
6 # ./scripts/perf.py -R -obench.perf ./runners/bench_runner
7 # ./scripts/perf.py bench.perf -j -Flfs.c -Flfs_util.c -Scycles
30 # TODO support non-zip perf results?
33 PERF_PATH = ['perf']
118 # perf results
159 # run perf as a subprocess, storing measurements into a zip file
167 # create a temporary file for perf to write to, as far as I can tell
168 # this is strictly needed because perf's pipe-mode only works with stdout
170 # figure out our perf invocation
171 perf = perf_path + list(filter(None, [
187 print(' '.join(shlex.quote(c) for c in perf + command))
188 err = sp.call(perf + command, close_fds=False)
202 with z.open('perf.%d' % os.getpid(), 'w') as g:
586 # some limitations of perf
608 # each .perf file is actually a zip file containing perf files from
1153 description="Aggregate and report Linux perf results.",
1159 help="Input *.perf files.")
1284 '--perf-path',
1286 help="Path to the perf executable, may include flags. "
1304 help="Run a command and aggregate perf measurements.")
1308 "zip-file of multiple perf results.")
1310 '--perf-freq',
1311 help="perf sampling frequency. This is passed directly to perf. "
1314 '--perf-period',
1315 help="perf sampling period. This is passed directly to perf.")
1317 '--perf-events',
1318 help="perf events to record. This is passed directly to perf. "
1321 '--perf-path',
1323 help="Path to the perf executable, may include flags. "