Sometimes you want to know in live, how many Doctrine queries, memory usage, or others things while testing your Get REST api, here is a simple way to have your profiler.
The condition to have the profiler added is to output HTML, so we output HTML.
Solution found here: Paul Ferrett - Stack Overflow
To check your
DELETE requests, use Chrome Postman extension (a must-have tool), and then use the symfony2 Profiler history by clicking on “View last 10” button.