gecko-dev/devtools/server
Logan Smyth cde4370d90 Bug 1617666 - Use a separate Debugger to improve performance of eval. r=jlast
The SpiderMonkey Debugger API maintains a flag per-debuggee that tracks whether
the SpiderMonkey should notify the debugger when new frames are entered, and
whether the JIT scripts associated with the debuggee realm have been compiled
with debug instrumentation. To avoid constantly needing to clear and regenerate
JIT scripts, the flag is permanently enabled once "onEnterFrame" has been used
with a given Debugger instance, and when the flag is enabled, there is a
runtime performance cost.

This runtime cost is what is causing the performance regression here, so to
ensure that the flag is cleared at the end of a given instant-eval, we only
set "onEnterFrame" on a new temporary Debugger instance, instead of setting
it on th existing persistent Debugger instance.

Differential Revision: https://phabricator.services.mozilla.com/D64912

--HG--
extra : moz-landing-system : lando
2020-03-02 22:55:28 +00:00
..
actors Bug 1617666 - Use a separate Debugger to improve performance of eval. r=jlast 2020-03-02 22:55:28 +00:00
connectors Bug 1614791 - Rename DebuggerServer to DevToolsServer. r=jdescottes 2020-02-17 10:28:24 +00:00
performance Bug 1144438 - Remove false error notification when the profiler stops; r=julienw 2020-03-02 16:37:04 +00:00
socket Bug 1609726 - Unify mochitest chrome test folders in devtools. r=jdescottes 2020-02-04 14:03:11 +00:00
startup Bug 1614791 - Rename DebuggerServer to DevToolsServer. r=jdescottes 2020-02-17 10:28:24 +00:00
tests Bug 1292001 - Fix lint warnings on a CLOSED TREE; a=lint-fix 2020-03-02 07:21:25 +00:00
devtools-server-connection.js Bug 1614793 - Rename DebuggerServerConnection to DevToolsServerConnection. r=jdescottes 2020-02-18 15:28:49 +00:00
devtools-server.js Bug 1614793 - Rename DebuggerServerConnection to DevToolsServerConnection. r=jdescottes 2020-02-18 15:28:49 +00:00
moz.build Bug 1614793 - Rename DebuggerServerConnection to DevToolsServerConnection. r=jdescottes 2020-02-18 15:28:49 +00:00