Expose /proc/smaps PSS in about:memory

RESOLVED FIXED in mozilla9

Status

()

Toolkit
about:memory
RESOLVED FIXED
7 years ago
7 years ago

People

(Reporter: Justin Lebar (not reading bugmail), Assigned: Justin Lebar (not reading bugmail))

Tracking

unspecified
mozilla9
All
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

7 years ago
For each mapping, smaps gives us an RSS and additionally a "proportional set size" (PSS).  A page's PSS is its RSS divided by the number of processes which have that page mapped.

I'd originally hidden PSS in about:memory, since on desktop, it's different from RSS only for shared libraries.  It's not so interesting.

But on mobile, PSS is much more interesting, because it shows us how much memory we're sharing between the content and chrome processes.  So I think we should just show PSS; it'll be collapsed by default anyway.
(Assignee)

Updated

7 years ago
Assignee: nobody → justin.lebar+bug
(Assignee)

Comment 2

7 years ago
Created attachment 560412 [details] [diff] [review]
Patch v1
Attachment #560412 - Flags: review?(khuey)
Comment on attachment 560412 [details] [diff] [review]
Patch v1

This looks fine, but it looks like the original that you made the diff against was weird ...
Attachment #560412 - Flags: review?(khuey) → review+
(Assignee)

Comment 4

7 years ago
Yeah, it looks like I somehow managed to include hunks from another patch in here.

I'll figure it out before I push.  Thanks.
https://hg.mozilla.org/mozilla-central/rev/bbf7bdb0c75f
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla9
You need to log in before you can comment on or make changes to this bug.