Closed
Bug 1373057
Opened 7 years ago
Closed 7 years ago
Diffs should remove the scripts count
Categories
(Toolkit :: about:memory, enhancement)
Toolkit
about:memory
Tracking
()
RESOLVED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: mccr8, Assigned: mccr8)
Details
Attachments
(1 file, 1 obsolete file)
5.33 KB,
patch
|
erahm
:
review+
|
Details | Diff | Splinter Review |
When I diff two about:memory reports I see stuff like this: │ │ │ ├──0.03 MB (-6.33%) ── source(scripts=154, <non-notable files>)/misc │ │ │ ├──-0.03 MB (06.13%) ── source(scripts=149, <non-notable files>)/misc │ │ │ ├──-0.02 MB (05.71%) ── source(scripts=139, <non-notable files>)/misc │ │ │ └──0.02 MB (-5.67%) ── source(scripts=138, <non-notable files>)/misc [3] The scripts=154 should be turned into scripts=NNN or something.
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → continuation
Assignee | ||
Comment 1•7 years ago
|
||
We care about the memory used by these scripts, not by the precise count of them.
Attachment #8877774 -
Flags: review?(erahm)
Assignee | ||
Comment 2•7 years ago
|
||
There are other things besides <non-notable files>, so I just match on "source(scripts=\d+, ".
Comment 3•7 years ago
|
||
Comment on attachment 8877774 [details] [diff] [review] Normalize script source counts in about:memory diffs. Review of attachment 8877774 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, but can you please update the tests? See bug 1142174 for an example.
Attachment #8877774 -
Flags: review?(erahm) → feedback+
Assignee | ||
Comment 4•7 years ago
|
||
We care about the memory used by these scripts, not by the precise count of them.
Attachment #8877781 -
Flags: review?(erahm)
Assignee | ||
Updated•7 years ago
|
Attachment #8877774 -
Attachment is obsolete: true
Comment 5•7 years ago
|
||
Comment on attachment 8877781 [details] [diff] [review] Normalize script source counts in about:memory diffs. Review of attachment 8877781 [details] [diff] [review]: ----------------------------------------------------------------- Almost there, you need to update the test (test_aboutmemory3.xul) as well. You can run it with something like: > ./mach test toolkit/components/aboutmemory/tests/
Attachment #8877781 -
Flags: review?(erahm)
Assignee | ||
Comment 6•7 years ago
|
||
(In reply to Eric Rahm [:erahm] (please no mozreview requests) from comment #5) > Almost there, you need to update the test (test_aboutmemory3.xul) as well. FWIW, I ran it locally and it passed.
Assignee | ||
Comment 7•7 years ago
|
||
Maybe diffs of 0 are not included under explicit, but they are for the other subtrees?
Assignee | ||
Updated•7 years ago
|
Attachment #8877781 -
Flags: review?(erahm)
Comment 8•7 years ago
|
||
Comment on attachment 8877781 [details] [diff] [review] Normalize script source counts in about:memory diffs. Review of attachment 8877781 [details] [diff] [review]: ----------------------------------------------------------------- Hmm okay, might make sense to do a non-zero diff, but eh.
Attachment #8877781 -
Flags: review?(erahm) → review+
Comment 9•7 years ago
|
||
(In reply to Andrew McCreight [:mccr8] from comment #7) > Maybe diffs of 0 are not included under explicit, but they are for the other > subtrees? My guess would be that diffs of 0 are included for degenerate (single-node) trees, but not as non-root nodes in proper trees.
Assignee | ||
Comment 10•7 years ago
|
||
I ran the tests this should affect locally, so I don't think it needs a try run.
Keywords: checkin-needed
Comment 11•7 years ago
|
||
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/2674fc87b8d6 Normalize script source counts in about:memory diffs. r=erahm
Keywords: checkin-needed
Comment 12•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/2674fc87b8d6
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in
before you can comment on or make changes to this bug.
Description
•