[Webkit-unassigned] [Bug 214866] Profiler resolution is too low

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 28 18:23:52 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=214866

--- Comment #2 from Saam Barati <sbarati at apple.com> ---
(In reply to radexpl from comment #0)
> Hi. It appears that the Safari/webkit web inspector profiler samples stack
> traces approximately every 1ms. This is slow, and not suitable for many
> profiling tasks, since I'm only going to get a handful of samples when
> trying to hit 60fps, or react to an event in 50ms. By comparison, it appears
> that Chrome's Timeline profiler samples stacks every 100us.
> 
> Is there a technical reason why WebKit's profiler can't go up to 10kHz? If
> there's a tradeoff (slow processing, significantly degraded performance),
> can this be made configurable?

Last time I measured this it did negatively impact performance of the script being run, and we were trying to find a balance where we didn't introduce so much perturbation that the samples you got were unrepresentative.

I also remember it being difficult to be woken up reliably in 100us.

However, this was a long time ago. We should check again the impact of increasing the resolution.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200729/107d407c/attachment.htm>


More information about the webkit-unassigned mailing list