commit 7d1a5571c1137e9ac66e71b1e60c29e8a0206b31
parent e5de8f0cbfbec9d745182bd45b585751cd57ec5a
Author: Brendan Gregg <brendan.d.gregg@gmail.com>
Date: Wed, 25 Mar 2015 10:20:17 -0700
Merge pull request #49 from GHugo/master
stackcollapse-perf.pl reads either from STDIN or first argument.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stackcollapse-perf.pl b/stackcollapse-perf.pl
@@ -76,7 +76,7 @@ GetOptions( 'inline' => \$show_inline,
'context' => \$show_context)
or die("Error in command line arguments\n");
-foreach (<STDIN>) {
+foreach (<>) {
if(/^# cmdline.+\.\.(\S+)( .+|$)/) {
$the_pname = $1;
}