Permalink
Browse files

tools: Fix profiling with -N on a remote

  • Loading branch information...
endrift committed Apr 2, 2018
1 parent 97e9461 commit cf3c275daf08fd89095302cff18d4c3e3b09bd67
Showing with 4 additions and 2 deletions.
  1. +4 −2 tools/perf.py
View
@@ -89,8 +89,10 @@ def _start(self, test):
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)

0 comments on commit cf3c275

Please sign in to comment.