Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upmake dom_struct derive HeapSizeOf #7361
Merged
+3
−226
Conversation
|
|
components/script/dom/treewalker.rs
Outdated
| @@ -22,8 +22,10 @@ use std::rc::Rc; | |||
| pub struct TreeWalker { | |||
| reflector_: Reflector, | |||
| root_node: JS<Node>, | |||
| #[ignore_heap_size_of = "Defined in std"] | |||
This comment has been minimized.
This comment has been minimized.
| @@ -207,6 +207,7 @@ impl MutHeapJSVal { | |||
| /// `JS<T>`. | |||
| #[must_root] | |||
| #[derive(JSTraceable)] | |||
| #[derive(HeapSizeOf)] | |||
This comment has been minimized.
This comment has been minimized.
| @@ -24,6 +24,7 @@ pub struct TreeWalker { | |||
| root_node: JS<Node>, | |||
| current_node: MutHeap<JS<Node>>, | |||
| what_to_show: u32, | |||
| #[ignore_heap_size_of = "function pointers and Rc<T> are hard"] | |||
This comment has been minimized.
This comment has been minimized.
|
thanks @Ms2ger, updated with anotations |
|
Thank you for your PR! @bors-servo r+ |
|
|
bors-servo
pushed a commit
that referenced
this pull request
Aug 27, 2015
make dom_struct derive HeapSizeOf closes #7357 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7361) <!-- Reviewable:end -->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
jxs commentedAug 25, 2015
closes #7357