mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Start reporting memory usage for Window and all nodes in all DOM trees for frame treese in script tasks.
This commit is contained in:
parent
c2497fcd49
commit
8620fe5995
33 changed files with 317 additions and 107 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue