-2

I want something like this:

Simplest way to profile a PHP script

But I can't install APD because I use windows and can't find any Windows binary for APD :(

Can I do that with XDebug? If yes, how?

Right now I use WAMP with PHP 5.3.9 (has Xdebug enabled)

Community
  • 1
  • 1
Alex
  • 66,732
  • 177
  • 439
  • 641
  • http://xdebug.org/download.php ?!? – malletjo Feb 12 '12 at 19:53
  • Most IDEs have integrated xdebug support, and oftentimes also the profiler option. Oftentimes you want to configure a profiler dump and use [webgrind or kcachegrind](http://affinitybridge.com/blog/code-optimization-xdebug-and-kcachegrind) to see a pretty printout. – mario Feb 12 '12 at 19:57

1 Answers1

1

SET those variable :

 xdebug.profiler_enable = 1
 xdebug.profiler_output_dir = /some/directory

Open your the generated file with something like kcachegrind on linux, you could try WinCacheGrind on windows.

More information here.

malletjo
  • 1,766
  • 16
  • 18