From cf3c275daf08fd89095302cff18d4c3e3b09bd67 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Mon, 2 Apr 2018 13:21:58 -0700 Subject: [PATCH] tools: Fix profiling with -N on a remote --- tools/perf.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/perf.py b/tools/perf.py index fdf830a77..67453ddeb 100755 --- a/tools/perf.py +++ b/tools/perf.py @@ -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)