flamegraph

Fork of flamegraph without J***S*****.
git clone git://git.laack.co/flamegraph.git
Log | Files | Refs | README

commit 940533b934f438b40193d6dbb69689191fb6d3df
parent 30573bcae880c8408d004120ec62316b86efab23
Author: Brendan Gregg <brendan.d.gregg@gmail.com>
Date:   Tue,  7 Nov 2023 11:06:33 +1100

Merge pull request #174 from mattdudys/master

Minor fixes for stackcollapse-xdebug
Diffstat:
Mstackcollapse-xdebug.php | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/stackcollapse-xdebug.php b/stackcollapse-xdebug.php @@ -1,5 +1,6 @@ #!/usr/bin/php <?php +# # Copyright 2018 Miriam Lauter (lauter.miriam@gmail.com). All rights reserved. # # This program is free software; you can redistribute it and/or @@ -29,14 +30,14 @@ if (isset($args['h']) || isset($args['help'])) { 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.