mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
Drive-by: Add size_of test for ComputedValues.
MozReview-Commit-ID: Ks4km7R9VGr
This commit is contained in:
parent
7f4cb1861b
commit
6623b1f80d
1 changed files with 3 additions and 0 deletions
|
@ -31,6 +31,9 @@ fn size_of_selectors_dummy_types() {
|
|||
// selectors (with the inline hashes) with as few cache misses as possible.
|
||||
size_of_test!(test_size_of_rule, style::stylist::Rule, 32);
|
||||
|
||||
// Large pages generate tens of thousands of ComputedValues.
|
||||
size_of_test!(test_size_of_cv, ComputedValues, 272);
|
||||
|
||||
size_of_test!(test_size_of_option_arc_cv, Option<Arc<ComputedValues>>, 8);
|
||||
size_of_test!(test_size_of_option_rule_node, Option<StrongRuleNode>, 8);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue