tools: Fix profiling with -N on a remote

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

View File

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