Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a56063b authored by Cairn Overturf's avatar Cairn Overturf
Browse files

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
parent d567757a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment