php-profiler
php-profiler copied to clipboard
A PHP profiling library based on XHGUI Data Collector
> Since June 15th, 2021, the building on travis-ci.org is ceased. Please use travis-ci.com from now on.
Hi, @glensc , first of all thank you for supporting this package
I'm running this within a php 8.1 alpine docker image and noticed that the cumulative counts are way off.  I'm using the `Profiler::PROFILER_TIDEWAYS_XHPROF` profiler. ```php $builtIns = (int) ($_GET['xhprof_builtins']...
https://github.com/NoiseByNorthwest/php-spx SPX is a PHP profiling extension with its built-in web UI, but it should be possible just to capture samples with it.
This uses xdebug [execution_trace]: [execution_trace]: https://xdebug.org/docs/execution_trace ``` TRACE START [2020-07-30 05:48:57] 2.7023 9969960 -> Xhgui\Profiler\Profilers\XdebugProfiler->disable() /Users/glen/scm/xhgui/php-profiler/tests/TestCase.php:25 4.1043 9969960 -> xdebug_stop_trace() /Users/glen/scm/xhgui/php-profiler/src/Profilers/XdebugProfiler.php:27 4.1044 9970016 TRACE END [2020-07-30 05:48:58] ``` Probably not...
Idea from tideways profiler: - https://github.com/tideways/profiler/blob/v1.4.2/src/main/Tideways/Profiler/CurlBackend.php#L109-L124
This adds an example to Detect XDebug triggers and skip profiling: - https://github.com/perftools/xhgui/issues/104 See https://github.com/perftools/xhgui/issues/104#issuecomment-54754662
Improve https://github.com/perftools/php-profiler/pull/75