Summary: | Web Inspector: CSS profiles don't include time spent in querySelector[All] | ||
---|---|---|---|
Product: | WebKit | Reporter: | Adam Roben (:aroben) <aroben> |
Component: | Web Inspector (Deprecated) | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | Normal | CC: | apavlov, bburg, bweinstein, joepeck, keishi, loislo, paulirish, pfeldman, pmuellr, rik, timothy, yurys |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All |
Description
Adam Roben (:aroben)
2012-05-17 22:03:31 PDT
It looks like SelectorDataList (as well as SelectorQuery and SelectorChecker) operate CSSSelector's, and CSSRule instances, which we need to provide meaningful profile data, are not available there... If you or anyone involved with this topic has an insight of how CSSRule's of interest could be accessed, your comments are most welcome. I'm not sure CSSRules are actually needed in this case. StyleResolver::applyProperties calls InspectorInstrumentation::{will,did}ProcessRule so that the Inspector can attribute the time spent *to that rule*. But for querySelector[All], we don't want to attribute time to a rule; instead we want to attribute time spent to querySelector[All] itself, perhaps with a way to distinguish what actual selectors were passed to cause the time to be spent. I think we'd need some new InspectorInstrumentation calls, something like: void willQuerySelector[All](const AtomicString& selectors); void didQuerySelector[All](const InspectorInstrumentationCookie&); CSS profiling has been removed. |