OSDN Git Service

SystemUI heap monitor & hprof dump tile.
authorDan Sandler <dsandler@android.com>
Fri, 23 Mar 2018 20:29:06 +0000 (16:29 -0400)
committerDaniel Sandler <dsandler@android.com>
Tue, 1 May 2018 21:51:15 +0000 (21:51 +0000)
commit4d90d1ede7f6ce4b541b4632112b033869ffccce
treee338d644ec44338469b133fad6fb9c8ecc48f70f
parent3ac00caddf2b540d6f7240c00dec85bf019f164e
SystemUI heap monitor & hprof dump tile.

Adding the tile to your active set will start a continuous memory tracker,
updating the tile every minute with the latest pss value. Tapping the tile
will pull a full heap dump, zip it, and share it via ACTION_SEND.

Additionally, @integer/watch_heap_limit can be set to the heap size (in KB)
at which ActivityManager will automatically generate a heap dump and notify
the user when it's ready.

Available only on IS_DEBUGGABLE builds. Supplies limited. Order now!

Bug: 76208386
Test: atest com.android.systemui.util.leak.GarbageMonitorTest
Test: runtest systemui
Change-Id: I0434dd7dc330784c750469b013e40b31ef92638d
packages/SystemUI/AndroidManifest.xml
packages/SystemUI/res/drawable/ic_memory.xml [new file with mode: 0644]
packages/SystemUI/res/values/config.xml
packages/SystemUI/res/values/strings.xml
packages/SystemUI/src/com/android/systemui/Dependency.java
packages/SystemUI/src/com/android/systemui/qs/customize/TileQueryHelper.java
packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSFactoryImpl.java
packages/SystemUI/src/com/android/systemui/util/leak/DumpTruck.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/util/leak/GarbageMonitor.java
packages/SystemUI/tests/src/com/android/systemui/util/leak/GarbageMonitorTest.java