[Webkit-unassigned] [Bug 95056] Web Inspector: provide a way for finding setTimeout/XHR callbacks referenced from native code

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 29 05:33:06 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=95056





--- Comment #1 from Yury Semikhatsky <yurys at chromium.org>  2012-08-29 05:33:09 PST ---
Resolving this issue would require creating heap graph entries for each setTimeout callback that would reference the function and the arguments passed to the setTimeout call. After discussing this problem with Ilya it seems that it cannot be efficiently solved using existing mechanisms for reporting additional data about global handles. There are two way to provide some data on global handles to v8 heap profiler:
1) v8::Persisitent<T>::SetWrapperClassId that allows to classify given handle using uint16_t and then retrieve RetainedObjectInfo object for that class using a callback set via v8::HeapProfiler::DefineWrapperClass
2) Report RetainedObjectInfo by means of v8::V8::AddObjectGroup

Instead of extending this quite tricky API we'd rather move part of the logic that deals with DOM groups and related stuff from v8 to WebCore and have v8 only collect information about JS heap.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list