diff options
| author | 2012-05-01 05:51:48 -0700 | |
|---|---|---|
| committer | 2012-05-01 05:51:49 -0700 | |
| commit | bfe71c35a836e14b7a9f58d90f26fd187df82b06 (patch) | |
| tree | c9a01860d11038398234a65c4d7db2cc459cc500 | |
| parent | c5b755cd5d0718e6b45f2d5a88171d66f0e4e497 (diff) | |
| parent | ca894b396b93344ac255746e12730cb269d4d856 (diff) | |
Merge "statistics from some cpus don't fit"
| -rw-r--r-- | core/java/com/android/internal/os/ProcessStats.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/com/android/internal/os/ProcessStats.java b/core/java/com/android/internal/os/ProcessStats.java index e0e9a29714d1..94904377cb43 100644 --- a/core/java/com/android/internal/os/ProcessStats.java +++ b/core/java/com/android/internal/os/ProcessStats.java @@ -154,7 +154,7 @@ public class ProcessStats { private boolean mFirst = true; - private byte[] mBuffer = new byte[256]; + private byte[] mBuffer = new byte[4096]; /** * The time in microseconds that the CPU has been running at each speed. @@ -556,7 +556,7 @@ public class ProcessStats { private long[] getCpuSpeedTimes(long[] out) { long[] tempTimes = out; long[] tempSpeeds = mCpuSpeeds; - final int MAX_SPEEDS = 20; + final int MAX_SPEEDS = 60; if (out == null) { tempTimes = new long[MAX_SPEEDS]; // Hopefully no more than that tempSpeeds = new long[MAX_SPEEDS]; |