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 upReport memory usage of Stylist in LayoutTaskData #7038
Comments
|
|
|
You bet! |
|
Is this how I'm supposed to be measuring the stuff in rust-selectors (the code in |
|
If necessary we can always make private fields public, but maybe |
|
Note that so far we’ve moved things to separate source repositories when publishing then to crates.io, but we don’t need to. (Though I think servo users should still get the crate form crates.io rather than through a |
|
Yes, I think at this point it makes sense to move the definition of HeapSizeOf, heap_size_of, the plugin, and implementations for the various types from std into an external crate. |
|
So, should I do that? The repo really belongs in the Servo organization. |
|
Like @SimonSapin said, it doesn't need to be in a separate repository. |
|
I propose a new |
|
So you're suggesting that |
|
Yep. |
|
If it's to be built as part of Servo, wouldn't that result in two copies of the same crate? One pulled in by rust-selectors from crates.io, and the other from the checked-out repository? |
|
That’s why everything should be using it from crates.io, with none of the Thinking a bit more about this, this would make CI tricky: to make and use changes to |
|
Well, I've made https://github.com/servo/heapsize so we can make PRs against it now. |
|
@notriddle Thank you for all the hard work on this PR! Since the PR is merged, this issue can probably be closed now. |
|
The PR mentioned was separate but related. The work here merely exists in a branch of notriddle/servo so far. |
|
Is this being worked on by @notriddle or is it actually open to other contributors? |
|
I'm not working on it right now. On Thu, Mar 3, 2016, 09:56 Keith Yeung notifications@github.com wrote:
|
…hread-data-stylist, r=ecoal95 Report memory usage from LayoutThreadData Stylist [#7038] @jdm PTAL I'm not sure what is the approach of updating cargo components here, I've made a pull request servo/heapsize#54 but it has to be landed first before merge and version bump. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10088) <!-- Reviewable:end -->
…hread-data-stylist, r=ecoal95 Report memory usage from LayoutThreadData Stylist [#7038] @jdm PTAL I'm not sure what is the approach of updating cargo components here, I've made a pull request servo/heapsize#54 but it has to be landed first before merge and version bump. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10088) <!-- Reviewable:end -->
|
Fixed by #10088. |
|
There are still a couple instances of |
|
I would expect so. |
|
It would be worth filing issues for any in particular that cannot be removed. |
|
Unfortunately those cannot be removed because we don't know how to measure Arc values effectively. |
As part of
collect_reportsinlayout_task.rs, we should measure the heap usage of thestylistmember ofLayoutTaskData. This involves adding#[derive(HeapSizeOf)]toStylistincomponents/style/selector_matching.rs, callingheap_size_ofon the member incollect_reports, and fixing any compile errors that result.