Track full HWC strategy when doing prediction
Query for testing:
WITH SliceCounts AS (
SELECT
SUM(CASE WHEN name = 'prepareFrameAsync' THEN 1 ELSE 0 END) AS prepareFrameAsync_count,
SUM(CASE WHEN name = 'CompositionStrategyPredictionHit' THEN 1 ELSE 0 END) AS predictionHit_count,
SUM(CASE WHEN name = 'CompositionStrategyPredictionMiss' THEN 1 ELSE 0 END) AS predictionMiss_count
FROM slice
WHERE name IN (
'prepareFrameAsync',
'CompositionStrategyPredictionHit',
'CompositionStrategyPredictionMiss'
)
)
SELECT
prepareFrameAsync_count,
predictionHit_count,
predictionMiss_count,
CASE
WHEN prepareFrameAsync_count = 0 THEN 0.0
ELSE (predictionHit_count + predictionMiss_count) * 1.0 / prepareFrameAsync_count
END AS prediction_to_prepare_ratio
FROM SliceCounts;
Bug: 383675195, 399044498
Test: Take a perfetto trace of some CUJs and run the above script. It should be similar before and after the change.
Flag: EXEMPT bugfix
Change-Id: Ifb01f4edbfd73e03763356b5b06744771d4665e8
Loading
Please register or sign in to comment