Tools: Minor perf tool fixes

This commit is contained in:
Vicki Pfau 2021-03-09 21:39:18 -08:00
parent 9bad312ee2
commit 4999315510
1 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ class PerfServer(object):
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 @@ class Suite(object):
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)