ãã¬ã¼ã ã°ã©ããèªãã®ã¯ç°¡åã§ã¯ããã¾ããã
ç·´ç¿ãå¿
è¦ã§ããã§ãããã¡ãã£ã¨ããã³ããããã¾ããããã§ã¯ãããç´¹ä»ãã¾ãã
ãã¬ã¼ã ã°ã©ããã¦ã©ã¼ã¿ã¼ãã©ã¼ã«ãã£ã¼ããå¼ã°ãã種é¡ã®å¯è¦åãè¦ãªãã§1æ¥ãéãããã¨ã¯ãã»ã¨ãã©ããã¾ããã大æµã¯SpeedscopeãChrome DevToolsã§ããããã£ãå¯è¦åãç®ã«ãã¦ãã¾ãã
èæ¸ã®å¤ããã¯ã¼ã¯ã·ã§ããã®ä¸ã§ãã¬ã¼ã ã°ã©ãã®èªã¿æ¹ãæãã¦ããã¨ãããã§ã¤ã¾ã¥ã人ãè¦ããã¾ãããã¬ã¼ã ã°ã©ããèªãã§ç解ããã®ã¯ãããç¨åº¦ã¯ã¹ãã«ã®è©±ã§ããã¹ãã«ã身ã«ã¤ããã«ã¯ã絶ãéãªãç·´ç¿ãå¿
è¦ã§ãã
ãã ããã¬ã¼ã ã°ã©ããèªãã¹ãã«ã¯ãµãã¹ãã«ã«å解ã§ãã¾ãããã®å ´åã«æãéè¦ã ã¨ç§ãèããã®ã¯ããã©ã®ãã¬ã¼ã ãéè¦ã§æå³ãããã®ããå¤æã§ãããã¹ãã«ã§ãã
ããã»ã¹ã¯ãXããªç§ãã¨ã«åæ¢ãã¾ããåæ¢ãããã¨ãããã»ã¹ã®ç¾å¨ã®ã¹ã¿ãã¯ãè¨é²ããã¾ããä¾ãã°ããã¬ã¼ã Aã¯ãã¬ã¼ã Bãå¼ã³ããã¬ã¼ã Bã¯ãã¬ã¼ã Cãå¼ã³åºãã¨ãã£ãå
·åã§ãã念ã®ããã«è¨ã£ã¦ããã¨ãå®è¡ã¹ã¿ãã¯ã¨ã¯ãä¾å¤ã®ããã¯ãã¬ã¼ã¹ãè¦ãã¨ããªã©ã«è¡¨ç¤ºããã¦ãããã®ã®ãã¨ã§ããä¾å¤ã¯ã¹ã¿ãã¯ãä¸åº¦ã ããã£ããã£ãã¾ãããããã©ã¼ãã³ã¹ãããã¡ã¤ã©ã¯ããªç§åä½ã®ä¸å®ééã§ã¹ã¿ãã¯ããã£ããã£ãã¾ãã
ãã¬ã¼ã ã°ã©ãã¯ããããã£ã¦è¨é²ãããã¹ã¿ãã¯ã並ã¹ããã¨ã§ããã®ããã»ã¹ãè¦è¦åãããã®ã§ãããã®è¦è¦åã®çµæããçãã®ããã«è¦ãããã¨ãããããã¬ã¼ã ã°ã©ããã¨å¼ã°ããããã«ãªãã¾ããããã®å¯è¦åãããã¹ã¦ã®ã¹ã¿ãã¯ãã¬ã¼ã ã®ã親ããä¸ã§ã¯ãªãä¸ã«ãªãããã«è¡ãã¨ãæ»ã®ããã«è¦ããã®ã§ãã¦ã©ã¼ã¿ã¼ãã©ã¼ã«ãã£ã¼ããã«ãªãã¾ããã©ã¡ããåããã¨ãªãã§ããã©ããSpeedscopeãDevToolsã¯ã¦ã©ã¼ã¿ã¼ãã©ã¼ã«å½¢å¼ã§ãããå¯è¦åããã®ã§ãããç§ã¯æ°ã«ããã«ãã¬ã¼ã ã°ã©ãã¨å¼ãã§ãã¾ãã
ãã¬ã¼ã ã°ã©ããå¹æçã«èªãã®ã«å¿
è¦ãªã®ã¯ãã©ã®ãã¬ã¼ã ãç¡è¦ããã°ããããç解ãããã¨ã§ããã©ã®ã¹ã¿ãã¯ã«ããç§ãããã¹ã¹ã«ã¼ãã¨å¼ã¶ãã¬ã¼ã ãã¤ã¾ãåºæ¬çã«ä½ãããªããã¬ã¼ã ãåå¨ãã¾ãããã¹ã¹ã«ã¼ãã¬ã¼ã ã¯ç°¡åã«è¦åãããã¾ãã
- ... ãã¹ã¹ã«ã¼ãã¬ã¼ã ã¯ããã¬ã¼ã å
ã§å®éã«è²»ããããæéãé常ã«çãã§ãããããããã¬ã¼ã ã¯ã決ãã¦ã¹ã¿ãã¯ã®æä¸ä½ã«ã¯ãªããåãã¬ã¼ã ãå¼ã³åºããã¨ã ãããã¦ãã¾ããããã¯é常ããã®ãã¬ã¼ã ã大ãããã¨ãè¡ã£ã¦ããªãã®ã示ãè¯ãææ¨ã§ãã
- ... ãã¹ã¹ã«ã¼ãã¬ã¼ã ã¯ãã«ã¼ããã¬ã¼ã ã®è¿ãããã¬ã¼ã ã°ã©ãã®ãã¼ã¹é¨åã«ããã¾ããã¹ã¿ãã¯ã®ãä¸ãã«è¡ãã°è¡ãã»ã©ãã¢ããªã±ã¼ã·ã§ã³ã³ã¼ãã«è¿ããªããèªã価å¤ã®ãããã¬ã¼ã ã¨ãªãã¾ãã
- ... ãã¹ã¹ã«ã¼ãã¬ã¼ã ã¯ãä¾åé¢ä¿ã®ä¸ã«ããã¾ãããã¬ã¼ã ã®ã½ã¼ã¹ã³ã¼ãã®ä½ç½®ãè¦ã¦è¦ã¾ããããããã¯ãã©ã¤ãã©ãªã®å
é¨ãæãã¦ããã§ãããããããã¨ãã¢ããªã±ã¼ã·ã§ã³å
ãæãã¦ããã§ããããï¼ ã¢ããªã±ã¼ã·ã§ã³ãã£ã¬ã¯ããªã«ããã»ã¨ãã©ãã¹ã¦ã®ãã¬ã¼ã ã¯éè¦ã§ããã§ããããã°ãã°ä¾åé¢ä¿ã姿ã表ããé¢ç½ããªããã¬ã¼ã ããããã追å ãã¾ãã
éã«ãã©ã®ãã¬ã¼ã ãèå³æ·±ãããç¥ã£ã¦ããã®ã大åã§ãã
èå³æ·±ããã¬ã¼ã ã¨ã¯ãã½ã¼ã¹ã³ã¼ãã®ä½ç½®ãã¢ããªã±ã¼ã·ã§ã³ã®ã«ã¼ããã£ã¬ã¯ããªã«ãããã¬ã¼ã ã§ãããã¬ã¼ã ã°ã©ããã¼ã«ã¯ãç°ãªãã½ã¼ã¹ã³ã¼ããã£ã¬ã¯ããªãç°ãªãè²ã§è¦è¦åããã®ãä¸è¬çã§ããã©ã®è²ããã¢ããªã±ã¼ã·ã§ã³ã®ãã£ã¬ã¯ããªå
ããæå³ããã®ããç´ æ©ãæ¢ããä»ã®ã»ã¨ãã©ã®è²ã¯ç¡è¦ãã¦è¦å§ããã®ãè¯ãã§ãããã
åãã¬ã¼ã ãå¼ã³åºãã¦ããªãããèªå·±å®çµããã¦ããæéãé·ããã¬ã¼ã ãããã¯ãã¹ã¿ãã¯ã®ããã«ä¸ã®ãã¬ã¼ã ããªããã¨ãæå³ãã¾ãã
ãããããã¬ã¼ã ãããç§ããã¬ã¼ã ã°ã©ããè¦ãéã«æãæéãè²»ããå ´æã§ãã
ãã¬ã¼ã ã°ã©ãã®ãã£ããã£ã¯ãæè¿ã¯é常ã«ç°¡åã§ãä½ããããã¡ã¤ãªã³ã°ãããã¨ãã¦ãããã«ä¾åãã¾ãã
- rack-mini-profilerã¯ãRailsã®ããã¯ã¨ã³ããªã¯ã¨ã¹ãã®ãã¬ã¼ã ã°ã©ããçæãã¦ããã¾ãã
- Chrome DevToolsã¯ããã©ã¦ã¶ã®åä½ããã¼ã¸ã®ãã¼ãã«ã¤ãã¦ãããã©ã¼ãã³ã¹ã¿ãã§åªãããã¬ã¼ã ã°ã©ããçæãã¾ãã
- stackprofã¯åä½ã§ä»»æã®Rubyã³ã¼ãã®ãã¬ã¼ã ã°ã©ããçæã§ãã¾ãã
- TestProfã¯ãRubyã®ãã¹ãã¹ã¤ã¼ãã®ãã¬ã¼ã ã°ã©ããåå¾ããããã«ä½¿ãã¾ãã
ãã¬ã¼ã ã°ã©ãã¯ããã©ã¼ãã³ã¹åä¸ã®ããã®éè¦ãªãã¼ã«ã§ããã§ãããæåã«ãããç解ã§ããªãã¦ããæ°ã«ããªãã§ãã ãããã¿ããªãåãã§ãã試ãç¶ããè¦ç¶ãã¦ããã°ãæçµçã«ã¯å¹æçã«ä½¿ç¨ããã®ã«å¿
è¦ãªããã¿ã¼ã³èªèããå¦ã¹ãã¯ãã§ãã
ããã§ã¯ãã¾ãæ¥é±ã
- Nate
|