Closed beberlei closed 9 years ago
Add feature to xhprof_enable() allowing to pass whitelist of "functions" into the $options array, profiling only those functions:
xhprof_enable(0, array('functions' => array('strlen')); $data = xhprof_disable();
Will now only contain main() and main()==>strlen.
main()
main()==>strlen
Since xhprof puts a relation with a parent, the only parent to strlen in this case is main(). However if you have a list of many functions, there might be a function called between main() and strlen and it will be displayed as such.
strlen
Add feature to xhprof_enable() allowing to pass whitelist of "functions" into the $options array, profiling only those functions:
Will now only contain
main()
andmain()==>strlen
.Since xhprof puts a relation with a parent, the only parent to
strlen
in this case ismain()
. However if you have a list of many functions, there might be a function called betweenmain()
andstrlen
and it will be displayed as such.