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/page.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/page.rs')
-rw-r--r-- | components/script/page.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/page.rs b/components/script/page.rs index 1286a1427f1..f4b3fd6cd18 100644 --- a/components/script/page.rs +++ b/components/script/page.rs @@ -13,7 +13,7 @@ use std::cell::Cell; use std::rc::Rc; /// Encapsulates a handle to a frame in a frame tree. -#[derive(JSTraceable)] +#[derive(JSTraceable, HeapSizeOf)] #[allow(unrooted_must_root)] // FIXME(#6687) this is wrong pub struct Page { /// Pipeline id associated with this page. @@ -127,7 +127,7 @@ impl Page { } /// Information for one frame in the browsing context. -#[derive(JSTraceable)] +#[derive(JSTraceable, HeapSizeOf)] #[must_root] pub struct Frame { /// The document for this frame. |