Index: test-suite/trunk/litsupport/modules/perf.py =================================================================== --- test-suite/trunk/litsupport/modules/perf.py +++ test-suite/trunk/litsupport/modules/perf.py @@ -6,12 +6,13 @@ def _mutateCommandLine(context, commandline): - profilefile = context.tmpBase + ".perf_data" + context.profilefile = context.tmpBase + ".perf_data" + # Storing profile file in context allows other modules to be aware of it. cmd = shellcommand.parse(commandline) cmd.wrap('perf', [ 'record', '-e', context.config.perf_profile_events, - '-o', profilefile, + '-o', context.profilefile, '--' ]) if cmd.stdout is None: @@ -33,4 +34,4 @@ script = testplan.mutateScript(context, script, _mutateCommandLine) plan.profilescript += script plan.metric_collectors.append( - lambda context: {'profile': context.tmpBase + '.perf_data'}) + lambda context: {'profile': context.profilefile})