phacility / xhprof

XHProf is a function-level hierarchical profiler for PHP and has a simple HTML based user interface.
http://pecl.php.net/package/xhprof
Apache License 2.0
2.6k stars 924 forks source link

Add option to write to file #78

Closed clever-systems closed 8 years ago

clever-systems commented 9 years ago

Scenario: PHP crashes due to a segfault or whatever.

IF xhprof had an option to write to file, this could be a huge help to debug whitescreens.

That a write-to-file might be horribly slow in the first place is no problem for this use case.

epriestley commented 8 years ago

This is technically complicated (for example, the serialization format isn't streamable) and far afield from the normal responsibilities of a profiler, so I don't anticipate supporting this.