Closed
Bug 1482392
Opened 5 years ago
Closed 3 years ago
Track webextension Javascript activity
Categories
(Toolkit :: Performance Monitoring, enhancement, P2)
Toolkit
Performance Monitoring
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: tarek, Assigned: tarek)
Details
Attachments
(1 obsolete file)
Let's add a counter that will receive duration values and event loop iterations (==dispatches), so we know how long a webext spends in the JS runtime. current implementation plan: - add a global hashtable [WebExtensionId / duration+dispatch] - add in the runtime performanceMonitoring a set of functions so we can label it with the WebExtensionId - in XPCJSRuntime::Initialize, if the principal has an addonId, create an entry in the table and flag the context runtime with it - in AutoStopwatch, if the cx is flagged, we can measure the time spent via enter/leave (and iterations) For the consumers, create a promise that asks all processes their global hashtable, and returns a merged, JS-friendly array, exposed via the extension framework.
Assignee | ||
Comment 1•5 years ago
|
||
related : bug 1309946 - which was the previous implementation of the "This addon might slow down etc..."
Assignee | ||
Comment 2•5 years ago
|
||
related : bug 1406872 -- it can probably be done in the same patch
Assignee | ||
Comment 3•5 years ago
|
||
This is a first draft for the patch that tracks WebExtension JS activity, for early feedback.
Assignee | ||
Comment 4•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=bd55aed4f46e460bbb02013966e8b7f849992010
Assignee | ||
Comment 5•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=cb735d195d6f6a432870bc5ca7a5806d61d84b39
Updated•5 years ago
|
Attachment #9008324 -
Attachment description: Bug 1482392 - [WIP] Track webextension Javascript activity - r?jandem → Bug 1482392 - Track Web Extensions Javascript activity - r?jandem
Assignee | ||
Comment 6•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=fc650844dd5e6aee27367018476251ee8f290f63
Assignee | ||
Comment 7•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=c54ce0adc56b2660d94416ff8a386df992646754
Updated•5 years ago
|
Attachment #9008324 -
Attachment description: Bug 1482392 - Track Web Extensions Javascript activity - r?jandem → Bug 1482392 - Track Web Extensions Javascript activity - r?jandem,florian
Updated•5 years ago
|
Attachment #9008324 -
Attachment description: Bug 1482392 - Track Web Extensions Javascript activity - r?jandem,florian → Bug 1482392 - Track Web Extensions Javascript activity - r?jandem,baku,florian
Assignee | ||
Comment 8•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=916a4ce35de014dc96c8468938ae439b62717601
Updated•5 years ago
|
Attachment #9008324 -
Attachment is obsolete: true
Updated•4 years ago
|
Priority: -- → P2
Assignee | ||
Updated•3 years ago
|
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•