From be3fba05e823f740f65b2679929347dc3dd282ad Mon Sep 17 00:00:00 2001 From: John Reck Date: Mon, 6 Jul 2015 13:49:58 -0700 Subject: Adjust for pipeline stalls Bug: 20853441 Calculating duration that crosses the UI-RT sync point will now subtract out the time spent waiting in queue under the assumption that this time will be accounted for in the previous frame's metrics Change-Id: Ia8213f4410638840613f5ae439e98dfb77532a6a --- docs/html/preview/testing/performance.jd | 24 ++++++++++++++++++++---- libs/hwui/FrameInfo.cpp | 1 + libs/hwui/FrameInfo.h | 26 +++++++++++++++++++++----- libs/hwui/FrameInfoVisualizer.cpp | 10 +++++----- libs/hwui/FrameInfoVisualizer.h | 6 ++---- libs/hwui/JankTracker.cpp | 4 ++-- libs/hwui/renderthread/CanvasContext.cpp | 5 +++-- libs/hwui/renderthread/CanvasContext.h | 2 +- libs/hwui/renderthread/DrawFrameTask.cpp | 3 ++- libs/hwui/renderthread/DrawFrameTask.h | 1 + libs/hwui/tests/main.cpp | 2 -- 11 files changed, 58 insertions(+), 26 deletions(-) diff --git a/docs/html/preview/testing/performance.jd b/docs/html/preview/testing/performance.jd index abb41c4..6f0a5f1 100644 --- a/docs/html/preview/testing/performance.jd +++ b/docs/html/preview/testing/performance.jd @@ -112,10 +112,10 @@ Number Slow draw: 23342

-0,49762224585003,49762241251670,9223372036854775807,0,49762257627204,49762257646058,49762257969704,49762258002100,49762265541631,49762273951162,49762300914808,49762303675954,
-0,49762445152142,49762445152142,9223372036854775807,0,49762446678818,49762446705589,49762447268818,49762447388037,49762453551527,49762457134131,49762474889027,49762476150120,
-0,49762462118845,49762462118845,9223372036854775807,0,49762462595381,49762462619287,49762462919964,49762462968454,49762476194547,49762476483454,49762480214964,49762480911527,
-0,49762479085548,49762479085548,9223372036854775807,0,49762480066370,49762480099339,49762481013089,49762481085850,49762482232152,49762482478350,49762485657620,49762486116683,
+0,27965466202353,27965466202353,27965449758000,27965461202353,27965467153286,27965471442505,27965471925682,27965474025318,27965474588547,27965474860786,27965475078599,27965479796151,27965480589068,
+0,27965482993342,27965482993342,27965465835000,27965477993342,27965483807401,27965486875630,27965487288443,27965489520682,27965490184380,27965490568703,27965491408078,27965496119641,27965496619641,
+0,27965499784331,27965499784331,27965481404000,27965494784331,27965500785318,27965503736099,27965504201151,27965506776568,27965507298443,27965507515005,27965508405474,27965513495318,27965514061984,
+0,27965516575320,27965516575320,27965497155000,27965511575320,27965517697349,27965521276151,27965521734797,27965524350474,27965524884536,27965525160578,27965526020891,27965531371203,27965532114484,
 

@@ -283,6 +283,22 @@ Number Slow draw: 23342 +

  • SYNC_QUEUED + +
  • +
  • SYNC_START