diff options
| author | 2023-05-10 16:52:58 +0200 | |
|---|---|---|
| committer | 2023-05-12 17:29:15 +0200 | |
| commit | dff9e1cc5e15eaba1519e8ab98b1b4e885c98609 (patch) | |
| tree | 0f5ec8e18692950642f5644757bef12c34dc32a1 /libs/input/SpriteController.cpp | |
| parent | 2d3194900d7c417db78758fdff63c602b62e8945 (diff) | |
Trigger background memory trim when SystemUI is idle
SystemUI never receives BACKGROUND level trim commmand - this means that
several caches (especially font) can stay around for a long time before
they reach their set limits and trigger a trim. This causes significant
increase in private memory in cases where many font variants are
allocated - for example when lockscreen clock is animated through
different font variations.
This adds a BACKGROUND trim command when SysUI goes idle after
transitioning to AoD or simply turning off the screen. This is the
closest SysUI has to "background" state where it can safely cleanup its
resources.
Bug: 275486055
Test: atest ResourceTrimmer
memory benchmark with LockscreenAodTransitionBenchmark showing
~20MB of descrease in RssAnon after a 30 iteration benchmark run
Change-Id: Ia4abd0d9c3cf3b3a71bdd31f1009f37b18c99ae9
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions