aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/gecko/generated/structs_debug.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2017-09-20 08:50:21 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2017-09-20 08:50:21 +1000
commitf7023a120e72abc7013c76147577dfad2b4b3c73 (patch)
treefd4cfa9429a32fe6e60fb32261b39dee8b27b51b /components/style/gecko/generated/structs_debug.rs
parentc6381c66a0bc2b7cad14a808b000d0e38860c7f6 (diff)
downloadservo-f7023a120e72abc7013c76147577dfad2b4b3c73.tar.gz
servo-f7023a120e72abc7013c76147577dfad2b4b3c73.zip
Measure the UA cache.
ServoStyleSetSizes now has two uses, one for the Stylist, and one for the UA cache, and so the patch removes 'Stylist' from the field names. Example output from about:memory: > +----1,359,608 B (00.55%) -- layout > | +----756,488 B (00.31%) -- style-sheet-cache [2] > | +----393,968 B (00.16%) -- servo-ua-cache > | | +--234,496 B (00.10%) -- element-and-pseudos-maps > | | +---59,648 B (00.02%) -- revalidation-selectors > | | +---58,320 B (00.02%) -- invalidation-map > | | +---30,752 B (00.01%) -- other > | | +---10,752 B (00.00%) -- precomputed-pseudos
Diffstat (limited to 'components/style/gecko/generated/structs_debug.rs')
-rw-r--r--components/style/gecko/generated/structs_debug.rs54
1 files changed, 23 insertions, 31 deletions
diff --git a/components/style/gecko/generated/structs_debug.rs b/components/style/gecko/generated/structs_debug.rs
index b269be0c0e8..59807d919eb 100644
--- a/components/style/gecko/generated/structs_debug.rs
+++ b/components/style/gecko/generated/structs_debug.rs
@@ -4947,17 +4947,16 @@ pub mod root {
#[repr(C)]
#[derive(Debug, Copy)]
pub struct ServoStyleSetSizes {
- pub mStylistRuleTree: usize,
- pub mStylistPrecomputedPseudos: usize,
- pub mStylistElementAndPseudosMaps: usize,
- pub mStylistInvalidationMap: usize,
- pub mStylistRevalidationSelectors: usize,
- pub mStylistOther: usize,
+ pub mRuleTree: usize,
+ pub mPrecomputedPseudos: usize,
+ pub mElementAndPseudosMaps: usize,
+ pub mInvalidationMap: usize,
+ pub mRevalidationSelectors: usize,
pub mOther: usize,
}
#[test]
fn bindgen_test_layout_ServoStyleSetSizes() {
- assert_eq!(::std::mem::size_of::<ServoStyleSetSizes>() , 56usize ,
+ assert_eq!(::std::mem::size_of::<ServoStyleSetSizes>() , 48usize ,
concat ! (
"Size of: " , stringify ! ( ServoStyleSetSizes ) ));
assert_eq! (::std::mem::align_of::<ServoStyleSetSizes>() , 8usize
@@ -4966,49 +4965,42 @@ pub mod root {
));
assert_eq! (unsafe {
& ( * ( 0 as * const ServoStyleSetSizes ) ) .
- mStylistRuleTree as * const _ as usize } , 0usize ,
- concat ! (
- "Alignment of field: " , stringify ! (
- ServoStyleSetSizes ) , "::" , stringify ! (
- mStylistRuleTree ) ));
- assert_eq! (unsafe {
- & ( * ( 0 as * const ServoStyleSetSizes ) ) .
- mStylistPrecomputedPseudos as * const _ as usize } ,
- 8usize , concat ! (
+ mRuleTree as * const _ as usize } , 0usize , concat !
+ (
"Alignment of field: " , stringify ! (
- ServoStyleSetSizes ) , "::" , stringify ! (
- mStylistPrecomputedPseudos ) ));
+ ServoStyleSetSizes ) , "::" , stringify ! ( mRuleTree
+ ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ServoStyleSetSizes ) ) .
- mStylistElementAndPseudosMaps as * const _ as usize }
- , 16usize , concat ! (
+ mPrecomputedPseudos as * const _ as usize } , 8usize ,
+ concat ! (
"Alignment of field: " , stringify ! (
ServoStyleSetSizes ) , "::" , stringify ! (
- mStylistElementAndPseudosMaps ) ));
+ mPrecomputedPseudos ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ServoStyleSetSizes ) ) .
- mStylistInvalidationMap as * const _ as usize } ,
- 24usize , concat ! (
+ mElementAndPseudosMaps as * const _ as usize } ,
+ 16usize , concat ! (
"Alignment of field: " , stringify ! (
ServoStyleSetSizes ) , "::" , stringify ! (
- mStylistInvalidationMap ) ));
+ mElementAndPseudosMaps ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ServoStyleSetSizes ) ) .
- mStylistRevalidationSelectors as * const _ as usize }
- , 32usize , concat ! (
+ mInvalidationMap as * const _ as usize } , 24usize ,
+ concat ! (
"Alignment of field: " , stringify ! (
ServoStyleSetSizes ) , "::" , stringify ! (
- mStylistRevalidationSelectors ) ));
+ mInvalidationMap ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ServoStyleSetSizes ) ) .
- mStylistOther as * const _ as usize } , 40usize ,
- concat ! (
+ mRevalidationSelectors as * const _ as usize } ,
+ 32usize , concat ! (
"Alignment of field: " , stringify ! (
ServoStyleSetSizes ) , "::" , stringify ! (
- mStylistOther ) ));
+ mRevalidationSelectors ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const ServoStyleSetSizes ) ) . mOther
- as * const _ as usize } , 48usize , concat ! (
+ as * const _ as usize } , 40usize , concat ! (
"Alignment of field: " , stringify ! (
ServoStyleSetSizes ) , "::" , stringify ! ( mOther )
));