commit | 157c0d834f75e4e8de3a42ce783ffbd93c1f04be | [log] [tgz] |
---|---|---|
author | Jiakai Zhang <[email protected]> | Tue Nov 28 16:55:47 2023 +0000 |
committer | Cherrypicker Worker <[email protected]> | Thu Nov 30 11:10:34 2023 +0000 |
tree | bf8d1d91432e9f5bb38cac09e11b9e2694a914ca | |
parent | 4ab7a5df1ce72cceae1a28e2dfc960805e3b1186 [diff] |
Add a new profman flag --force-merge-and-analyze. When the flag is set, profman merges profiles even if the difference between before and after the merge doesn't meet the thresholds, and returns `kCompile` if there is any difference or `kSkipCompilationSmallDelta` if there is no difference. The behavior of this flag is the same as --force-merge, except for that it returns different codes to indicate whether there is any difference or not. We can't change the return code of --force-merge because installd on S and T relies on it to be `kSuccess`. Bug: 242170869 Test: m test-art-host-gtest-art_profman_tests (cherry picked from https://android-review.googlesource.com/q/commit:610a5839080aebefc9de95fdc90cdc3d847848b2) Merged-In: I59fdc64a66284ec66c4b7a7c355df9e902dfee00 Change-Id: I59fdc64a66284ec66c4b7a7c355df9e902dfee00