Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement HeapSizeOf for Runtime. #248

Merged
merged 1 commit into from May 27, 2016
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Implement HeapSizeOf for Runtime.

  • Loading branch information
Ms2ger committed Mar 29, 2016
commit a9b5176f323c424f14ac51788d7cdb59b03b8426
@@ -5,6 +5,7 @@
//! Rust wrappers around the raw JS apis

use libc::{size_t, c_uint, c_char, ptrdiff_t};
use heapsize::HeapSizeOf;
use std::char;
use std::ffi;
use std::ptr;
@@ -168,6 +169,13 @@ impl Drop for Runtime {
}
}

// This is measured through `glue::CollectServoSizes`.
impl HeapSizeOf for Runtime {
fn heap_size_of_children(&self) -> usize {
0
}
}

// ___________________________________________________________________________
// Rooting API for standard JS things

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.