Added a profiler

![profiler](https://f.cloud.github.com/assets/408368/1802144/68be5396-6bf8-11e3-8f65-f5abaaa340df.png)