diff options
| author | Collin Fijalkovich <cfijalkovich@google.com> | 2020-04-29 16:02:07 -0700 |
|---|---|---|
| committer | Collin Fijalkovich <cfijalkovich@google.com> | 2020-05-13 11:15:22 -0700 |
| commit | ceefcec397fedca948ab7a710e42ec635591f9b2 (patch) | |
| tree | 5b3ac105f046b40179b53b93d9ca3cdc13541a6e /core/java/android/app/ActivityThread.java | |
| parent | 8c239da8d54bc2ac93fe666a7ca7825f0e82b923 (diff) | |
Add cache debugging information to bugreports.
Following the model for dumpsys gfxinfo, this patchset adds a
CacheBinder service that dumps cache state information from each
process.
Bug: 153661880
Test: adb shell dumpsys cacheinfo
Test: adb bugreport
Change-Id: Ie7cce70e56777a200e3e3e92ab895126b6f29032
Diffstat (limited to 'core/java/android/app/ActivityThread.java')
| -rw-r--r-- | core/java/android/app/ActivityThread.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java index c6e2d5290d2e..ab82eb026b51 100644 --- a/core/java/android/app/ActivityThread.java +++ b/core/java/android/app/ActivityThread.java @@ -1538,6 +1538,12 @@ public final class ActivityThread extends ClientTransactionHandler { IoUtils.closeQuietly(pfd); } + @Override + public void dumpCacheInfo(ParcelFileDescriptor pfd, String[] args) { + PropertyInvalidatedCache.dumpCacheInfo(pfd.getFileDescriptor(), args); + IoUtils.closeQuietly(pfd); + } + private File getDatabasesDir(Context context) { // There's no simple way to get the databases/ path, so do it this way. return context.getDatabasePath("a").getParentFile(); |
