QmlProfiler: stream snapshots to reduce memory footprint
authorMikko Harju <mikko.a.harju@nokia.com>
Thu, 8 Dec 2011 11:24:12 +0000 (13:24 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 12 Dec 2011 01:04:53 +0000 (02:04 +0100)
commit18ce33ecd994666d42e438c4aa62302c72465458
treecda4a43bc5721e9c0b0916b46ca10df1ea63d0a0
parentd0dc58b8c300682b92fa018e04193ffccd79ef15
QmlProfiler: stream snapshots to reduce memory footprint

Taking a V8 heap snapshot with QV8ProfilerService created multiple
copies of the snapshot data, causing overhead of several megabytes.
This patch changes the snapshot protocol to stream the contents over
the debugger connection.

Change-Id: I90054210233d52dd02aa838201f9b024d578fcea
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
src/declarative/debugger/qv8profilerservice.cpp
src/declarative/debugger/qv8profilerservice_p.h
tests/auto/declarative/debugger/qv8profilerservice/tst_qv8profilerservice.cpp