Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
ããã«ã¡ã¯ãtanakaã§ããä»æ¥ã¯PhpStorm ã§ãXdebugã®ãªã¢ã¼ããããã°ç°å¢ãä½ãã«å¼ãç¶ãã¦ããããã¡ã¤ã©æ©è½ãç´¹ä»ãã¾ãã Xdebugã®ãããã¡ã¤ã©æ©è½ã¨PhpStorm Xdebugã®ãããã¡ã¤ã©æ©è½ã¨ããã®ã¯ã1ã»ãã·ã§ã³ã®éã«èªã¿è¾¼ãã PHPã¹ã¯ãªãããé¢æ°ã®å®è¡ã«ããã£ãæéãéè¨ãããã°ã¨ãã¦ä¿åããæ©è½ã§ãã PhpStorm ã®ãããã¡ã¤ã©æ©è½ã¯ããªã¢ã¼ããããã°ãããã·ã³ãã«ã§ããXdebugã§ãããã¡ã¤ã«ä¿åã®æ©è½ãæå¹ã«ãã¦ããã©ã¦ã¶ã«ã¦éçºç°å¢ã®ãµã¤ãã表示ãã¾ããããããã¨ç¹å®ã®ãã£ã¬ã¯ããªã«ãcachegrind.out.12345ããªã©ã®ãã¡ã¤ã«åã§ãã°ãä¿åããã¾ãã®ã§ãPhpStormã®ã¡ãã¥ã¼ããéãã¨ããããããã表示ãã¦ããããã¨ãããã®ã§ãã æ¬å®¶ããã°ã®æ°æ©è½ç´¹ä»ã§ã¯"Xdebug profiler integration"(
PHPã®ãããã¡ã¤ã©ã¼ãXHProfããç´¹ä»ããã¦ããã å ãã¿ã¯phpspotéçºæ¥èªããã åã¯ãXdebugã¨WinCacheGrindã§ãããã¡ã¤ã«ã§ããããXHProfã ã¨ä¸åº¦è¨å®ããã°ãã©ã¦ã¶ã ãã§ãããã£ãªã³ã°ã§ããããã§ã¼ä¾¿å©ã ã¨ããããã§ãæ©éãµã¼ãã¼ï¼CentOS 5.4ï¼ã«ã¤ã³ã¹ãã¼ã«ãã¦ã¿ãã ã¤ã³ã¹ãã¼ã« å ¬å¼ããã¥ã¡ã³ã ï¼ï¼ã½ã¼ã¹ããã¦ã³ãã¼ã cd /root wget http://pecl.php.net/get/xhprof-0.9.2.tgz ï¼ï¼makeãã¦ã¤ã³ã¹ãã¼ã« tar xvfz xhprof-0.9.2.tgz cd xhprof-0.9.2/extension/ phpize ./configure make make install make test ï¼ï¼php.iniãç·¨é vi /etc/php.ini [xhprof] ex
ãããã§ãããã¹ãããã⪠èªå·±ç´¹ä»ããªã¢ã«(ããããã°)ãæ¸ããï¼ä¸å®ã«ãªããã¨ãå¤ããªã£ãã誰ãæªããªãâ¦ä¿ºãæªããããããã£ã¦ããã ããã§ããåã«è¿ã¥ãã»ã©ãæãããªãã»ã©å«ãããããªãã¨æãããâ¦ããä¸å®å®ã«ãªã£ã¦ãã¾ã£ã¦ããè²´æ¹ã¯ä¿ºã®åã«ãã¦ããã¾ãã?
ãµã¼ãä¸ã§åãã¦ãã©ã®phpãéããï¼ã調ã¹ããããPhpTopãã ããµã¼ãç£è¦ã«è¶ 使ãããtopã³ãã³ãã®ã¾ã¨ããã¨ããã¨ã³ããªã§æ§ã ãªtopã³ãã³ããç´¹ä»ããã®ã§ãããphptopãªããã®ãæ°ãã«çºè¦ããã®ã§ãç´¹ä»ã å ·ä½çã«åºæ¥ããã¨ã¯ãä»ãµã¼ãã§åãã¦ãããã®ãæå®ããæéã§ããã£ã¨ãã¢ã¯ã»ã¹ãå¤ãphpãCPUãå¤ãæ¶è²»ãã¦ããphpãã¡ã¢ãªãå¤ã使ã£ã¦ããphpã¨ãã£ããã®ãéé ã«ã½ã¼ãã§ããã¨ãããã®ã§ãã ãµã¼ãä¸ã§å¤ãã®phpãåãã¦ãããã©ããè² è·ãé«ããã©ã©ããéãã®ãããããããªãã¨ããå ´åã«ä½¿ãã¾ãã top ã³ãã³ãã§ã¯ httpd ãåãã¦ããããããåãããªãã®ã§ phper ãªæ¹ã§è² è·ã«ãæ©ã¿ã®æ¹ã¯ä½¿ã£ã¦ã¿ãã®ãããããã ãã¨ãã°ã $ phptop -t 15 -s mem ã®ããã«å®è¡ããã¨ã15å以å ã§ãã¡ã¢ãªãå¤ã使ã£ã¦ããé ã«ã½ã¼ããå¯è½ã
Webä¸ã§ä½ãèå³ã®ãã人ãURLãè¦ã¤ããã¨ãããã®ãµã¤ãä¸ã§ä¸è¨ã®ããã¯ãã¼ã¯ã¬ãããå®è¡ãã㨠ããã®äººãä»ã«ã©ããªãµã¼ãã¹ãå©ç¨ãã¦ããããã©ããªãµã¤ããæã£ã¦ãããããæ¬ãµã¤ãããæ¢ãäºãã§ãã¾ããã©ããã試ããã ããã
ï¼æå¾ãå°ã追è¨ãã¾ããï¼ æè¿ãæ¬æ¥ãæã«ãªã£ã¦ãã & é£ä¼ç¶ãã ã£ãã®ã§ãã²ã¨ã¤Webãµã¼ãã¹ãä½ã£ã¦ã¿ã¾ããã http://fooo.name/ ã§ãã©ããªç©ãªã®ã ã¨è¨ãã¨ãWebä¸ã§èª°ãæ°ã«ãªã人ãè¦ã¤ããã¨ãã«ããã®äººããä»ã«ã©ããªãã¼ã¸ãæã£ã¦ããï¼ãã¨ããæ å ±ãæ¢ããã¨ãã§ãã¾ãï¼éãè¯ããã°ï¼ å ·ä½çã«ã¯ããã®ããã¯ãã¼ã¯ã¬ãã ãFooo.nameããæ¢ããã使ã£ã¦ãããã®ãå¤ãæãã¨æãã¾ã ä½ãé©å½ãªWebãµã¤ãä¸ã§ãã®ããã¯ãã¼ã¯ã¬ãããå®è¡ããã¨ããã®ãµã¤ãã«é¢é£ããURLãæ¢ã表示ãã¾ãã è¦ã¤ãã£ãå ´å : http://twitter.com/tkmrãæ¤ç´¢ ç¡äºé¢é£ããURLãè¦ã¤ãã£ãå ´åã¯ãä»ã®ãã¼ã¸ãè¦ã¦åãããããLivedoorReaderã§ãã¾ã¨ãã¦è³¼èªããããªã³ã¯ãè¨ãã¦ããã®ã§ãç·ãããå ¨é¨ã¾ã¨ãã¦è³¼èªããã®ãè¯ãã¨æãã¾ãã æ®å¿µã
iddy.jp 2024 èä½æ¨©. ä¸è¨±è¤è£½ ãã©ã¤ãã·ã¼ããªã·ã¼
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}