I decided to ask the same question in the list of WebKit developers and got a decent answer. I will repeat it here.
Basically, CSS animations in WebKit can either be rendered using one of two ways. Software rendering path or hardware path. In the case of the program path, the rendering cycle is based on a timer and, as such, using a timer and counting how fast the timer can fire, will give an approximate FPS measurement. In the case of a hardware path, the hardware will determine the path, and there is currently no way to collect this information.
I will rephrase the answer that I have, but I think that is his impetus.
Kevin source share