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

Commit 9d3022c7 authored by Andreas Gampe's avatar Andreas Gampe Committed by android-build-merger
Browse files

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

am: a2723ca8

* commit 'a2723ca8':
  Frameworks/base: Make profile buffer adjustable

Change-Id: I161883b14055d64438ded935ffb1d8983dc862d3
parents b3f1e679 a2723ca8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);