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.