Sunday, January 27, 2013

php performance Profiling

ProfilingSo you’ve done all the caching and query optimizations, and removed all
the system bottlenecks, but your code is still running too slow. Now you have to
face the music and admit that, actually, your code isn’t perfect and could be im-
226 PHP Master: Write Cutting-edge Code
proved. But you already did the best you could … so, now what? This is where
profiling comes in.
is the act of taking accurate time and/or memory measurements for every action
your code performs. This is then explored to determine where the bottlenecks lie.


There are two tools for profiling that are commonly used:

1. Xdebug
2. XHProf -XHGui

No comments:

Post a Comment