perftools / php-profiler

A PHP profiling library based on XHGUI Data Collector
MIT License
147 stars 26 forks source link

Add xdebug tracing support #33

Open glensc opened 4 years ago

glensc commented 4 years ago

This uses xdebug 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 much usable, as seems not possible to programmatically to start profiling:

v3 docs: