You are here

function xhprof_path_for_run in XHProf 7

2 calls to xhprof_path_for_run()
xhprof_path_for_symbol in ./xhprof.module
xhprof_profiler_report in ./xhprof.inc
Analyze raw data & generate the profiler report (common for both single run mode and diff mode).

File

./xhprof.module, line 547

Code

function xhprof_path_for_run($run1, $run2 = NULL) {

  // NFI why the original xhprof code defaults run2 to 0, but it's simpler to
  // use it here than put more conditionals elsewhere.
  if ($run2 === NULL || $run2 === 0) {
    $path = XHPROF_PATH . '/' . $run1;
  }
  else {
    $path = XHPROF_PATH . '/diff/' . $run1 . '/' . $run2;
  }
  return $path;
}