DescriptionRevamp style resolver stats
Instead of the stats being behind a bunch of macros and needing to be enabled
at compile time we make them runtime enabled and expose them through
Internals.
With this new infrastructure you can do internals.setStyleResolverStatsEnabled(true)
in a test and then trigger a recalc and finally call internals.styleResolverStatsTotalsReport()
to get a text dump of lots of interesting statistics. We can then land tests that dump
these statistics to track improvements or regressions in the matched property cache
or style sharing logic.
We might also consider adding a runtime flag to print out this information, or even making
it so that the web inspector could expose how much style sharing vs actual rule matching
a given page is doing.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161894
Patch Set 1 #Patch Set 2 : Add a separate flag for slow stats #Patch Set 3 : fix a typo #Patch Set 4 : add missing inline #Patch Set 5 : rebase #Patch Set 6 : Fix build and remove the test #Patch Set 7 : fix stats for mac, crazy StyleResolver constructor side effects #
Messages
Total messages: 15 (0 generated)
|