Profiling JS has higher overhead than non-JS
Categories
(Core :: Gecko Profiler, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox53 | --- | affected |
People
(Reporter: mstange, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
I have the (possibly wrong) gut feeling that JS profiling can never be as light as native profiling, so I'm not too sure that this bug title can ever be fixed. 🤔
But in any case, any possible improvement is of course welcome and should be investigated. Should this bug be changed to a "task", maybe meta, titled something like "Reduce overhead of JS profiling".
Slow JS stackwalking (e.g. due to storing long strings in the profiler buffer)...
I don't understand the link from long strings to slower stack-walking. Of course copying more bytes takes more time, but I would guess it's quite negligible compared to everything else that happens during stack-walking, and we don't control how long these strings are anyway so we can't just make them smaller (right?).
It would be good if we could really profile the profiler (e.g., from Linux perf, or maybe more intrusive tracing profiling?), and see where time is spent during native/JS profiling, including the extra time spent outside of stack-walking itself, when the JS engine stores extra information for the benefit of the profiler.
Description
•