65ms startup performance regression in ThemeService::Observe() |
|||
Issue descriptionData from the UMA Sampling Profiler shows that ThemeService::Observe() regressed browser process UI thread startup on 64-bit Chrome on Windows by 65ms. This occurred in the 70.0.3508.0 Canary release. Suspected culprit CL (by manual analysis): [NTP] Consider system theme as a "default" when configuring Instant https://chromium.googlesource.com/chromium/src/+/a3770e7c0ed115c7aaedc30878fd993cf9f61276 Execution profile difference for the function in Canary 70.0.3507.0 vs. 70.0.3508.0: https://uma.googleplex.com/p/chrome/callstacks?sid=2e48a67364a0c0618e017a12d160fd6e
,
Aug 7
+Peter: There were two theme-related changes in canaries compared by the profiler. We're wondering if bumping the theme pack version (https://chromium-review.googlesource.com/c/chromium/src/+/1155486) might have caused the 65ms increase here, as it seems to throw out the cache & rebuild images? If so, should we expect it to go back down over time? Thanks!
,
Aug 7
If this is measuring perf in the field, then I would expect your hypothesis is correct: bumping the version number should cause a startup hit on the first run after that, and then no hit on subsequent runs. To confirm, if we are able to split by whether users have a custom theme, we should expect to see no startup time change in non-theme users.
,
Aug 7
(That said, we're bumping the version number a lot lately, so almost every canary release might cause such a regression :P)
,
Aug 7
Ah, good to know! This is for Canary users on Windows, so possibly a small population. I'm not sure if we can split by users who have a theme installed ... will take a look. If the version is being bumped frequently, I can also look at a comparison of two different Canaries (without our change), to see if the same increase is observable. Thank you!
,
Aug 7
It looks like this was indeed due to bumping the theme pack version. Comparing two versions that included another recent increment (https://crrev.com/c/1157878), a similar increase in browser process UI thread startup (this time, 76.3ms) can be observed: https://uma.googleplex.com/p/chrome/callstacks?sid=8627ac6ac4dabf0f47fd85ac8559ca21 Since this is caused by cache invalidated & expected, I'm closing this bug as WontFix. Thanks everyone!
,
Aug 7
Thanks for the investigation! I'll keep this in mind as an 'expected' performance change case for detecting regressions.
,
Aug 7
Thanks Mike! I appreciate you keeping us honest :-) |
|||
►
Sign in to add a comment |
|||
Comment 1 by sweilun@chromium.org
, Aug 7