Page 1 of 1

Measure latency?

PostPosted: Wed Oct 27, 2021 7:05 pm
by sdiverdi
I have an OSR renderer and I interact with the page it is rendering by calling ExecuteJavaScript. Is there a way I can know if my javascript was executed before the renderer calls OnPaint? What I mean is if ExecuteJavaScript is called late enough into the rendering, the next OnPaint image may not reflect the change introduced by the javascript, and it will be one more OnPaint call before the change is apparent. I'm tracing latency through my app, and getting stuck on this step. I could construct a specific page to render, and a javascript payload that e.g. changes the background color, and check for that, but I want to measure on real-world payloads, so can't necessarily rely on programmatically analyzing the rendered image.