public function generate($log) { $file = GzipUtils::getLines($this->rawSummary); $lines = array(); foreach ($file as $line) { $this->processLine($lines, $line); } if ($this->hasLeak) { $lines[] = "<a href=\"php/getLeakAnalysis.php?id=" . $_GET["id"] . "\" target=\"_blank\">Analyze the leak.</a>"; } GzipUtils::writeToDb($log, implode("", $lines)); }
public static function getLines($run) { $log = array("_id" => $run['_id'], "type" => "raw"); ParallelLogGenerating::ensureLogExists($log, new self($run['log'])); return GzipUtils::getLines($log); }