diff options
author | Josh Matthews <josh@joshmatthews.net> | 2015-07-31 12:46:36 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2015-08-03 23:05:00 -0400 |
commit | 8620fe599538effe755029e895fca6b9ca3b0f47 (patch) | |
tree | b7e1661271c4e358a7d003cf0b4837196ad198d0 /components/script/dom/browsercontext.rs | |
parent | c2497fcd49933f3782d529b891f4c8bb5de198c4 (diff) | |
download | servo-8620fe599538effe755029e895fca6b9ca3b0f47.tar.gz servo-8620fe599538effe755029e895fca6b9ca3b0f47.zip |
Start reporting memory usage for Window and all nodes in all DOM trees for frame treese in script tasks.
Diffstat (limited to 'components/script/dom/browsercontext.rs')
-rw-r--r-- | components/script/dom/browsercontext.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/browsercontext.rs b/components/script/dom/browsercontext.rs index cc4dc346c3f..8fe518844ba 100644 --- a/components/script/dom/browsercontext.rs +++ b/components/script/dom/browsercontext.rs @@ -27,7 +27,7 @@ use js::{JSTrue, JSFalse}; use std::ptr; use std::default::Default; -#[derive(JSTraceable)] +#[derive(JSTraceable, HeapSizeOf)] #[privatize] #[allow(raw_pointer_derive)] #[must_root] @@ -88,7 +88,7 @@ impl BrowsingContext { // without a reflector, so we don't mark this as #[dom_struct] #[must_root] #[privatize] -#[derive(JSTraceable)] +#[derive(JSTraceable, HeapSizeOf)] pub struct SessionHistoryEntry { document: JS<Document>, children: Vec<BrowsingContext> |