[Webkit-unassigned] [Bug 37025] Web Inspector: GC Run event should be added to Timeline Panel

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 8 22:24:11 PDT 2010


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





--- Comment #24 from Pavel Feldman <pfeldman at chromium.org>  2010-04-08 22:24:10 PST ---
Your findings are correct. Shortly speaking, GC events are never reported
synchronously. The reason is that we can't run JavaScript code from within GC
event, while front-end push is implemented using javascript code. All the calls
into ScriptObject are JS calls in fact.

The only good way of handling this (and we've been considering it for a long
time + it was the original implementation in Chromium downstream) is to use
native structures in place of ScriptValue/Object/Array that would natively
serialize into JSON. They are called Value in Chromium (see base/values.h).
They can be serialized to JSON using not that much code:
http://src.chromium.org/viewvc/chrome/trunk/src/base/json/json_writer.cc. 
Unfortunately, json_reader.cc is much larger and more complex, but I think we
could work out solution that does not require it - stuff will still be parsed
in the js environment. I would do it all right away if I had resources.

-- 
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