Closed
Bug 531395
Opened 15 years ago
Closed 3 years ago
APIs for tracking JavaScript compilation
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: Honza, Unassigned)
References
Details
(Whiteboard: [firebug-p3])
It would be incredibly useful to have some APIs that allow tracking Javascript compilation activity and effectively profile web-app performance.
The idea is to have events fired with start/stop for the JS compilation with reference to a script that is being compiled (jsdIScript). The reference would help to link the timings info with proper source-code in the UI (e.g. in Firebug).
Honza
Reporter | ||
Updated•15 years ago
|
Whiteboard: [firebug-p3]
Reporter | ||
Comment 1•15 years ago
|
||
Forgot to note that time stamp should be also passed with the event. Just like in case of nsIActivityObserver interface. Getting the time in JS handler could be too late.
Honza
Comment 3•15 years ago
|
||
cc'ing bz, though I suspect dmandelin would be a good candidate for this work. I am not sure this should belong in jsd.
Comment 4•15 years ago
|
||
This should probably only happen in some sort of profiling mode... Otherwise, firing one or two events per eval() call will really mess with performance in some benchmarks and maybe even some pages.
Comment 5•15 years ago
|
||
For example, the mode where jsd it enabled. These events would be emitted in the same locations as the calls for bug 449464.
Or we can simply record the timestamps and make them available via an API call. This would have much lower overhead while still allowing the time evolution of the page to be displayed. Then more info could be gather with more overhead using 449464.
Assignee | ||
Updated•10 years ago
|
Assignee: general → nobody
Comment 6•3 years ago
|
||
https://profiler.firefox.com, so WFM I guess.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•