Loading core/java/android/app/ActivityThread.java +4 −3 Original line number Original line Diff line number Diff line Loading @@ -7831,9 +7831,10 @@ public final class ActivityThread extends ClientTransactionHandler // Register callback to report native memory metrics post GC cleanup // Register callback to report native memory metrics post GC cleanup // Note: we do not report memory metrics of isolated processes unless // Note: we do not report memory metrics of isolated processes unless // their native allocations become more significant // their native allocations become more significant. Instrumentation is if (!Process.isIsolated() && Flags.reportPostgcMemoryMetrics() && // also excluded because the metrics from test cases are not meaningful. com.android.libcore.readonly.Flags.postCleanupApis()) { if (!Process.isIsolated() && ii == null && Flags.reportPostgcMemoryMetrics() && com.android.libcore.readonly.Flags.postCleanupApis()) { VMRuntime.addPostCleanupCallback(new Runnable() { VMRuntime.addPostCleanupCallback(new Runnable() { @Override public void run() { @Override public void run() { MetricsLoggerWrapper.logPostGcMemorySnapshot(); MetricsLoggerWrapper.logPostGcMemorySnapshot(); Loading Loading
core/java/android/app/ActivityThread.java +4 −3 Original line number Original line Diff line number Diff line Loading @@ -7831,9 +7831,10 @@ public final class ActivityThread extends ClientTransactionHandler // Register callback to report native memory metrics post GC cleanup // Register callback to report native memory metrics post GC cleanup // Note: we do not report memory metrics of isolated processes unless // Note: we do not report memory metrics of isolated processes unless // their native allocations become more significant // their native allocations become more significant. Instrumentation is if (!Process.isIsolated() && Flags.reportPostgcMemoryMetrics() && // also excluded because the metrics from test cases are not meaningful. com.android.libcore.readonly.Flags.postCleanupApis()) { if (!Process.isIsolated() && ii == null && Flags.reportPostgcMemoryMetrics() && com.android.libcore.readonly.Flags.postCleanupApis()) { VMRuntime.addPostCleanupCallback(new Runnable() { VMRuntime.addPostCleanupCallback(new Runnable() { @Override public void run() { @Override public void run() { MetricsLoggerWrapper.logPostGcMemorySnapshot(); MetricsLoggerWrapper.logPostGcMemorySnapshot(); Loading