You are here

public function XHProfDiffParser::__construct in XHProf 6

Same name and namespace in other branches
  1. 7 XHProfLib/XHProfDiffParser.php \XHProfDiffParser::__construct()

File

XHProfLib/XHProfDiffParser.php, line 9

Class

XHProfDiffParser

Code

public function __construct($data1, $data2) {
  $this->data = $data;
  $this->parser1 = new XHProfParser($data1);
  $this->parser2 = new XHProfParser($data2);
  $this->parser1
    ->getTotals();
  $this->parser2
    ->getTotals();
}