diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-03-22 06:54:11 +0530 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2016-03-22 06:54:11 +0530 |
commit | 9a8ba23a763b2a8d272c4335974d5a68623c054c (patch) | |
tree | 133d30bbe2099a95899b5a73af4cb7e815a15253 /components/layout/layout_thread.rs | |
parent | 9813d11f862a61a7cffb4cf2d7de0fa7d269c62a (diff) | |
parent | db2e10a70fb1537a33c72235360b8c769641f9ee (diff) | |
download | servo-9a8ba23a763b2a8d272c4335974d5a68623c054c.tar.gz servo-9a8ba23a763b2a8d272c4335974d5a68623c054c.zip |
Auto merge of #10088 - pkondzior:7038-report-memory-usage-in-layout-thread-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 https://github.com/servo/heapsize/pull/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 -->
Diffstat (limited to 'components/layout/layout_thread.rs')
-rw-r--r-- | components/layout/layout_thread.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/layout/layout_thread.rs b/components/layout/layout_thread.rs index f473979c72d..1c41987b273 100644 --- a/components/layout/layout_thread.rs +++ b/components/layout/layout_thread.rs @@ -689,6 +689,13 @@ impl LayoutThread { size: display_list.map_or(0, |sc| sc.heap_size_of_children()), }); + let stylist = rw_data.stylist.as_ref(); + reports.push(Report { + path: path![formatted_url, "layout-thread", "stylist"], + kind: ReportKind::ExplicitJemallocHeapSize, + size: stylist.heap_size_of_children(), + }); + // The LayoutThread has a context in TLS... reports.push(Report { path: path![formatted_url, "layout-thread", "local-context"], |