*/ static function xdebugOutputDir() { $dir = ini_get('xdebug.profiler_output_dir'); if ($dir == '') { // Ini value not defined return realpath(Webgrind_Config::$profilerDir) . '/'; } return realpath($dir) . '/'; } /** * Writable dir for information storage */ static function storageDir() { if (!empty(Webgrind_Config::$storageDir)) { return realpath(Webgrind_Config::$storageDir) . '/'; } if (!function_exists('sys_get_temp_dir') || !is_writable(sys_get_temp_dir())) { # use xdebug setting return Webgrind_Config::xdebugOutputDir(); } return realpath(sys_get_temp_dir()) . '/'; } } if (!is_executable(Webgrind_Config::$dotExecutable)) { Webgrind_Config::$dotExecutable = exec('which dot'); } if (!is_executable(Webgrind_Config::$pythonExecutable)) { Webgrind_Config::$pythonExecutable = exec('which python'); }