Closed
Bug 710927
Opened 13 years ago
Closed 2 years ago
Track web page event/task costs in terms of cpu time
Categories
(Core :: DOM: Core & HTML, enhancement, P5)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: taras.mozilla, Unassigned)
References
Details
(Whiteboard: [Snappy:P2])
Would be great to be able to tag events as coming from a specific tab/chrome function/etc. This would help with tracking down browser lag.
Comment 1•13 years ago
|
||
is event.target not enough? you can get the principal/url from that.
Reporter | ||
Comment 2•13 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #1)
> is event.target not enough? you can get the principal/url from that.
Can you suggest a good way to tally cost of these events per target? Ie is there a logical place in the code that sees all events that we can hook into?
Comment 3•13 years ago
|
||
Do you really want to see all the events? If so, add something to nsEventDispatcher::Dispatch().
But if just some subset of common events, like mouse events etc is enough, you could perhaps add
capturing event listeners to chrome.
Reporter | ||
Comment 4•13 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #3)
> Do you really want to see all the events? If so, add something to
> nsEventDispatcher::Dispatch().
> But if just some subset of common events, like mouse events etc is enough,
> you could perhaps add
> capturing event listeners to chrome.
I'm mainly interested in non-interactive webpage events. I think that means setTimeouts and XHR handlers.
Comment 5•13 years ago
|
||
What has setTimeout to do with DOM Events?
Comment 6•13 years ago
|
||
Ok, so this is not about DOM events, but about cases where C++ ends up calling content JS,
So, MutationObserver's microtasks ("the outermost script execution in the innermost task")
could be useful here.
Other thing to count is layout flushes.
Component: DOM: Events → DOM
QA Contact: events → general
Reporter | ||
Updated•13 years ago
|
Summary: Add origin info to events → Track web page event/task costs in terms of cpu time
Comment 7•13 years ago
|
||
Bug 674779 is related.
Reporter | ||
Updated•13 years ago
|
Whiteboard: [Snappy] → [Snappy:P2]
Updated•10 years ago
|
Hardware: x86 → All
Updated•10 years ago
|
OS: Windows 7 → All
Updated•10 years ago
|
Severity: normal → enhancement
Version: unspecified → Trunk
Updated•6 years ago
|
Priority: -- → P5
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
Updated•2 years ago
|
Severity: normal → S3
Comment 8•2 years ago
|
||
This is a rather vague idea filed more than a decade ago. If somebody has a concrete plan, a new bug is probably better.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•