mirror of https://github.com/mgba-emu/mgba.git
tools: Fix profiling with -N on a remote
This commit is contained in:
parent
97e94610e6
commit
cf3c275daf
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue