tags:

views:

37

answers:

1

The WPF profiling tool Perforator can display the frame rate of a running WPF program. Does any know precisely what it is measuring about the program to calculate this figure, and if it possible for a program to measure its own frame rate in the same way?

+1  A: 

If I got you properly you are looking for CompositionTarget.Rendering event.

Take a look on the sample: How to: Render on a Per Frame Interval Using CompositionTarget

Anvaka