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

Commit 10ded0b4 authored by Xiang Wang's avatar Xiang Wang
Browse files

Add logging for ADPF hint session tid cleanup

Bug: 309701979
Test: atest CtsStatsdAtomHostTestCases:PowerManagerStatsTests
Change-Id: Ib0308ca851e2f67b79c596aecaa1138317f3c390
parent 16264efb
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -456,6 +456,9 @@ public final class HintManagerService extends SystemService {
                        totalDurationNs / durationNsList.length);
                int th90DurationUs = (int) TimeUnit.NANOSECONDS.toMicros(
                        durationNsList[(int) (durationNsList.length * 0.9)]);
                FrameworkStatsLog.write(FrameworkStatsLog.ADPF_HINT_SESSION_TID_CLEANUP, uid,
                        totalDurationUs, maxDurationUs, totalTidCnt, totalInvalidTidCnt,
                        maxInvalidTidCnt, sessionCnt, isForeground);
                Slog.d(TAG,
                        "Invalid tid found for UID" + uid + " in " + totalDurationUs + "us:\n\t"
                                + "count("
+11 −0
Original line number Diff line number Diff line
@@ -10,6 +10,17 @@
          "exclude-annotation": "androidx.test.filters.FlakyTest"
        }
      ]
    },
    {
      "name": "CtsStatsdAtomHostTestCases",
      "options": [
        {"exclude-annotation": "androidx.test.filters.FlakyTest"},
        {"exclude-annotation": "org.junit.Ignore"},
        {"include-filter": "android.cts.statsdatom.powermanager"}
      ],
      "file_patterns": [
        "(/|^)ThermalManagerService.java"
      ]
    }
  ]
}
 No newline at end of file