diff options
author | Bogdan Cuza <boghison22@gmail.com> | 2015-08-05 18:31:42 +0300 |
---|---|---|
committer | Bogdan Cuza <boghison22@gmail.com> | 2015-08-13 21:44:41 +0300 |
commit | 45145108daa6af7e834a7c23530857c504b54b9c (patch) | |
tree | abc5db1c178435c5192e20049b4b51b196e7b26b /components/script/dom/bindings/str.rs | |
parent | 94c8dcd575a5187e02ec043c686b1cdfa6b30ba6 (diff) | |
download | servo-45145108daa6af7e834a7c23530857c504b54b9c.tar.gz servo-45145108daa6af7e834a7c23530857c504b54b9c.zip |
Measure heap memory usage for more types. Fixes #6951
Diffstat (limited to 'components/script/dom/bindings/str.rs')
-rw-r--r-- | components/script/dom/bindings/str.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/dom/bindings/str.rs b/components/script/dom/bindings/str.rs index 5ee26f86543..26a4b6149a9 100644 --- a/components/script/dom/bindings/str.rs +++ b/components/script/dom/bindings/str.rs @@ -11,8 +11,10 @@ use std::ops; use std::str; use std::str::FromStr; +use util::mem::HeapSizeOf; + /// Encapsulates the IDL `ByteString` type. -#[derive(JSTraceable,Clone,Eq,PartialEq)] +#[derive(JSTraceable, Clone, Eq, PartialEq, HeapSizeOf)] pub struct ByteString(Vec<u8>); impl ByteString { |