commit b3eac8fea4052e5d180637f8d82dec8221cbf8b8
parent 182b24fb635345d48c91ed1de58a08b620312f3d
Author: Brendan Gregg <brendan.d.gregg@gmail.com>
Date: Tue, 8 Dec 2015 01:14:23 -0800
Merge pull request #76 from mephi42/stackcollapse-perf-pl-do-not-read-the-whole-input-file-into-memory
stackcollapse-perf.pl: do not read the whole input file into memory
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stackcollapse-perf.pl b/stackcollapse-perf.pl
@@ -135,7 +135,7 @@ my $pname;
#
# Main loop
#
-foreach (<>) {
+while (defined($_ = <>)) {
# find the name of the process launched by perf, by stepping backwards
# over the args to find the first non-option (no dash):