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

Commit db13dfe6 authored by Pablo Gamito's avatar Pablo Gamito Committed by Android (Google) Code Review
Browse files

Merge "Load the viewer config in a background thread to minimize performance...

Merge "Load the viewer config in a background thread to minimize performance impact on process boot time" into main
parents d1519d78 2ed05c99
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -317,7 +317,11 @@ public class PerfettoProtoLogImpl extends IProtoLogClient.Stub implements IProto
        }

        if (mViewerConfigReader != null) {
            mViewerConfigReader.loadViewerConfig(groupsLoggingToLogcat.toArray(new String[0]));
            // Load in background to avoid delay in boot process.
            // The caveat is that any log message that is also logged to logcat will not be
            // successfully decoded until this completes.
            mBackgroundLoggingService.execute(() -> mViewerConfigReader
                    .loadViewerConfig(groupsLoggingToLogcat.toArray(new String[0])));
        }
    }