Nicolas Geoffray | ee7e78c | 2022-07-11 14:57:17 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2022 The Android Open Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| 17 | # A list of methods that are found to be latency sensitive. We have this manual |
| 18 | # due to current limitations of our boot image profiling, where knowing what |
| 19 | # methods are latency sensitive is difficult. For example, this method is executed |
| 20 | # in the system server, not on the UI thread of an app. |
| 21 | HSPLandroid/graphics/Color;->luminance()F |
Mark Fasheh | cafac86 | 2024-10-18 17:16:04 +0000 | [diff] [blame] | 22 | |
| 23 | # For now, compile all methods in MessageQueue to avoid performance cliffs for |
| 24 | # flagged/evolving hot code paths. See: b/338098106 |
| 25 | HSPLandroid/os/MessageQueue;->* |
Mark Fasheh | d4ce3c6 | 2024-11-21 17:31:06 +0000 | [diff] [blame] | 26 | HSPLandroid/os/MessageQueue$FileDescriptorRecord;->* |
| 27 | HSPLandroid/os/MessageQueue$IdleHandler;->* |
| 28 | HSPLandroid/os/MessageQueue$MessageCompare;->* |
| 29 | HSPLandroid/os/MessageQueue$MatchAllFutureMessages;->* |
| 30 | HSPLandroid/os/MessageQueue$MatchAllMessages;->* |
| 31 | HSPLandroid/os/MessageQueue$MatchBarrierToken;->* |
| 32 | HSPLandroid/os/MessageQueue$MatchDeliverableMessages;->* |
| 33 | HSPLandroid/os/MessageQueue$MatchHandler;->* |
| 34 | HSPLandroid/os/MessageQueue$MatchHandlerAndObject;->* |
| 35 | HSPLandroid/os/MessageQueue$MatchHandlerAndObjectEquals;->* |
| 36 | HSPLandroid/os/MessageQueue$MatchHandlerRunnableAndObject;->* |
| 37 | HSPLandroid/os/MessageQueue$MatchHandlerRunnableAndObjectEquals;->* |
| 38 | HSPLandroid/os/MessageQueue$MatchHandlerWhatAndObject;->* |
| 39 | HSPLandroid/os/MessageQueue$MatchHandlerWhatAndObjectEquals;->* |
| 40 | HSPLandroid/os/MessageQueue$MessageCounts;->* |
| 41 | HSPLandroid/os/MessageQueue$StackNode;->* |
| 42 | HSPLandroid/os/MessageQueue$MessageNode;->* |
| 43 | HSPLandroid/os/MessageQueue$OnFileDescriptorEventListener$Events;->* |
| 44 | HSPLandroid/os/MessageQueue$OnFileDescriptorEventListener;->* |
| 45 | HSPLandroid/os/MessageQueue$StackNodeType;->* |
| 46 | HSPLandroid/os/MessageQueue$StateNode;->* |
| 47 | HSPLandroid/os/MessageQueue$TimedParkStateNode;->* |
Zimuzo Ezeozue | 8601e96 | 2025-02-10 13:47:08 +0000 | [diff] [blame] | 48 | |
| 49 | # For now, compile all methods in PerfettoTrace and PerfettoTrackEventExtra. |
| 50 | # Similar to the existing Trace APIs, these new APIs can impact the performance |
| 51 | # of many subsystems including MessageQueue. This also keeps benchmark |
| 52 | # comparisons between both APIs fair. |
Zimuzo Ezeozue | 8358a31 | 2024-11-30 03:37:05 +0000 | [diff] [blame] | 53 | HSPLandroid/os/PerfettoTrace$Category;->* |
| 54 | HSPLandroid/os/PerfettoTrace;->* |
| 55 | HSPLandroid/os/PerfettoTrackEventExtra;->* |
Zimuzo Ezeozue | 8601e96 | 2025-02-10 13:47:08 +0000 | [diff] [blame] | 56 | HSPLandroid/os/PerfettoTrackEventExtra$Builder;->* |
Zimuzo Ezeozue | 8358a31 | 2024-11-30 03:37:05 +0000 | [diff] [blame] | 57 | HSPLandroid/os/PerfettoTrackEventExtra$ArgBool;->* |
| 58 | HSPLandroid/os/PerfettoTrackEventExtra$ArgInt64;->* |
| 59 | HSPLandroid/os/PerfettoTrackEventExtra$ArgDouble;->* |
| 60 | HSPLandroid/os/PerfettoTrackEventExtra$ArgString;->* |
| 61 | HSPLandroid/os/PerfettoTrackEventExtra$CounterInt64;->* |
| 62 | HSPLandroid/os/PerfettoTrackEventExtra$CounterDouble;->* |
| 63 | HSPLandroid/os/PerfettoTrackEventExtra$CounterTrack;->* |
| 64 | HSPLandroid/os/PerfettoTrackEventExtra$NamedTrack;->* |
| 65 | HSPLandroid/os/PerfettoTrackEventExtra$Flow;->* |
| 66 | HSPLandroid/os/PerfettoTrackEventExtra$Proto;->* |
| 67 | HSPLandroid/os/PerfettoTrackEventExtra$FieldInt64;->* |
| 68 | HSPLandroid/os/PerfettoTrackEventExtra$FieldDouble;->* |
| 69 | HSPLandroid/os/PerfettoTrackEventExtra$FieldString;->* |
| 70 | HSPLandroid/os/PerfettoTrackEventExtra$FieldNested;->* |
| 71 | HSPLandroid/os/PerfettoTrackEventExtra$Pool;->* |
| 72 | HSPLandroid/os/PerfettoTrackEventExtra$RingBuffer;->* |
Jared Duke | 23b4f53 | 2025-03-04 18:57:57 +0000 | [diff] [blame] | 73 | |
| 74 | # While the SystemFeaturesMetadata static cache isn't heavyweight, ensure it's |
| 75 | # pre-initialized in the boot image to avoid redundant per-process overhead. |
| 76 | # TODO(b/326623529): Consider removing this after the feature has fully ramped |
| 77 | # and is captured with the boot image profiling pipeline. |
| 78 | HSPLcom/android/internal/pm/SystemFeaturesMetadata;->* |
| 79 | Lcom/android/internal/pm/SystemFeaturesMetadata; |