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
0
votes
2 answers

How to use a profiler in PHP to see which files are being loaded

I'm in the process of optimizing a Drupal application. The webserver root is on an NFS share, but I have opcode caching enabled, and so in theory all the php pages should be loaded into memory and I shouldn't experience any overhead with NFS. In…
0
votes
1 answer

xhprof-html won't show Run Report (No XHProf runs specified in the URL)

How do I show the Run Report for a given xhprof run using xhprof-html? I installed tideways-xhprof. apt-get install php-dev git clone "https://github.com/tideways/php-xhprof-extension.git" cd php-xhprof-extension phpize ./configure make make…
Michael Altfield
  • 2,083
  • 23
  • 39
0
votes
2 answers

XHProf profiling - How to get hierarchical profile?

I can see high CPU usage when I hit search URL of my Drupal application. I have enabled XHProf module and UProfiler extension on PHP5.6 to find the culprit function. But the report I am getting is giving me only the first level of functions which…
karthikeayan
  • 4,291
  • 7
  • 37
  • 75
0
votes
1 answer

PHP Fatal error: Unknown: Failed opening required '/home/user/pathto/header.php' after adding it as auto_prepend_file

My goal is to configure php profiling for local development website in Kubuntu 16.04. Installed tideways according to docs and checked it's installed correctly with: php --ri tideways_xhprof Created header.php with following contents
rok
  • 9,403
  • 17
  • 70
  • 126
0
votes
1 answer

How to install YaxGUI to work with tideways in Ubuntu?

I've just installed tideways (fork from xhprof), and found this GUI YaxGUI, the installation steps wasn't clear enough for me. Install your favourite mix of PHP and web server Install MySQL server Clone the project to some folder Map the sub…
0
votes
1 answer

exited on signal 11 xhprof

I have a big problem. I installed php5 extension XHprof on server (Ubuntu 14.04), and when I try to use it I have the 502 Bad Gateway. Logs of nginx are empty, and in php-fpm log I have this: [17-Jul-2017 19:20:25] WARNING: [pool www] child 8944…
0
votes
1 answer

xhprof not working wamp 2.2

I have downloaded the dll file from http://windows.php.net/downloads/pecl/releases/xhprof/0.10.6/ and kept the first 32 bit file at C:\wamp\bin\php\php5.3.13\ext and also include it in my php.ini file (as extension=php_xhprof.dll). But when I call…
0
votes
1 answer

How to identify the bottlenecks with Xhprof?

I have an issue with a very slow API call and want to find out, what it caused by, using Xhprof: the default GUI and the callgraph. How should this data be analyzed? What is the approach to find the places in the code, that should be optimized, and…
automatix
  • 14,018
  • 26
  • 105
  • 230
0
votes
0 answers

PHP is occasionally saturating my production web server CPU for 10 minutes - How can I examine the cause when the server is in this state?

My Apache PHP servers sometimes appear to become CPU bound for around 10 minutes and then go back to being normal. I've looked at these hosts in perf (system profiler) and it's all in PHP (5.6.11). We need to be able to profile the actual PHP code…
user2917346
  • 321
  • 1
  • 4
  • 9
0
votes
1 answer

XHPROF/XHGUI with apacheBench

I'm currently setting up a benchmark for different frameworks. I succesfully installed and configured XHProf and XHGui (from https://github.com/perftools/xhgui.git). So far everything is going well and I can execute my benchmarks through the…
Velixir
  • 88
  • 7
0
votes
1 answer

xhprof displaying empty run

I'm trying to profile a drupal website using xhprof. I manage to install it and configure drupal to use it (using the devel module) but I have a problem to visualize the result. First, for some reason I didn't manage to get the access rights to…
mb14
  • 22,276
  • 7
  • 60
  • 102
0
votes
4 answers

xhprof_enable is undefined, even after loading module in php.ini

I've installed xhprof but Apache is not loading the extension. The extension is loaded in the php.ini, but I get the following error: Fatal error: Call to undefined function xhprof_enable() in /home/bd/public_html/application/hooks/xhprof.php on…
0
votes
1 answer

Websphere j2ee app profiling like xhprof for PHP

I have used xhprof in php web app for profiling web request. xhprof shows nice callgraph with amount of time spent on specific method etc. I want to do similar thing for j2ee app in websphere. Do j2ee/websphere have any profiling library/plugin…
Amit Patil
  • 73
  • 12
0
votes
1 answer

what's wrong with graphviz in php-fpm mode?

I try to config a program use xhprof. When I use php-cli mode or php's built in webServer, the callgraph generate image works well. But When I use nginx+php-fpm, the dot exec at xhprof_generate_image_by_dot blocks forever. Then I install the pear…
user890973
  • 947
  • 2
  • 8
  • 12
0
votes
1 answer

XHPROF Error in the GUI. The ID remains to "-1"

I am currently testing XHPROF (wamp, windows xp), with this code: 0) { bar ($ x - 1); } } function foo () { for ($ idx = 0; $ idx <5; $ idx +…
fabrice
  • 1,399
  • 1
  • 15
  • 27