aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/gecko_string_cache/namespace.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2017-09-14 13:18:03 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2017-09-14 13:18:03 +1000
commitc5aa2cb98662f7385f53e75f699cdec35c661e5b (patch)
tree800c2ce79d5faf3b55393a7e5a5f1d19704dfe62 /components/style/gecko_string_cache/namespace.rs
parent1aa8be392b0ab8e7a8426f525361b40b69d70b4f (diff)
downloadservo-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/gecko_string_cache/namespace.rs')
-rw-r--r--components/style/gecko_string_cache/namespace.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/style/gecko_string_cache/namespace.rs b/components/style/gecko_string_cache/namespace.rs
index c8c4deee8b6..61a89a86f06 100644
--- a/components/style/gecko_string_cache/namespace.rs
+++ b/components/style/gecko_string_cache/namespace.rs
@@ -18,7 +18,7 @@ macro_rules! ns {
}
/// A Gecko namespace is just a wrapped atom.
-#[derive(Clone, Debug, Default, Eq, Hash, PartialEq)]
+#[derive(Clone, Debug, Default, Eq, Hash, MallocSizeOf, PartialEq)]
pub struct Namespace(pub Atom);
impl PrecomputedHash for Namespace {