all repos — mgba @ df4ac1591e5ed89f33bd065a234914282115d982

mGBA Game Boy Advance Emulator

tools: Fix profiling with -N on a remote
Vicki Pfau vi@endrift.com
Mon, 02 Apr 2018 13:21:58 -0700
commit

df4ac1591e5ed89f33bd065a234914282115d982

parent

ddb2b58e135cc99bc6dd54f857df400463860617

1 files changed, 4 insertions(+), 2 deletions(-)

jump to
M tools/perf.pytools/perf.py

@@ -89,8 +89,10 @@ server_command = list(self.command)

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)