diff options
| author | 2024-04-02 17:36:58 +0000 | |
|---|---|---|
| committer | 2024-04-02 17:36:58 +0000 | |
| commit | 3011d258b3bda1d4776bde47a3b0dc6ab96cf2c2 (patch) | |
| tree | 91109a28bcb860bc80f611a7e901a713d59922a4 | |
| parent | 4f1fc19f0ed1b69934bd20896e328f4dcc214a90 (diff) | |
| parent | 10ded0b495ee5fa3ebd3b4dc57f964b713597f45 (diff) | |
Merge "Add logging for ADPF hint session tid cleanup" into main
| -rw-r--r-- | services/core/java/com/android/server/power/hint/HintManagerService.java | 3 | ||||
| -rw-r--r-- | services/core/java/com/android/server/power/hint/TEST_MAPPING | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/power/hint/HintManagerService.java b/services/core/java/com/android/server/power/hint/HintManagerService.java index 3f1b1c1e99df..101983e6ecf1 100644 --- a/services/core/java/com/android/server/power/hint/HintManagerService.java +++ b/services/core/java/com/android/server/power/hint/HintManagerService.java @@ -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(" diff --git a/services/core/java/com/android/server/power/hint/TEST_MAPPING b/services/core/java/com/android/server/power/hint/TEST_MAPPING index 873dc09ad1ea..ce6277d2f490 100644 --- a/services/core/java/com/android/server/power/hint/TEST_MAPPING +++ b/services/core/java/com/android/server/power/hint/TEST_MAPPING @@ -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 |