Exact counts of the style cascade work done for one document.
More...
#include "donner/svg/components/style/StyleCascadeMetrics.h"
|
|
bool | sameLogicalWork (const StyleCascadeCounters &other) const |
| | Compare work that is independent of physical cache placement and stealing.
|
|
bool | operator== (const StyleCascadeCounters &) const =default |
| | Equality operator.
|
|
|
std::uint64_t | elementsCascaded = 0 |
| | Element cascades, counting every time an entity's style is computed, including repeats.
|
|
std::uint64_t | rulesTested = 0 |
| | Stylesheet rules tested against an element, each admitted by the rule-element budget.
|
|
std::uint64_t | rulesMatched = 0 |
| | Tested rules with a selector-list entry that matched the element.
|
|
std::uint64_t | declarationsApplied = 0 |
| | Declarations of matched rules admitted by the budget and handed to the property parser, including ones the parser rejects.
|
|
std::uint64_t | fullClears = 0 |
| | Times every computed style was discarded to restyle the whole document.
|
|
std::uint64_t | budgetRejections = 0 |
| | Document style passes, full or dirty-only, that ended with the style budget refusing work. Refusals while computing an entity list or a single entity's style are not counted.
|
|
std::uint64_t | registryCopies = 0 |
| | Whole PropertyRegistry copies and moves made while cascading elements, each of which writes every property. This physical count depends on worker cache placement. Building an element's computed style copies its local declarations once.
|
|
std::uint64_t | matchedPropertiesCacheHits = 0 |
| | Actual cache hits; stealing can change this count.
|
|
std::uint64_t | matchedPropertiesCacheMisses = 0 |
| | Actual cache misses; stealing can change this count.
|
|
std::uint64_t | matchedPropertiesCacheUncacheable = 0 |
| | Element cascades excluded from matched-properties caching.
|
|
std::uint64_t | declarationParsesSkipped = 0 |
| | Actual parses avoided by cache hits; stealing can change this count.
|
|
std::uint64_t | ancestorFilterRejections = 0 |
| | Tested rules skipped without matching because, for every selector-list entry, the ancestor filter showed that no ancestor of the element has a key the entry needs.
|
|
std::uint64_t | ancestorFilterFalsePositives = 0 |
| | Tested rules with ancestor keys that the enabled ancestor filter let through and that then did not match. A match can also fail in the subject compound, so this is an upper bound on the filter's false positives.
|
|
std::uint64_t | ancestorFilterSaturations = 0 |
| | Times a style pass's ancestor filter was disabled below an ancestor because inserting its keys saturated a counter.
|
|
std::uint64_t | ancestorFilterKeyLimits = 0 |
| | Times a style pass's ancestor filter was disabled below an ancestor because its keys exceeded the count or input-byte limit.
|
Exact counts of the style cascade work done for one document.
Counts only grow; the work of one frame or edit is the difference between a snapshot taken after it and one taken before it.
◆ operator-
Work done between two snapshots.
- Parameters
-
| after | Snapshot taken second. |
| before | Snapshot taken first. |
The documentation for this struct was generated from the following file: