Skip to content
Permalink
Browse files

Merged pull request #498

  • Loading branch information...
derickr committed Aug 12, 2019
2 parents e9dda01 + a88fd7d commit 1948c21955dc1c25f6c535898bd65b5cf2fc0965
Showing with 7 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +6 −0 contrib/tracefile-analyser.php
@@ -34,6 +34,7 @@
/scan_makefile_in.awk
/config.guess
/*sw*
/contrib/*sw*
tags
/config.log
/libtool
@@ -50,6 +50,7 @@
$maxLen = strlen( $name );
}
}
$maxLen = max( $maxLen, 8 );
echo "Showing the {$elements} most costly calls sorted by '{$sortKey}'.\n\n";
@@ -132,6 +133,7 @@ public function parse()
{
$buffer = fgets( $this->handle, 4096 );
$read += strlen( $buffer );
$buffer = rtrim( $buffer, PHP_EOL );
$this->parseLine( $buffer );
$c++;
@@ -184,6 +186,10 @@ private function parseLine( $line )
$dTime = $time - $prevTime;
$dMemory = $memory - $prevMem;
if ( ! array_key_exists( $depth - 1, $this->stack ) )
{
$this->stack[$depth - 1] = array( '', 0, 0, 0, 0 );
}
$this->stack[$depth - 1][3] += $dTime;
$this->stack[$depth - 1][4] += $dMemory;

0 comments on commit 1948c21

Please sign in to comment.
You can’t perform that action at this time.