Debugging with request info // profiling php


How is it possible to find out which uri request caused specific error?

I’m constantly getting “out of memory” error but I cannot find out with which pages… If I random pages myself I dont get any error…

Also, how do you prefer to profile your php applications?

I need to optimize it for memory usage, and its really hard to work on optimization when you cannot see the actual impact on the application performance.

Any help is welcomed.


Look at PHP xdebug and for deep analysis go on and create cachegrind files viewable with wincachegrind (windows) or their equivalents for other OS.