Closed Bug 1513737 Opened 6 years ago Closed 6 years ago

Stop using Array.shift when mapping pause points

Categories

(DevTools :: Debugger, defect, P1)

defect

Tracking

(firefox65 fixed, firefox66 fixed)

RESOLVED FIXED
Firefox 66
Tracking Status
firefox65 --- fixed
firefox66 --- fixed

People

(Reporter: jlast, Assigned: jlast)

References

(Depends on 1 open bug)

Details

Attachments

(1 file)

Priority: -- → P1
Pushed by jlaster@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/622a47b9c5a8 Stop using Array.shift when mapping pause points. r=dwalsh
Backed out for devtools failures on devtools/client/debugger/new/test/mochitest/browser_dbg-debugger-buttons.js backout: https://hg.mozilla.org/integration/mozilla-inbound/rev/a32c6af527d082f48a11c0b51d69cddb65cb5fc2 push with failures: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=622a47b9c5a897f92aec7b4a5dcf8ad93d4443f5&searchStr=devtools&group_state=expanded&selectedJob=216868585 failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=216868585&repo=mozilla-inbound&lineNumber=2402 12:15:45 INFO - Console message: [JavaScript Warning: "Removed unsafe attribute. Element: svg. Attribute: xlink." {file: "resource://devtools/client/shared/vendor/react-dom.js" line: 5811}] 12:15:45 INFO - Console message: [JavaScript Warning: "Removed unsafe attribute. Element: svg. Attribute: xlink." {file: "resource://devtools/client/shared/vendor/react-dom.js" line: 5811}] 12:15:45 INFO - Console message: [JavaScript Warning: "Removed unsafe attribute. Element: svg. Attribute: xlink." {file: "resource://devtools/client/shared/vendor/react-dom.js" line: 5811}] 12:15:45 INFO - Console message: [JavaScript Warning: "Removed unsafe attribute. Element: svg. Attribute: xmlns." {file: "resource://devtools/client/shared/vendor/react-dom.js" line: 5811}] 12:15:45 INFO - Console message: [JavaScript Warning: "Removed unsafe attribute. Element: svg. Attribute: xlink." {file: "resource://devtools/client/shared/vendor/react-dom.js" line: 5811}] 12:15:45 INFO - Console message: [JavaScript Warning: "Removed unsafe attribute. Element: svg. Attribute: xlink." {file: "resource://devtools/client/shared/vendor/react-dom.js" line: 5811}] 12:15:45 INFO - Console message: [JavaScript Warning: "Removed unsafe attribute. Element: svg. Attribute: xlink." {file: "resource://devtools/client/shared/vendor/react-dom.js" line: 5811}] 12:15:45 INFO - Console message: [JavaScript Warning: "Removed unsafe attribute. Element: svg. Attribute: xmlns." {file: "resource://devtools/client/shared/vendor/react-dom.js" line: 5811}] 12:15:45 INFO - Console message: [JavaScript Warning: "Removed unsafe attribute. Element: svg. Attribute: xmlns." {file: "resource://devtools/client/shared/vendor/react-dom.js" line: 5811}] 12:15:45 INFO - Finished waiting for state change: paused 12:15:45 INFO - Finished waiting for state change: paused 12:15:45 INFO - Waiting for state change: selected source 12:15:45 INFO - Finished waiting for state change: selected source 12:15:45 INFO - TEST-PASS | devtools/client/debugger/new/test/mochitest/browser_dbg-debugger-buttons.js | top frame's source is selected - 12:15:45 INFO - TEST-PASS | devtools/client/debugger/new/test/mochitest/browser_dbg-debugger-buttons.js | Line is highlighted as paused - 12:15:45 INFO - TEST-PASS | devtools/client/debugger/new/test/mochitest/browser_dbg-debugger-buttons.js | There is only one line - 12:15:45 INFO - TEST-PASS | devtools/client/debugger/new/test/mochitest/browser_dbg-debugger-buttons.js | debug line is visible - 12:15:45 INFO - TEST-PASS | devtools/client/debugger/new/test/mochitest/browser_dbg-debugger-buttons.js | expression is highlighted as paused - 12:15:45 INFO - TEST-PASS | devtools/client/debugger/new/test/mochitest/browser_dbg-debugger-buttons.js | gutter is visible - 12:15:45 INFO - Waiting for COMMAND to dispatch 1 time(s) 12:15:45 INFO - Console message: [JavaScript Warning: "Removed unsafe attribute. Element: svg. Attribute: xmlns." {file: "resource://devtools/client/shared/vendor/react-dom.js" line: 5811}] 12:15:45 INFO - Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://example.com/browser/devtools/client/debugger/new/test/mochitest/examples/doc-debugger-statements.html" line: 0}] 12:15:45 INFO - COMMAND dispatched 1 time(s) 12:15:45 INFO - Waiting for state change: paused 12:15:45 INFO - Buffered messages finished 12:15:45 INFO - TEST-UNEXPECTED-FAIL | devtools/client/debugger/new/test/mochitest/browser_dbg-debugger-buttons.js | Test timed out - 12:15:45 INFO - Removing tab. 12:15:45 INFO - Waiting for event: 'TabClose' on [object XULElement]. 12:15:45 INFO - Got event: 'TabClose' on [object XULElement]. 12:15:45 INFO - Tab removed and finished closing 12:15:45 INFO - GECKO(870) | MEMORY STAT | vsize 4642MB | residentFast 573MB | heapAllocated 142MB 12:15:45 INFO - TEST-OK | devtools/client/debugger/new/test/mochitest/browser_dbg-debugger-buttons.js | took 45320ms
Flags: needinfo?(jlaster)
sorry, i missed a try failure. This is a revised run that should be green. https://treeherder.mozilla.org/#/jobs?repo=try&revision=50d38ab1a43fe9f6a6a78b34aeefce08fde6bda6
Flags: needinfo?(jlaster)
Pushed by jlaster@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/b71a3c86f994 Stop using Array.shift when mapping pause points. r=dwalsh
Depends on: 1513702
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 66
Assignee: nobody → jlaster
Attached patch beta-shift.patchSplinter Review
[Beta/Release Uplift Approval Request] Feature/Bug causing the regression: Bug 1511352 User impact if declined: the debugger is 800% slower Is this code covered by automated tests?: Yes Has the fix been verified in Nightly?: Yes Needs manual test from QE?: No If yes, steps to reproduce: List of other uplifts needed: None Risk to taking this patch: Low Why is the change risky/not risky? (and alternatives if risky): because it only touches the debugger and turns off an unused feature. String changes made/needed:
Attachment #9032055 - Flags: approval-mozilla-beta?
Comment on attachment 9032055 [details] [diff] [review] beta-shift.patch With that kind of perf win, we should definitely take it in Beta65+.
Attachment #9032055 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: