Skip to content

Commit b3eac8f

Browse files
committed
Merge pull request brendangregg#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
2 parents 182b24f + 408d7a2 commit b3eac8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stackcollapse-perf.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ sub inline {
135135
#
136136
# Main loop
137137
#
138-
foreach (<>) {
138+
while (defined($_ = <>)) {
139139

140140
# find the name of the process launched by perf, by stepping backwards
141141
# over the args to find the first non-option (no dash):

0 commit comments

Comments
 (0)