Re: ChromeUtils.addProfilerMarker - new API to add profiler markers from JS code

2020-04-08 Thread Bobby Holley
On Wed, Apr 8, 2020 at 6:35 PM Tom Ritter wrote: > I'm pretty sure that if you're not in the System Principal; your > timestamps from the performance object are going to be clamped to 1ms > resolution (and potentially jittered forward) > ChromeUtils is only available to System Principal code

Re: ChromeUtils.addProfilerMarker - new API to add profiler markers from JS code

2020-04-08 Thread Tom Ritter
I'm pretty sure that if you're not in the System Principal; your timestamps from the performance object are going to be clamped to 1ms resolution (and potentially jittered forward) I'm not sure in what context this will be used; or if there's something that would prevent this timing behavior f

ChromeUtils.addProfilerMarker - new API to add profiler markers from JS code

2020-04-07 Thread Florian Quèze
I recently landed a new scriptable API to add profiler markers: ChromeUtils.addProfilerMarker. This makes it possible for chrome privileged JS code to insert profiler markers that (optionally) have a duration and an associated text. Examples: