Layer Profiler is a standalone or pure Python importable module to help you profile your programs interactively or offline. It is a single file which has no dependencies beyond PyGTK+. It hooks into your PyGTK, pyglet, or Pygame application with minimum fuss. The only dependencies are on Python 2.4 and PyGTK 2.12.

Layer Profiler is licensed under the GNU LGPL.

There are two ways to use the Layer Profiler. The first is to run it as a standalone executable. In this case the only thing it is capable of profiling interactively is itself. However, you can still load and search previously saved profiles. Or you can import it, start a GTK+ main loop, and instantiate a GProfiler window. It can then profile the application that started it.

Some convenience methods are provided to use GTK+ in your application.