-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the definition filename/line to each function #31
Conversation
call graph: changed color of arrows/edges to grey for better readability of the labels
fixes PR preinheimer#20 when using randomly generated run ids
Ignore build artifacts from Git
call graph: changed color of arrows/edges to grey for readability
Example code and output: <?php
xhprof_enable();
function helloWorld() {
echo "hello world";
}
helloWorld();
helloWorld();
$out = xhprof_disable();
var_dump($out); And output:
|
what's the advantage of this over using reflection and manipulating the payload returned by xhprof_disable()? the extension should be as simple as possible and avoid anything that could be done natively in php. |
This project has a new maintainer, Phacility. We worked with the original developers and maintainers of XHProf at Facebook until 2011/2012. We recently offered to take over maintenance because we use XHProf heavily in our software (Phabricator) while Facebook is now focused on the HHVM platform and relies on XHProf much less than it once did. I'm trying to clear out the backlog of open requests and issues. I agree with @billf that this is better done in PHP with reflection than in the extension itself, unless there is some strong argument against that approach. I think it would tentatively be OK to provide support for this in the APIs that manage results, but since we just took over the project I'm hesitant about API changes until we have a chance to review the state of things. If you'd like to proceed: sign the CLA (https://secure.phabricator.com/L28), implement this with Reflection as a convenience wrapper which operates on the results of |
phacility#31 Fix macOS time benchmark
Also defines a boolean key called "internal" to easily check internal vs
userland and therefore easily handle lack of filename/line keys.
The intention is to allow reporting tools (e.g. xhgui) to show/link to
original source code (or say, source on github)
An option would be to pull in the line_start and line_end to allow
easier extraction of just the function from source files.
(Also includes the change in #30 as I ran into issues debugging without that)