libframetime
============

A preloadable library, able to dump the frame times of any OpenGL application on Linux, on
any driver.

By default, the timing is written into /tmp/libframetime.out, but you can specify an 
alternate file with the LIBFRAMETIME_FILE env var.


Usage
-----

----
LD_PRELOAD=path/to/libframetime.so dota2
----

Or with a custom output file:
----
LIBFRAMETIME_FILE=/tmp/dota2.frametime LD_PRELOAD=path/to/libframetime.so dota2
----

The accompanying awk script can be used to calculate the usual stats:
----
$ stats.awk < libframetime.out
----
----
Min/avg/max frametimes (us):    166 / 625.626 / 5955
Min/avg/max FPS:                167.926 / 1598.4 / 6024.1
----

libframetime
============

A preloadable library, able to dump the frame times of any OpenGL application on Linux, on
any driver.

By default, the timing is written into /tmp/libframetime.out, but you can specify an 
alternate file with the LIBFRAMETIME_FILE env var.


Usage
-----

----
LD_PRELOAD=path/to/libframetime.so dota2
----

Or with a custom output file:
----
LIBFRAMETIME_FILE=/tmp/dota2.frametime LD_PRELOAD=path/to/libframetime.so dota2
----

The accompanying awk script can be used to calculate the usual stats:
----
$ stats.awk < libframetime.out
----
----
Min/avg/max frametimes (us):    166 / 625.626 / 5955
Min/avg/max FPS:                167.926 / 1598.4 / 6024.1

50/90/95/99 percentiles (us):   410 / 434 / 589 / 5018
----

Update readme with latest stats output
Update readme with latest stats output
