Outils pour utilisateurs

Outils du site


informatique:php:performance

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
informatique:php:performance [14/02/2011 13:24] cyrilleinformatique:php:performance [23/07/2016 13:49] (Version actuelle) – [Profiling] nalyser les données du profiler de XDebug avec webgrind cyrille
Ligne 17: Ligne 17:
 Profile you code before you start optimizing it! Otherwise it would be like travelling around a foreign city with signs written in an unreadable language witout any map or GPS. You’ll probably get somewhere, but you wouldn’t have any idea where you are, where you should go and how far are you from the place you need to be. Profiling would allow you to know which parts of code are worth investing into and which aren’t. You can use [[http://www.zend.com/en/products/studio/|Zend Studio/Debugger]] or [[/informatique/php/XDebug|Xdebug]] for that. Profile you code before you start optimizing it! Otherwise it would be like travelling around a foreign city with signs written in an unreadable language witout any map or GPS. You’ll probably get somewhere, but you wouldn’t have any idea where you are, where you should go and how far are you from the place you need to be. Profiling would allow you to know which parts of code are worth investing into and which aren’t. You can use [[http://www.zend.com/en/products/studio/|Zend Studio/Debugger]] or [[/informatique/php/XDebug|Xdebug]] for that.
  
-[[http://morefedora.blogspot.com/2008/05/profile-memory-usage-of-php-scripts.html|Profile memory usage of PHP scripts]] with xdebug +  * https://docs.moodle.org/dev/Profiling_PHP 
-  xdebug.auto_trace = On +    * xdebug.profiler_enable_trigger = 1 with XDEBUG_PROFILE set in  GET/POST or COOKIE 
-  xdebug.show_mem_delta = On+    * ou xdebug.profiler_enable = 1 
 +  * [[http://morefedora.blogspot.com/2008/05/profile-memory-usage-of-php-scripts.html|Profile memory usage of PHP scripts]] with xdebug 
 +    xdebug.auto_trace = On 
 +    xdebug.show_mem_delta = On 
 + 
 +Analyser les données du profiler de XDebug avec [[https://github.com/jokkedk/webgrind#readme|webgrind]]. 
 ==== Caching ==== ==== Caching ====
  
informatique/php/performance.1297686257.txt.gz · Dernière modification : 19/05/2012 00:15 (modification externe)

Sauf mention contraire, le contenu de ce wiki est placé sous les termes de la licence suivante : CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki