array(XHPROF_STRING_PARAM, ''), 'wts' => array(XHPROF_STRING_PARAM, ''), 'symbol' => array(XHPROF_STRING_PARAM, ''), 'sort' => array(XHPROF_STRING_PARAM, 'wt'), // wall time 'run1' => array(XHPROF_STRING_PARAM, ''), 'run2' => array(XHPROF_STRING_PARAM, ''), 'source' => array(XHPROF_STRING_PARAM, 'xhprof'), 'all' => array(XHPROF_UINT_PARAM, 0), ); // pull values of these params, and create named globals for each param xhprof_param_init($params); /* reset params to be a array of variable names to values by the end of this page, param should only contain values that need to be preserved for the next page. unset all unwanted keys in $params. */ foreach ($params as $k => $v) { $params[$k] = $$k; // unset key from params that are using default values. So URLs aren't // ridiculously long. if ($params[$k] == $v[1]) { unset($params[$k]); } } echo ""; echo "XHProf: Hierarchical Profiler Report"; xhprof_include_js_css(); echo ""; echo ""; $vbar = ' class="vbar"'; $vwbar = ' class="vwbar"'; $vwlbar = ' class="vwlbar"'; $vbbar = ' class="vbbar"'; $vrbar = ' class="vrbar"'; $vgbar = ' class="vgbar"'; $xhprof_runs_impl = new XHProfRuns_Default(); displayXHProfReport($xhprof_runs_impl, $params, $source, $run, $wts, $symbol, $sort, $run1, $run2); echo ""; echo "";