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
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue