diff options
author | 2024-05-28 15:10:32 +0100 | |
---|---|---|
committer | 2024-06-03 13:17:38 +0000 | |
commit | 85ee2c92239fbafc22c2c47b22faa817a0a4b034 (patch) | |
tree | bc40d4315d65bbfae6b87ff264098e55130af667 /cmdline/cmdline_parser_test.cc | |
parent | 952b187935a922acf4ad5d70e76ab34dc94b193c (diff) |
Rewrite how we identify hot methods.
Use the kAccPreviouslyWarm as soon as a method gets scheduled for
JITting. The profile saver now only uses that flag.
For benefiting simplicity, deprecate the -Xps-hot-startup-method-samples
flag (unused in the code base).
Test: second run after speed-profile contains less JITting
Bug: 333614471
Bug: 333701031
Change-Id: I2b846026f7d74d20ea761421b857db3834b3011c
Diffstat (limited to 'cmdline/cmdline_parser_test.cc')
-rw-r--r-- | cmdline/cmdline_parser_test.cc | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/cmdline/cmdline_parser_test.cc b/cmdline/cmdline_parser_test.cc index 5d6ba4446e..e586dd4292 100644 --- a/cmdline/cmdline_parser_test.cc +++ b/cmdline/cmdline_parser_test.cc @@ -38,7 +38,6 @@ namespace art { return lhs.enabled_ == rhs.enabled_ && lhs.min_save_period_ms_ == rhs.min_save_period_ms_ && lhs.save_resolved_classes_delay_ms_ == rhs.save_resolved_classes_delay_ms_ && - lhs.hot_startup_method_samples_ == rhs.hot_startup_method_samples_ && lhs.min_methods_to_save_ == rhs.min_methods_to_save_ && lhs.min_classes_to_save_ == rhs.min_classes_to_save_ && lhs.min_notification_before_wake_ == rhs.min_notification_before_wake_ && @@ -490,19 +489,18 @@ TEST_F(CmdlineParserTest, TestJitOptions) { * -Xps-* */ TEST_F(CmdlineParserTest, ProfileSaverOptions) { - ProfileSaverOptions opt = ProfileSaverOptions(true, 1, 2, 3, 4, 5, 6, 7, 8, 9, "abc", true); + ProfileSaverOptions opt = ProfileSaverOptions(true, 1, 2, 3, 4, 5, 6, 7, 8, "abc", true); EXPECT_SINGLE_PARSE_VALUE(opt, "-Xjitsaveprofilinginfo " "-Xps-min-save-period-ms:1 " "-Xps-min-first-save-ms:2 " "-Xps-save-resolved-classes-delay-ms:3 " - "-Xps-hot-startup-method-samples:4 " - "-Xps-min-methods-to-save:5 " - "-Xps-min-classes-to-save:6 " - "-Xps-min-notification-before-wake:7 " - "-Xps-max-notification-before-wake:8 " - "-Xps-inline-cache-threshold:9 " + "-Xps-min-methods-to-save:4 " + "-Xps-min-classes-to-save:5 " + "-Xps-min-notification-before-wake:6 " + "-Xps-max-notification-before-wake:7 " + "-Xps-inline-cache-threshold:8 " "-Xps-profile-path:abc " "-Xps-profile-boot-class-path", M::ProfileSaverOpts); |