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

Commit bca2c7a1 authored by John Reck's avatar John Reck Committed by Android Git Automerger
Browse files

am 4bd4121d: Merge "Increase HISTORY_SIZE for GraphicsStatsService" into mnc-dev

* commit '4bd4121d':
  Increase HISTORY_SIZE for GraphicsStatsService
parents dc15e243 4bd4121d
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -52,9 +52,9 @@ import java.util.ArrayList;
 * 2) ASHMEM_SIZE (for scratch space used during dumping)
 * 2) ASHMEM_SIZE (for scratch space used during dumping)
 * 3) ASHMEM_SIZE * HISTORY_SIZE
 * 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
 * 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)
 * for userId, pid, package name, and a couple other objects)
 *
 *
 *  @hide */
 *  @hide */
@@ -63,7 +63,7 @@ public class GraphicsStatsService extends IGraphicsStats.Stub {


    private static final String TAG = "GraphicsStatsService";
    private static final String TAG = "GraphicsStatsService";
    private static final int ASHMEM_SIZE = 256;
    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 Context mContext;
    private final Object mLock = new Object();
    private final Object mLock = new Object();