Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion wa/workloads/spec2006/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def run(self, target):
target.execute('perfetto --background --txt -c - -o /sdcard/devlib-target/spec.pftrace < /sdcard/devlib-target/trigger.cfg')
command = 'sh {} {} {} 2>&1 | tee -a {}'.format(self.run_spec_script, test_name, test_target_output_dir, timing_output_file_path)
target.execute(command, as_root=True)
target.execute('perfetto --background --txt -c - < /sdcard/devlib-target/stop.cfg')
#target.execute('perfetto --background --txt -c - < /sdcard/devlib-target/stop.cfg')

def update_output(self, context):
super().update_output(context)
Expand Down Expand Up @@ -329,6 +329,9 @@ def _write_to_group_file(self, context, filepath, group, test_name):
group_timing_file.write('{}:\n'.format(test_name))
for line in lines:
group_timing_file.write(line)

def _finish_perfetto(self, target):
target.execute('perfetto --background --txt -c - < /sdcard/devlib-target/stop.cfg')

@staticmethod
def _calculate_test_benchmark_ratio(test_name, elapsed_time):
Expand Down