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

Commit 672bd594 authored by Eric Miao's avatar Eric Miao Committed by Android (Google) Code Review
Browse files

Merge "Use readonly version of 'report_postgc_memory_metrics'" into main

parents 1ba63c15 7ef7a823
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7681,7 +7681,7 @@ public final class ActivityThread extends ClientTransactionHandler
        });

        // Register callback to report native memory metrics post GC cleanup
        if (Flags.reportPostgcMemoryMetrics() &&
        if (Flags.reportPostgcMemoryMetricsReadonly() &&
            com.android.libcore.readonly.Flags.postCleanupApis()) {
            VMRuntime.addPostCleanupCallback(new Runnable() {
                @Override public void run() {
+9 −0
Original line number Diff line number Diff line
@@ -8,3 +8,12 @@ flag {
     description: "Controls whether to report memory metrics post GC cleanup"
     bug: "331243037"
}

flag {
     namespace: "system_performance"
     name: "report_postgc_memory_metrics_readonly"
     is_exported: false
     description: "Controls whether to report memory metrics post GC cleanup (readonly)"
     bug: "331243037"
     is_fixed_read_only: true
}