[Rendering UKM] Fix ForcedStyleAndLayout metric
The ForcedStyleAndLayout metric is very very high under the new sampling approach. The root cause is JS being scheduled outside of the main frame period, in which case we keep adding up the JS time but never reset it until a main frame actually happens and we record. This patch should improve things by resetting even when we are not in a begin main frame block, forcing the ForcedStuyleAndLayout timers to reset even if no lifecycle work was done on that frame. Bug: 959798 Change-Id: Icdd107f04444b7780a7f28158598b3ccddb70d7b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1599773 Commit-Queue: Stephen Chenney <schenney@chromium.org> Commit-Queue: vmpstr <vmpstr@chromium.org> Auto-Submit: Stephen Chenney <schenney@chromium.org> Reviewed-by:vmpstr <vmpstr@chromium.org> Cr-Commit-Position: refs/heads/master@{#657411}
Showing
Please register or sign in to comment