Force V8 debugger load on startup instead of on demand.
authorGlenn Watson <glenn.watson@nokia.com>
Thu, 27 Oct 2011 03:13:23 +0000 (13:13 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 1 Nov 2011 02:58:20 +0000 (03:58 +0100)
commit64b8ce5f60d0595fcc511ca860066f2d946db8f3
tree1746abd288e6108ad3b39df4b1579bf4af85836a
parente431d97a03a7131ff327ff2cc7d12c6bad1f9fe7
Force V8 debugger load on startup instead of on demand.

The V8 debugger code can take several hundred milliseconds to
start. This is by default loaded and unloaded on demand, for
example whenever a script is compiled. This has a significant
effect on the timing reported by the QML profiler in Qt
Creator. This change forces the debugger context to be loaded
when the v8 context is created, so that this cost is paid
once on startup and no longer affects the QML profiling times.

Task-number: QTBUG-22170
Change-Id: I5533b53908b3c53e18b0eb870ed6166d109429df
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
src/declarative/debugger/qv8debugservice.cpp