diff options
| author | John Reck <jreck@google.com> | 2015-05-11 14:29:55 -0700 |
|---|---|---|
| committer | John Reck <jreck@google.com> | 2015-05-11 14:29:55 -0700 |
| commit | 5742b9770a53a41be17ba24b05c62ca05532db91 (patch) | |
| tree | 9f783949f9cb31236604a29577d6acfd79b54f35 | |
| parent | d7b2a2e4562a9f5a085257b0da5a95b1b46d3d55 (diff) | |
| download | frameworks_base-5742b9770a53a41be17ba24b05c62ca05532db91.zip frameworks_base-5742b9770a53a41be17ba24b05c62ca05532db91.tar.gz frameworks_base-5742b9770a53a41be17ba24b05c62ca05532db91.tar.bz2 | |
Increase HISTORY_SIZE for GraphicsStatsService
The history size of 10 is a bit cramped, bump it
Change-Id: I4d0d72cf9bc167b395223d0c3e2a66fd4208e67c
| -rw-r--r-- | services/core/java/com/android/server/GraphicsStatsService.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/GraphicsStatsService.java b/services/core/java/com/android/server/GraphicsStatsService.java index c79fdfc..3fdef1d 100644 --- a/services/core/java/com/android/server/GraphicsStatsService.java +++ b/services/core/java/com/android/server/GraphicsStatsService.java @@ -52,9 +52,9 @@ import java.util.ArrayList; * 2) ASHMEM_SIZE (for scratch space used during dumping) * 3) ASHMEM_SIZE * HISTORY_SIZE * - * Currently ASHMEM_SIZE is 256 bytes and HISTORY_SIZE is 10. Assuming + * Currently ASHMEM_SIZE is 256 bytes and HISTORY_SIZE is 20. Assuming * the system then also has 10 active rendering processes in the worst case - * this would end up using under 10KiB (8KiB for the buffers, plus some overhead + * this would end up using under 14KiB (12KiB for the buffers, plus some overhead * for userId, pid, package name, and a couple other objects) * * @hide */ @@ -63,7 +63,7 @@ public class GraphicsStatsService extends IGraphicsStats.Stub { private static final String TAG = "GraphicsStatsService"; private static final int ASHMEM_SIZE = 256; - private static final int HISTORY_SIZE = 10; + private static final int HISTORY_SIZE = 20; private final Context mContext; private final Object mLock = new Object(); |
