4 ms·
Where are the profiles gathered from? Did they just render the alexa top 1M sites and generate a profile from that? It would seem some bits of the codebase m
by londons_explore 6y ago
Where are the profiles gathered from?
Did they just render the alexa top 1M sites and generate a profile from that? It would seem some bits of the codebase might only be exercised by real users (eg. touch input during a mobile game).
Did they instead gather PGO information from real users? If so, how did they do that in a way to not degrade performance too much while profiling, and maintaining user privacy (sequences and addresses of branches in some cases will reveal user data)?
- IshKebab 6y agoYeah normally you would have some kind of CI system that runs a typical session. I doubt they load a million sites though. Also it doesn't really matter if it isn't perfect - if code isn't exercised by the profile then it will presumably just be compiled as normal.
- adrianmonk 6y agoThere's a small clue at https://blog.chromium.org/2016/10/making-chrome-on-windows-faster-with-pgo.html https://blog.chromium.org/2016/10/making-chrome-on-windows-f... : > To gather this data, the nightly build process now produces a special version of Chrome that tracks how often functions are used. It doesn't say how Chrome is exercised (what pages are loaded, what user actions are simulated) during the nightly build. It seems like it must be some kind of fixed test data. But that at least eliminates the possibility that they're gathering the profiling data from production builds used by real users, so the privacy concerns shouldn't be an issue. (Also note that info is from 2016, so it could have changed.)