Talk in English - US at ZendCon 2014
View Slides: http://ilia.ws/files/xhprof-zendcon2014.pdf
Short URL: https://joind.in/talk/b4129
(QR-Code (opens in new window))
Profiling with XHProf
Comments are closed.
Great presentation. Will definitely be implementing XHProf.
You recommend running this in production? Also what is the best way to clean the database? Just truncate all the tables?
XHProf can definately be used in production, that is what I would say it is intended for. However I would not recommend profiling every request, every 10th request is more than enough for most sites, for particularly busy sites, even every 100th request should be sufficient.
When it comes to clearing out the database, truncating table (there is only one table XHProf uses) is certainly the easiest way, but you loose all history. One suggestion is to delete all data past 90 days, or delete 90% of data past 90 days.