Skip to content

Commit

Permalink
make usage match script filename
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdudys committed Jul 10, 2018
1 parent 18c3dea commit 5f7d38b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stackcollapse-xdebug.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@

function usage($exit = 0) {
echo <<<EOT
stackcollapse-php.php collapse php function traces into single lines.
stackcollapse-xdebug.php collapse php function traces into single lines.
Parses php samples generated by xdebug with xdebug.trace_format = 1
and outputs stacks as single lines, with methods separated by semicolons,
and then a space and an occurrence count. For use with flamegraph.pl.
See https://github.com/brendangregg/FlameGraph.
USAGE: ./stackcollapse-php.php [OPTIONS] infile > outfile
USAGE: ./stackcollapse-xdebug.php [OPTIONS] infile > outfile
-h --help Show this message
-t Weight stack counts by duration using the time index in the trace (default)
-c Invocation counts only. Simply count stacks in the trace and sum duplicates, don't weight by duration.
Expand Down

0 comments on commit 5f7d38b

Please sign in to comment.