[Webkit-unassigned] [Bug 132109] Web Inspector: Expect to see top level JavaScript function profiler details for event handlers in timeline

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 1 17:47:12 PDT 2014


--- Comment #4 from Joseph Pecoraro <joepeck at webkit.org>  2014-08-01 17:47:24 PST ---
(In reply to comment #3)
> Was this fixed by recompiling the functions during timeline recording?

Nope, that just shows the proper functions underneath. The issue is with showing the top level function. So given:

    1. function myHandler(event) {
    2.     foo();
    3. }
    5. elem.addEventListener("click", myHandler, false);

I would expect to see:

    Click Event (line 5)
      -> myHandler (line 1)
        -> foo

But what we currently see is:

    Click Event (line 5)
      -> foo

Essentially the "myHandler" time is rolled up into the Click Event record. It would be good to see both (1) where the event was attached and (2) the handler being run.

Also, I don't know what happens if there are multiple click handlers. Does that mean we produce two "Click Event" records, or one? It might be nice to have 1, with all of the event listeners it executed nested under it.

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