From 295b04fb5aa365adb428859905f262ac7bde32a8 Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Mon, 20 Jul 2015 14:45:25 +0100 Subject: [PATCH] Updating jank calcluation to only count "large" janks. --- wlauto/instrumentation/fps/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wlauto/instrumentation/fps/__init__.py b/wlauto/instrumentation/fps/__init__.py index 26c06a7c..b382875f 100644 --- a/wlauto/instrumentation/fps/__init__.py +++ b/wlauto/instrumentation/fps/__init__.py @@ -204,7 +204,7 @@ class FpsInstrument(Instrument): vtc_deltas = filtered_vsyncs_to_compose - filtered_vsyncs_to_compose.shift() vtc_deltas.index = range(0, vtc_deltas.size) vtc_deltas = vtc_deltas.drop(0).abs() - janks = vtc_deltas.apply(lambda x: (x > EPSYLON) and 1 or 0).sum() + janks = vtc_deltas.apply(lambda x: (x > 1.5) and 1 or 0).sum() not_at_vsync = vsyncs_to_compose.apply(lambda x: (abs(x - 1.0) > EPSYLON) and 1 or 0).sum() context.result.add_metric('janks', janks) context.result.add_metric('not_at_vsync', not_at_vsync)