Closed Bug 1498195 Opened 6 years ago Closed 6 years ago

remove the code of the old about:performance

Categories

(Toolkit :: Performance Monitoring, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox66 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(3 files, 1 obsolete file)

No description provided.
Blocks: 1406872
Assignee: nobody → florian
Status: NEW → ASSIGNED
Attached patch part 3 - CSS cleanup (obsolete) — Splinter Review
Attachment #9034746 - Flags: review?(felipc)
Fixed an obvious mistake in the CSS cleanup patch.
Attachment #9034768 - Flags: review?(felipc)
Attachment #9034746 - Attachment is obsolete: true
Attachment #9034746 - Flags: review?(felipc)
Attachment #9034744 - Flags: review?(felipc) → review+
Comment on attachment 9034745 [details] [diff] [review] part 2 - adapt the browser_aboutperformance.js test Review of attachment 9034745 [details] [diff] [review]: ----------------------------------------------------------------- ::: toolkit/components/aboutperformance/content/aboutPerformance.js @@ +304,5 @@ > } else if (/^[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$/.test(host)) { > let addon = WebExtensionPolicy.getByHostname(host); > + if (!addon) { > + continue; > + } Does this belong in this bug? ::: toolkit/components/aboutperformance/tests/browser/browser_aboutperformance.js @@ +40,5 @@ > > + // Ensure it is reported as a medium or high energy impact. > + let l10nId = row.children[2].getAttribute("data-l10n-id"); > + Assert.ok(["energy-impact-medium", "energy-impact-high"].includes(l10nId), > + "our test tab is medium or high energy impact"); The biggest risk for this test is being intermittent here.. Did you run this on test-verify to make sure it is reliable? If you think this could be unreliable, how about instead of using the mutation observer above (to give the other tab time 1 refresh interval to use the CPU), convert this to a waitForCondition?
Attachment #9034745 - Flags: review?(felipc) → review+
Attachment #9034768 - Flags: review?(felipc) → review+

(In reply to :Felipe Gomes (needinfo me!) from comment #5)

Thanks for the reviews!

::: toolkit/components/aboutperformance/content/aboutPerformance.js
@@ +304,5 @@

   } else if (/^[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$/.test(host)) {
     let addon = WebExtensionPolicy.getByHostname(host);
  •    if (!addon) {
    
  •      continue;
    
  •    }
    

Does this belong in this bug?

Yes, this was causing a lot of noise when running the test.

::: toolkit/components/aboutperformance/tests/browser/browser_aboutperformance.js
@@ +40,5 @@

  • // Ensure it is reported as a medium or high energy impact.
  • let l10nId = row.children[2].getAttribute("data-l10n-id");
  • Assert.ok(["energy-impact-medium", "energy-impact-high"].includes(l10nId),
  •        "our test tab is medium or high energy impact");
    

The biggest risk for this test is being intermittent here.. Did you run this on test-verify to make sure it is reliable?

It passes test-verify locally. I just added all the TV jobs on my try push in comment 2 to be extra confident.

If you think this could be unreliable, how about instead of using the mutation observer above (to give the other tab time 1 refresh interval to use the CPU), convert this to a waitForCondition?

By default waitForCondition will wait for up to 3s, so unless I increase the try count, it would cover no more than one refresh.

Pushed by florian@queze.net: https://hg.mozilla.org/integration/mozilla-inbound/rev/99db2eabbf07 remove the code of the old about:performance, r=felipe. https://hg.mozilla.org/integration/mozilla-inbound/rev/99fad7aa0cb7 adapt the browser_aboutperformance.js test to cover the new about:performance, r=felipe. https://hg.mozilla.org/integration/mozilla-inbound/rev/2c7c37b0ce9c cleanup CSS selectors that dealt with about:performance containing multiple tables, r=felipe.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: