Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
technosophos committed Mar 4, 2011
1 parent 9a2c965 commit 39846ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TraceParser.php
Expand Up @@ -47,8 +47,8 @@ public function parse() {
// Get start/end messages
$count = count($fields);
if ($count == 2) {
$timestamp = $fields[2];
if (strpos('TRACE END') === 0) {
$timestamp = $fields[1];
if (strpos('TRACE END', $fields[0]) === 0) {
foreach ($this->observers as $o) $o->endEntry($timestamp);
}
else {
Expand Down
1 change: 1 addition & 0 deletions src/trace4func
Expand Up @@ -26,6 +26,7 @@ if (empty($report)) {
die("No symbols found");
}

$counter = 0;
foreach ($report as $trace) {
++$counter;
print $counter . ".\t";// . "\t" . array_shift($trace) . PHP_EOL . "\t";
Expand Down

0 comments on commit 39846ee

Please sign in to comment.