- pecl installation did work with PHP 5.3.8 (but not with 5.3.6)
- make sure webserver can read the profiles (path + files)
- use web client and profile generator of same version (symlink)
- use composer to load xhprof vendor
- wrap Xhprofile class
- use configurable base profile for iterative tuning
- log URLs with single and compare mode
- assure conditions remain constant (calling params, system load, network ...)
- spread resources usage, know your bottlenecks
http://127.0.0.1/xhprof_html/?run=50115a12c6086&source=cm_see__uab&sort=excl_wt
- optimize database configuration (mysql tuning primer, driver and query)
- use DataMapper instead of dynamic getters, cache as soon all static data are set
- improve date filters, e. g. based on indices
- use xpath queries for smaller SimpleXmlElements, try to reduce XmlReader reads
- cut off XML that is not needed file base # sed
- replace generalized / defensive framework methods / add riskier ones
- exclude data as soon as possible: try to find and avoid invalid objects in advance
- http://pinboard.in/u:timheil/t:xhprof
- https://github.com/timheil/xhprof (with
composer.json
) - web search
xhprof_enable