Closed Bug 1373057 Opened 7 years ago Closed 7 years ago

Diffs should remove the scripts count

Categories

(Toolkit :: about:memory, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

Details

Attachments

(1 file, 1 obsolete file)

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: nobody → continuation
We care about the memory used by these scripts, not by the precise
count of them.
Attachment #8877774 - Flags: review?(erahm)
There are other things besides <non-notable files>, so I just match on "source(scripts=\d+, ".
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+
We care about the memory used by these scripts, not by the precise
count of them.
Attachment #8877781 - Flags: review?(erahm)
Attachment #8877774 - Attachment is obsolete: true
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)
(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.
Maybe diffs of 0 are not included under explicit, but they are for the other subtrees?
Attachment #8877781 - Flags: review?(erahm)
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+
(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.
I ran the tests this should affect locally, so I don't think it needs a try run.
Keywords: checkin-needed
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
https://hg.mozilla.org/mozilla-central/rev/2674fc87b8d6
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: