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 925 forks source link

Add xhprof_frame_begin & xhprof_frame_end #52

Open bd808 opened 9 years ago

bd808 commented 9 years ago

Add functions for sub-function profiling.

This functionality was back ported from HHVM's internal XHProf implementation. There has been one small change from the HHVM implementation with the addition of the optional $wrapped boolean parameter to xhprof_frame_begin which is used to fix a bug in the upstream XhprofFrame implementation which mis-attibutes function calls in a frame introduced via XhprofFrame to XhprofFrame::__construct rather than the name provided for the frame.

Fixes #51

bd808 commented 9 years ago

Ping

bd808 commented 8 years ago

:birthday: I meant to ping on 2015-11-28, but better late than never as the Hallmark® cards tell me.