From 68714e0e558f331b31dbafee7683b26deeab097c Mon Sep 17 00:00:00 2001 From: Michael McGeagh Date: Mon, 11 Apr 2016 11:39:19 +0100 Subject: [PATCH] fps: Only check for crashed content if crash_check is true. --- wlauto/instrumentation/fps/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 wlauto/instrumentation/fps/__init__.py diff --git a/wlauto/instrumentation/fps/__init__.py b/wlauto/instrumentation/fps/__init__.py old mode 100644 new mode 100755 index 4acd4574..5f09fe7e --- a/wlauto/instrumentation/fps/__init__.py +++ b/wlauto/instrumentation/fps/__init__.py @@ -166,7 +166,7 @@ class FpsInstrument(Instrument): def slow_update_result(self, context): result = context.result - if result.has_metric('execution_time'): + if self.crash_check and result.has_metric('execution_time'): self.logger.debug('Checking for crashed content.') exec_time = result['execution_time'].value fps = result['FPS'].value