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

Commit 0f03a01c authored by Andreas Gampe's avatar Andreas Gampe
Browse files

Frameworks/base: Make profile buffer adjustable

Add a debug system property to change the profile buffer size.

Bug: 26877591
Change-Id: Idd13f2bc6563fd88daadd1d6679f3243dab1a0ef
parent beb01ff8
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);