New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 871627 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
OOO Jan 14 - 25
Closed: Aug 7
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 1
Type: Bug



Sign in to add a comment

65ms startup performance regression in ThemeService::Observe()

Project Member Reported by wittman@chromium.org, Aug 7

Issue description

Data 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
 
Cc: kmilka@chromium.org
Cc: pkasting@chromium.org
+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!
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.
(That said, we're bumping the version number a lot lately, so almost every canary release might cause such a regression :P)
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!
Cc: sweilun@chromium.org
Owner: ramyan@chromium.org
Status: WontFix (was: Assigned)
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!

Thanks for the investigation! I'll keep this in mind as an 'expected' performance change case for detecting regressions.
Thanks Mike! I appreciate you keeping us honest :-)

Sign in to add a comment