Tools: Minor perf tool fixes
Vicki Pfau vi@endrift.com
Tue, 09 Mar 2021 21:39:18 -0800
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
tools/perf.py
→
tools/perf.py
@@ -101,7 +101,7 @@ server_command.append('-N')
elif test.renderer == 'threaded-software': server_command.append('-T') subprocess.check_call(server_command) - time.sleep(1) + time.sleep(3) for backoff in range(self.RETRIES): try: self.socket = socket.create_connection(self.address, timeout=1000)@@ -180,7 +180,7 @@ if test.results:
results.append(test.results) last_result = results[-1] if last_result: - print('{:.2f} fps'.format(int(last_result['frames']) * 1000000 / float(last_result['duration']))) + print('{:.2f} fps'.format(int(last_result['frames']) * 1000000 / float(last_result['duration'])), file=sys.stderr) if self.server: self.server.finish() results.extend(self.server.results)