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

Allow to specify 'xhprof.output_dir' without xhprof available #96

Open Vincent-- opened 7 years ago

Vincent-- commented 7 years ago

If the xhprof extension is not installed, ini_get() doesn't work but get_cfg_var() still return the value:

php > print_r(ini_get('xhprof.output_dir'));
php > print_r(get_cfg_var('xhprof.output_dir'));
/test/

This allow to use the UI with tideways for instance or on a separate server.