You are here

public function ReportEngine::getReport in XHProf 8

Parameters

$url_params:

$source:

Run $run:

$wts:

$symbol:

$sort: 1 2

Return value

ReportInterface

File

src/XHProfLib/Report/ReportEngine.php, line 26

Class

ReportEngine
Provides report generator.

Namespace

Drupal\xhprof\XHProfLib\Report

Code

public function getReport($url_params, $source, Run $run, $wts, $symbol, $sort = 'wt', Run $run1 = NULL, Run $run2 = NULL) {
  $report = NULL;

  // specific run to display
  if ($run) {
    $parser = new Parser($run, $sort, $symbol);
    $report = new Report($parser);
  }
  else {
    if ($run1 && $run2) {
      $report = new DiffParser($url_params, $run1
        ->getSymbols(), '', $run2
        ->getSymbols(), '', $symbol, $sort, $run1, $run2);
      $report = new DiffReport($report);
    }
  }
  return $report;
}