Merge "Frameworks/base: Make profile buffer adjustable" into nyc-dev am: a2723ca88c

am: 2f67d686eb

* commit '2f67d686eb940300758fbee3d7d1aa19818a0aff':
  Frameworks/base: Make profile buffer adjustable

Change-Id: I4c8d20d51e22e587f129b37bd2bb922942fee2ae
This commit is contained in:
Andreas Gampe
2016-05-10 04:35:51 +00:00
committed by android-build-merger

View File

@@ -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);