{"id":401,"date":"2014-03-15T16:36:39","date_gmt":"2014-03-15T07:36:39","guid":{"rendered":"http:\/\/tech.akat.info\/?p=401"},"modified":"2014-09-16T01:13:29","modified_gmt":"2014-09-15T16:13:29","slug":"xdebug%e3%81%a7%e3%81%aephp%e3%83%87%e3%83%90%e3%83%83%e3%82%af%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=401","title":{"rendered":"xdebug\u3067\u306ePHP\u30c7\u30d0\u30c3\u30af\u65b9\u6cd5"},"content":{"rendered":"<h1>\u6982\u8981<\/h1>\n<p>PHP\u306e\u30b3\u30a2\u958b\u767a\u8005\u3067\u3042\u308bDerickRethans\u6c0f\u304c\u958b\u767a\u3057\u3066\u3044\u308b\u3001PHP\u306e\u30c7\u30d0\u30c3\u30b0\u7528\u30a8\u30af\u30b9\u30c6\u30f3\u30b7\u30e7\u30f3<\/p>\n<h1>xdebug\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5<\/h1>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@akat:\/home\/akat# uname -a\r\nLinux akat 3.2.0-60-generic #91-Ubuntu SMP Wed Feb 19 03:54:44 UTC 2014 x86_64 x86_64 x86_64 GNU\/Linux\r\nroot@akat:\/home\/akat# aptitude install php5-xdebug\r\n<\/pre>\n<h1>xdebug\u8a2d\u5b9a<\/h1>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@akat:\/home\/akat# vi \/etc\/php5\/cgi\/conf.d\/xdebug.ini\r\n======\r\nzend_extension=\/usr\/lib\/php5\/20090626\/xdebug.so\r\n;\u30d7\u30ed\u30d5\u30a1\u30a4\u30ea\u30f3\u30b0\u3092\u6709\u52b9\u306b\r\nxdebug.profiler_enable = 1\r\n;\u30d7\u30ed\u30d5\u30a1\u30a4\u30ea\u30f3\u30b0\u7d50\u679c\u306e\u51fa\u529b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\r\nxdebug.profiler_output_dir = &quot;\/var\/www\/akat.info\/tech\/htdocs\/download&quot;\r\n# %R\u306f\u30ea\u30af\u30a8\u30b9\u30c8URL\r\nxdebug.profiler_output_name = cachegrind.out.%Rlog\r\n# \u30ed\u30b0\u3092\u65e2\u5b58\u30ed\u30b0\u306e\u4e0a\u66f8\u304d\u3067\u306f\u306a\u304f\u3001\u8ffd\u52a0\u3059\u308b\r\nxdebug.profiler_append=1\r\n# 1\u306b\u3059\u308b\u3068\u3001XDEBUG_PROFILE GET\/POST\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3084\u30af\u30c3\u30ad\u30fc\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u4e00\u90e8\u30da\u30fc\u30b8\u306e\u307f\u30c7\u30d0\u30c3\u30af\u53ef\u80fd\u3089\u3057\u3044\r\n#xdebug.profiler_enable_trigger=1\r\n======\r\n<\/pre>\n<h1>xdebug\u89e3\u6790\u65b9\u6cd5<\/h1>\n<h2>WinCacheGrind<\/h2>\n<p>http:\/\/sourceforge.net\/projects\/wincachegrind\/<br \/>\n<a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/WinCacheGrind1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/WinCacheGrind1-300x200.png\" alt=\"WinCacheGrind1\" width=\"300\" height=\"200\" class=\"alignnone size-medium wp-image-402\" srcset=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/WinCacheGrind1-300x200.png 300w, https:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/WinCacheGrind1-624x417.png 624w, https:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/WinCacheGrind1.png 971w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nIXR_Server->call\u306b4\u79d2\u304b\u304b\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308b<br \/>\n\u968e\u5c64\u304c\u308f\u304b\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u304a\u308a\u3001\u3053\u308c\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3057\u3066\u9032\u3081\u3066\u3044\u304f\u3068\u3069\u3053\u304c\u91cd\u3044\u304b\u304c\u308f\u304b\u308b<br \/>\n\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\u304ccachegrind.out.\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b<\/p>\n<h2>KCachegrind<\/h2>\n<p>http:\/\/sourceforge.net\/projects\/precompiledbin\/<\/p>\n<p><a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/kcachegrind.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/kcachegrind-300x158.png\" alt=\"kcachegrind\" width=\"300\" height=\"158\" class=\"alignnone size-medium wp-image-405\" srcset=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/kcachegrind-300x158.png 300w, https:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/kcachegrind-1024x541.png 1024w, https:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/kcachegrind-624x329.png 624w, https:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/kcachegrind.png 1358w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n<a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/KCachegrind2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/KCachegrind2-300x159.png\" alt=\"KCachegrind2\" width=\"300\" height=\"159\" class=\"alignnone size-medium wp-image-408\" srcset=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/KCachegrind2-300x159.png 300w, https:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/KCachegrind2-1024x545.png 1024w, https:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/KCachegrind2-624x332.png 624w, https:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/KCachegrind2.png 1363w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nIncl.\uff1a\u7dcf\u5b9f\u884c\u6642\u9593\u30fbSelf\uff1a\u81ea\u5206\u81ea\u8eab\u306e\u5b9f\u884c\u306b\u304b\u304b\u3063\u305f\u6642\u9593<br \/>\nWinCacheGrind\u3088\u308a\u30b0\u30e9\u30d5\u30a3\u30ab\u30eb<br \/>\n\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\u3092callgrind.\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b<\/p>\n<h2>\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u7d44\u307f\u8fbc\u3093\u3067\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u6e2c\u5b9a<\/h2>\n<p>\u4ee5\u4e0b\u3092\u30bd\u30fc\u30b9\u306b\u8a18\u8f09\u3059\u308b<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\necho xdebug_memory_usage(), &quot;\\r\\n&quot;;\r\n<\/pre>\n<h1>\u53c2\u8003<\/h1>\n<p>http:\/\/www.plusmb.jp\/2009\/06\/26\/3923.html<br \/>\nhttp:\/\/metaboy.blog23.fc2.com\/blog-entry-993.html # \u7279\u5b9a\u306e\u30da\u30fc\u30b8\u3067\u30d7\u30ed\u30d5\u30a1\u30a4\u30e9\u3092\u5229\u7528\u3057\u305f\u3044\u5834\u5408<br \/>\nhttp:\/\/www.xdebug.org\/docs\/profiler<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 PHP\u306e\u30b3\u30a2\u958b\u767a\u8005\u3067\u3042\u308bDerickRethans\u6c0f\u304c\u958b\u767a\u3057\u3066\u3044\u308b\u3001PHP\u306e\u30c7\u30d0\u30c3\u30b0\u7528\u30a8\u30af\u30b9\u30c6\u30f3\u30b7\u30e7\u30f3 xdebug\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5 root@akat:\/home\/akat# uname -a Linux aka [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[22,2,9],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/401"}],"collection":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=401"}],"version-history":[{"count":9,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/401\/revisions"}],"predecessor-version":[{"id":427,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/401\/revisions\/427"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}