Beispiel #1
0
 /**
  * Extract information from $inFile and store in preprocessed form in $outFile
  * using the (~20x) faster binary preprocessor
  *
  * @param string $inFile Callgrind file to read
  * @param string $outFile File to write preprocessed data to
  * @return bool True if binary preprocessor was executed
  */
 static function binaryParse($inFile, $outFile)
 {
     $preprocessor = Webgrind_Config::getBinaryPreprocessor();
     if (!is_executable($preprocessor)) {
         return false;
     }
     $cmd = escapeshellarg($preprocessor) . ' ' . escapeshellarg($inFile) . ' ' . escapeshellarg($outFile);
     foreach (Webgrind_Config::$proxyFunctions as $function) {
         $cmd .= ' ' . escapeshellarg($function);
     }
     exec($cmd);
     return true;
 }