diff options
author | Nicholas Nethercote <nnethercote@mozilla.com> | 2017-09-14 13:18:03 +1000 |
---|---|---|
committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2017-09-14 13:18:03 +1000 |
commit | c5aa2cb98662f7385f53e75f699cdec35c661e5b (patch) | |
tree | 800c2ce79d5faf3b55393a7e5a5f1d19704dfe62 /components/style_traits/lib.rs | |
parent | 1aa8be392b0ab8e7a8426f525361b40b69d70b4f (diff) | |
download | servo-c5aa2cb98662f7385f53e75f699cdec35c661e5b.tar.gz servo-c5aa2cb98662f7385f53e75f699cdec35c661e5b.zip |
Measure PropertyDeclaration more thoroughly.
This patch replaces the handwritten MallocSizeOf implementation for
PropertyDeclaration with a derived one, which gives much more thorough
measurement.
This requires (a) deriving MallocSizeOf for a *lot* of additional types (most
of which already have `derive(HeapSizeOf)` in Servo builds), and (b)
implementing MallocSizeOf for a few more types in the `malloc_size_of` crate.
These changes would significantly improve the reporting coverage for gmail if
it weren't for the fact that SpecifiedUrl isn't measured due to a lack of
clarity about its fields; that can be fixed as a follow-up once bug 1397971 has
landed.
Diffstat (limited to 'components/style_traits/lib.rs')
-rw-r--r-- | components/style_traits/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/style_traits/lib.rs b/components/style_traits/lib.rs index 921d6158660..3aab602a450 100644 --- a/components/style_traits/lib.rs +++ b/components/style_traits/lib.rs @@ -19,6 +19,8 @@ extern crate app_units; extern crate euclid; #[cfg(feature = "servo")] extern crate heapsize; #[cfg(feature = "servo")] #[macro_use] extern crate heapsize_derive; +#[cfg(feature = "gecko")] extern crate malloc_size_of; +#[cfg(feature = "gecko")] #[macro_use] extern crate malloc_size_of_derive; extern crate selectors; #[cfg(feature = "servo")] #[macro_use] extern crate serde; #[cfg(feature = "servo")] extern crate webrender_api; |