Does anyone know how the Instruments return the fps rate?

Hi, as the title going, does anyone know the mechanism of Instruments for returning the frame rate(in the "Core Animation" metrics)?


Like from hardware side(check the screen refresh rate) or software side(check every frame execution time)? Or where could I find related info about this tools?


Thanks