[Webkit-unassigned] [Bug 38662] Web Inspector: source location does not show in the profiler when using "//@ sourceURL=" in an eval()'d string
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri May 7 12:27:08 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=38662
--- Comment #3 from Patrick Mueller <pmuellr at yahoo.com> 2010-05-07 12:27:06 PST ---
Looks to me, like the best approach here is to arrange for the sourceID to come
in from the profiling data (it currently is NOT), and then do the sourceID
lookup against the _sourceIDMap in ScriptPanel back in JavaScript. The
ScriptsPanel should have access to the sourceURL, which is parsed in the Script
class. ScriptPanel would need to be extended to provide an sourceID->Script
lookup function.
One place to start looking where to get the sourceID sent back from the
profiler is in CallIdentifier (JSC/profiler/CallIdentifier.h). Various places
in JSC/profiler/ProfileGenerator.cpp, for instance, create CallIdentifer AND
have access to the sourceID.
I'm not entirely certain whether the sourceID in the profiler is the same as
the one that comes into the ScriptPanel, but initial checks seem to indicate
that they are.
All this is just for JSC; V8 would need a different but similar set of changes,
presumably.
Seems kind of expensive, in terms of code hits, for a missing feature not many
people have missed.
One note though - message sends from the profiler into WI, seem to be sending
the sourceURL all the time. If we sent the sourceID instead, we could look up
the sourceURL in WI JavaScript code (as suggested above). Could be a savings
there. That may even flow back farther in the Profiling code - perhaps we
don't really need to ever have the sourceURL available to the profiler if the
sourceID is available instead.
--
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