This is mainly needed for heap snapshots, as they consume significant amounts of memory on engine side, but I added support for CPU profiles deletion as well.

The approach isn't ideal, as after deleting a profile, embedder will get stale pointers for previously retrieved nodes etc., but I don't want to introduce a
full DOM-like ref counting scheme here.

This works OK for WebKit / DevTools, as DevTools UI never tries to access nodes
of deleted profiles, and in console object, there is no possibility to clear
profiles.

http://codereview.chromium.org/6685084/

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to