{"id":1092,"date":"2015-11-29T20:39:57","date_gmt":"2015-11-30T00:39:57","guid":{"rendered":"https:\/\/gonzalo.aro.cl\/blog\/?p=1092"},"modified":"2015-11-29T20:44:05","modified_gmt":"2015-11-30T00:44:05","slug":"instalando-xhprof-para-profiling-de-php","status":"publish","type":"post","link":"https:\/\/gonzalo.aro.cl\/blog\/2015\/11\/29\/instalando-xhprof-para-profiling-de-php\/","title":{"rendered":"Instalando xhprof para profiling de PHP"},"content":{"rendered":"<p>Una  de las herramientas para hacer profiling en PHPes xhprof. Al momento de escribir este articulo estaba en su versi\u00f3n 0.9.4<\/p>\n<p>Los pasos a seguir en su instalacion en mi caso en CEntOS son:<\/p>\n<pre class=\"brush: bash\">\r\nyum install graphviz\r\nwget https:\/\/pecl.php.net\/get\/xhprof-0.9.4.tgz\r\ntar xzf xhprof-0.9.4.tgz \r\ncd xhprof-0.9.4\/extension\/\r\nphpize\r\n.\/configure\r\nmake\r\nmake install\r\n<\/pre>\n<p>Luego editas el INI<\/p>\n<pre class=\"brush: bash\">\r\nvi \/etc\/php.d\/xhprof.ini\r\n<\/pre>\n<p>Le estableces<\/p>\n<pre class=\"brush: bash\">\r\n[xhprof]\r\nextension=xhprof.so\r\nxhprof.output_dir=\"\/tmp\/xhprof\"\r\n<\/pre>\n<p>Antes de reiniciar apache crea la carpeta para que guarde los datos del profiling<\/p>\n<pre class=\"brush: bash\">\r\ncd \/tmp\r\nmkdir xhprof\r\nchown apache.apache xhprof\/\r\nln -s \/var\/log\/xhprof-0.9.4\/xhprof_html xhprof\r\nsystemctl restart httpd\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Una de las herramientas para hacer profiling en PHPes xhprof. Al momento de escribir este articulo estaba en su versi\u00f3n 0.9.4 Los pasos a seguir en su instalacion en mi caso en CEntOS son: yum install graphviz wget https:\/\/pecl.php.net\/get\/xhprof-0.9.4.tgz tar xzf xhprof-0.9.4.tgz cd xhprof-0.9.4\/extension\/ phpize .\/configure make make install Luego editas el INI vi \/etc\/php.d\/xhprof.ini [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61,16,4,15,8,47],"tags":[],"class_list":["post-1092","post","type-post","status-publish","format-standard","hentry","category-apache","category-centos","category-desarrollo","category-linux","category-optimizacion","category-php"],"_links":{"self":[{"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/posts\/1092"}],"collection":[{"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/comments?post=1092"}],"version-history":[{"count":2,"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/posts\/1092\/revisions"}],"predecessor-version":[{"id":1094,"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/posts\/1092\/revisions\/1094"}],"wp:attachment":[{"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/media?parent=1092"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/categories?post=1092"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/tags?post=1092"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}