1

Profiling an entire application can be good for macro optimizations. But sometimes I want to optimize a specific package or library without other components interacting, with total isolation.

So I was thinking if phpunit has output for profiling tools like Webgrind? Or at least is there a way to generate call graphs and performance reports from code executed in my unit tests?

Please don't suggest to use microtime() or other php time functions and make manual benchmarks, this is too error prone.

marcio
  • 10,002
  • 11
  • 54
  • 83

1 Answers1

3

webgrind takes data from xdebug. You may want to read this

You probably also want to look at newRelic ~ if the PHP runs a webapp.

How do I set the 'dup' flag?

Community
  • 1
  • 1
Owen Beresford
  • 712
  • 4
  • 10
  • "Profiling an entire application can be good for macro optimizations. But sometimes I want to optimize a specific package or library without other components interacting" - No, I want to optimize my tested code not the testing code. – marcio Aug 26 '13 at 05:20