Closed Bug 1580469 Opened 5 years ago Closed 5 years ago

Add mochitests for capturing a profile with the popup

Categories

(DevTools :: Performance Tools (Profiler/Timeline), task, P2)

task

Tracking

(firefox71 fixed)

RESOLVED FIXED
Firefox 71
Tracking Status
firefox71 --- fixed

People

(Reporter: gregtatum, Assigned: gregtatum)

References

Details

Attachments

(1 file, 1 obsolete file)

We need mochitests that exercise the the popup, and capture a profile.

The popup's shortcuts use a different codepath than the popup's buttons.
When using the buttons, the profile was not being captured as a gzipped
profile, and it was using the DevTools' mechanism for getting the symbol
tables. This patch makes the getSymbolTables mechanism configuring in the
recording panel's client.

In addition, browser code made its way into the client. This patch moves
the browser code to all be in browser.js to match the original code
organization for the panel, which was trying to keep browser APIs
out of the React components and Redux store.

This patch creates the first full mochitests that excercise the profiler
popup's mechanisms of capturing profiles. The tests try to use user-focused
mechanisms such as keyboard shortcuts and clicking buttons to fully
capture a profile.

Depends on D45529

Attachment #9092073 - Attachment description: Bug 1580469 - Factor out the getSymbolsTable browser code from client code; r?julienw → Bug 1581975 - Factor out the getSymbolsTable browser code from client code; r?julienw

Comment on attachment 9092073 [details]
Bug 1581975 - Factor out the getSymbolsTable browser code from client code; r?julienw

Revision D45529 was moved to bug 1581975. Setting attachment 9092073 [details] to obsolete.

Attachment #9092073 - Attachment is obsolete: true
Component: Gecko Profiler → Performance Tools (Profiler/Timeline)
Product: Core → DevTools
Pushed by gtatum@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f44e632769d7
Create end to end profile capture tests; r=julienw
Pushed by dvarga@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/594e6c588af8
Create end to end profile capture tests; r=julienw
Backout by dvarga@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3744d80c98e6
Backed out 2 changesets (bug 1580469, bug 1581975) for devtools failure at browser/browser_aboutdebugging_serviceworker_timeout.js
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 71
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: