tools: Fix profiling with -N on a remote

This commit is contained in:
Vicki Pfau 2018-04-02 13:21:58 -07:00
parent 97e94610e6
commit cf3c275daf
1 changed files with 4 additions and 2 deletions

View File

@ -89,8 +89,10 @@ class PerfServer(object):
else: else:
server_command = [os.path.join(os.getcwd(), PerfTest.EXECUTABLE)] server_command = [os.path.join(os.getcwd(), PerfTest.EXECUTABLE)]
server_command.extend(['--', '-PD', '0']) server_command.extend(['--', '-PD', '0'])
if (hasattr(test, "frames")): if hasattr(test, "frames"):
server_command.extend(['-F', str(test.frames)]) server_command.extend(['-F', str(test.frames)])
if test.renderer != "software":
server_command.append('-N')
subprocess.check_call(server_command) subprocess.check_call(server_command)
time.sleep(4) time.sleep(4)
self.socket = socket.create_connection(self.address, timeout=1000) self.socket = socket.create_connection(self.address, timeout=1000)