Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add extra information to the Symfony2 profiler timeline

My application uses AWS DynamoDB and I want to be able to track the time the Dynamo request takes, just like it would if I was using Doctrine or Propel.

Some controllers also access a bunch of custom services, ideally I'd be able to track the time each of them take as well.

Is there a way to add some hooks into my code before and after these blocks of code to track the time and add it into the profiler timeline?

like image 710
greg Avatar asked Oct 22 '22 20:10

greg


1 Answers

i think you could use this new component "Stop watch"

http://symfony.com/blog/new-in-symfony-2-2-new-stopwatch-component

like image 146
Julien Rollin Avatar answered Oct 28 '22 23:10

Julien Rollin