aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/gecko/generated/structs_debug.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2017-08-30 21:46:15 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2017-08-30 21:46:15 +1000
commite08829703afe44fffb2940ceaddd2b893647ea48 (patch)
tree31b56a6386f155f3db5c605a828cef9987b938ed /components/style/gecko/generated/structs_debug.rs
parent5dee83d54d3f05cc631ee89de612c14e21dd92ec (diff)
downloadservo-e08829703afe44fffb2940ceaddd2b893647ea48.tar.gz
servo-e08829703afe44fffb2940ceaddd2b893647ea48.zip
Measure memory usage of Stylo's Rule Tree.
Diffstat (limited to 'components/style/gecko/generated/structs_debug.rs')
-rw-r--r--components/style/gecko/generated/structs_debug.rs32
1 files changed, 32 insertions, 0 deletions
diff --git a/components/style/gecko/generated/structs_debug.rs b/components/style/gecko/generated/structs_debug.rs
index 71c507a8e52..3ec0f8f9bda 100644
--- a/components/style/gecko/generated/structs_debug.rs
+++ b/components/style/gecko/generated/structs_debug.rs
@@ -5454,6 +5454,38 @@ pub mod root {
"Alignment of field: " , stringify ! ( GeckoEffects )
, "::" , stringify ! ( gecko ) ));
}
+ #[repr(C)]
+ #[derive(Debug, Copy)]
+ pub struct ServoStyleSetSizes {
+ pub mStylistRuleTree: usize,
+ pub mOther: usize,
+ }
+ #[test]
+ fn bindgen_test_layout_ServoStyleSetSizes() {
+ assert_eq!(::std::mem::size_of::<ServoStyleSetSizes>() , 16usize ,
+ concat ! (
+ "Size of: " , stringify ! ( ServoStyleSetSizes ) ));
+ assert_eq! (::std::mem::align_of::<ServoStyleSetSizes>() , 8usize
+ , concat ! (
+ "Alignment of " , stringify ! ( ServoStyleSetSizes )
+ ));
+ 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 ) ) . mOther
+ as * const _ as usize } , 8usize , concat ! (
+ "Alignment of field: " , stringify ! (
+ ServoStyleSetSizes ) , "::" , stringify ! ( mOther )
+ ));
+ }
+ impl Clone for ServoStyleSetSizes {
+ fn clone(&self) -> Self { *self }
+ }
#[repr(u8)]
/// Enumeration that represents one of the two supported style system backends.
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]