Questions tagged [xhprof]

XHProf is a profiling extension for PHP light weight enough to be run in production

XHProf is a profiling extension for PHP developed by Facebook to return sufficient profile details to diagnose problems, while still being sufficiently light weight to be run in production.

The extension itself returns nested arrays containing performance information, and is capable of storing them in a file on disk. Using a GUI can make using and interpreting the data much easier.


Documentation :

61 questions
1
vote
3 answers

When using xhprof profiling PHP code, how to prevent it from destroying the Ajax call from the JavaScript client?

When I am using xhprof profiling PHP code, it works fine. I reference the documentation written by Lorenzo Alberton, http://techportal.inviqa.com/2009/12/01/profiling-with-xhprof/. But you know that we always have many Ajax calls in a web…
Leon
  • 2,810
  • 5
  • 21
  • 32
1
vote
0 answers

How to use Drupal xhprof to profile node save?

Using Drupal xhprof, when saving a node after edit, the page goes to the node view page. So the profiling result of the page is the view page. I want to profile the "save" operation which seems slow. How can I achieve that?
Hao
  • 6,291
  • 9
  • 39
  • 88
1
vote
2 answers

xhprof not working for php rabbitmq consumers

I have rabbitmq consumers written in php with symfony2-framework, and I'm trying to see the inner workings and issues of the system with xhprof. Problem is that it's not saving anything into the mongodb. Mongo is totally empty. I've tried to set the…
GotBatteries
  • 1,346
  • 1
  • 19
  • 28
1
vote
1 answer

How to use xhgui with MAMP for wordpress?

I am quite new to apache and PHP. I currently have a wordpress running locally (MacOS) with MAMP. I use xhgui (https://github.com/perftools/xhgui) which works fine. For instance, it profiles itself when I put auto_prepend_file =…
MoeSattler
  • 6,684
  • 6
  • 24
  • 44
1
vote
1 answer

Drupal performance file_scan_directory/opendir taking over 500ms

After profiling drupal7.34 instance using XHProf I see that the opendir function called by file_scan_dir which recurses to 15 depth is taking long execution time. file_scan_dir is in turn called by drupal_system_listing (3 calls) Function Calls …
user3043805
  • 245
  • 2
  • 10
1
vote
0 answers

Which is more accurate xhprof or microtime

I'm trying to measure execution time of a function. I tried the following code snippet $duration = microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"]; $hours = (int)($duration/60/60); $minutes = (int)($duration/60)-$hours*60; $execution_time =…
user3860307
1
vote
0 answers

Efficient profiling with XHProf on YII framework

How could I setup XHProf besides my yii project in efficient way? I don't have any problem on setting up XHProf on my app; the problem is XHProf do NOT see my application as an yii framework app; it sees it as a whole united app which its…
Hossein Jazayeri
  • 143
  • 1
  • 12
1
vote
2 answers

Can't install Xhprof in PHP 5.4

I'm getting the following error when trying to use xhprof in PHP 5.4 PHP Warning: PHP Startup: xhprof: Unable to initialize module Module compiled with module API=20090626 PHP compiled with module API=20100525 It looks like I have some conflict…
vicmarq
  • 197
  • 1
  • 11
1
vote
1 answer

Error when using XHProf and XHGui

I have installed and configured XHGui as per the instructions here: http://www.sitepoint.com/the-need-for-speed-profiling-with-xhprof-and-xhgui/ However, when I try to profile a page I see an error inserting into the details table (have truncated…
codecowboy
  • 9,835
  • 18
  • 79
  • 134
1
vote
0 answers

PHP extension (XHProf) installation problems with PHP 5.5.3

Recently I have upgraded my PHP on Ubuntu 10.04 to the lastest 5.5.3 version, and XHProf profiler stops working. I have compliled last version of xhprof PHP extension (either from official pecl site or from facebook's github repo), and receive the…
zavg
  • 10,351
  • 4
  • 44
  • 67
1
vote
0 answers

xhprof walltime always 0 microseconds

Installed xhprof and everything is working fine, except that the wall-time is always 0 microseconds. This is what the summary reports: Total Incl. Wall Time (microsec): 0 microsecs Total Incl. CPU (microsecs): 1,078,125 microsecs Total Incl.…
Dirk McQuickly
  • 2,099
  • 1
  • 17
  • 19
1
vote
2 answers

Tracking memory leaks in a large codebase

I have a relatively large PHP-codebase (thousands of lines) for an application built with CodeIgniter. To be able to trace preformance issues and to be able to generate statistics and such, the developement-servers run Xhprof. This works fine,…
Zar
  • 6,786
  • 8
  • 54
  • 76
1
vote
1 answer

xhprof chart description

For profiling, I have started to use XHprof. Nice tool! But, one question I can't answer by myself relates to chart content. Is there anyone who knows what color box and width of arrows on XHProf generated charts mean? UPDATED It was not last…
user1016265
  • 2,307
  • 3
  • 32
  • 49
1
vote
2 answers

xhprof on WampServer 2.2

I am trying to get XHProf working on my WampServer. I have downloaded the dll from: http://dev.freshsite.pl/php-extensions/xhprof/file/details/xhprof-0103-for-php-53-vc9.html and renamed to xhprof.dll in C:\wamp\bin\php\php5.3.9\ext (Which is the…
Andrew Hall
  • 3,058
  • 21
  • 30
0
votes
2 answers

Documentation of xhprof php profiler needed

The last days I was trying to install and run the xhprof. I finally made it and I think that it brings up very interesting information. I also installed graphviz and I can generate nice graphs, but I would like to find a documentation explaining…
x_maras
  • 2,177
  • 1
  • 25
  • 34