Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome DevTools frame event timing

I'm using Chrome to isolate the bottle neck in the animations of an app.

It shows that frames are taking about 20+ms which is too slow. But when I expaned the frame to see what's going in, it shows me a jQuery call taking 20+ms, but the actual Recalculate Style event takes little more than 5ms.

How can I find out what is causing that delay? I can't see what the other 15ms are

The total event time:

Chrome DevTools showing total time of jQuery function call

The "Recalculate Style" event within the jQuery function

Chrome DevTools showing split of timing for Recalculate Style event

Stack before "Recalculate Style"

Chrome DevTools showing stack for Recalculate Style event

like image 868
Pete Avatar asked Nov 10 '22 16:11

Pete


1 Answers

The other nested events which make up that total 22.93ms should be listed just after the Recalculate Style event. For example, below you can see that there is a Function Call which takes a total of 9ms. The purple number shows rendering time and the yellow number shows scripting time.

Parent event

If you dismiss the popup, you can see that every event which makes up that call is detailed below it.

nested events

like image 154
T Nguyen Avatar answered Nov 14 '22 22:11

T Nguyen