mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Measure heap memory usage for more types. Fixes #6951
This commit is contained in:
parent
94c8dcd575
commit
45145108da
175 changed files with 669 additions and 94 deletions
|
@ -36,7 +36,7 @@ use hyper::header::ContentType;
|
|||
use hyper::mime::{Mime, TopLevel, SubLevel};
|
||||
|
||||
#[must_root]
|
||||
#[derive(JSTraceable)]
|
||||
#[derive(JSTraceable, HeapSizeOf)]
|
||||
pub struct Sink {
|
||||
pub base_url: Option<Url>,
|
||||
pub document: JS<Document>,
|
||||
|
@ -157,8 +157,10 @@ impl PreInvoke for ParserContext {
|
|||
}
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct ServoHTMLParser {
|
||||
reflector_: Reflector,
|
||||
#[ignore_heap_size_of = "Defined in html5ever"]
|
||||
tokenizer: DOMRefCell<Tokenizer>,
|
||||
/// Input chunks received but not yet passed to the parser.
|
||||
pending_input: DOMRefCell<Vec<String>>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue