diff options
| author | 2016-05-10 04:15:12 +0000 | |
|---|---|---|
| committer | 2016-05-10 04:15:13 +0000 | |
| commit | a2723ca88c630f62ac413e562fe335b5fc623f1c (patch) | |
| tree | ff34aee01e9f37fbfbfa18851f132766abd0c53c | |
| parent | 82b8c92b97d3c7006d7a9f67a9cdb83263d6bf2c (diff) | |
| parent | 0f03a01ca328b354e812751b2b307f244fcc463b (diff) | |
Merge "Frameworks/base: Make profile buffer adjustable" into nyc-dev
| -rw-r--r-- | core/java/android/app/ActivityThread.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java index cf2ef4521291..938339410416 100644 --- a/core/java/android/app/ActivityThread.java +++ b/core/java/android/app/ActivityThread.java @@ -557,8 +557,9 @@ public final class ActivityThread { return; } try { + int bufferSize = SystemProperties.getInt("debug.traceview-buffer-size-in-mb", 8); VMDebug.startMethodTracing(profileFile, profileFd.getFileDescriptor(), - 8 * 1024 * 1024, 0, samplingInterval != 0, samplingInterval); + bufferSize * 1024 * 1024, 0, samplingInterval != 0, samplingInterval); profiling = true; } catch (RuntimeException e) { Slog.w(TAG, "Profiling failed on path " + profileFile); |