aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-01-29 11:53:10 +0100
committerBjörn Gustavsson <[email protected]>2016-01-29 11:53:10 +0100
commit3eb54b2053f76d3d47eed8774153be0f7a5016c3 (patch)
treea0b4b6d8cbd3dc65e758691c95c01e58944efe20
parent88394f33141921d62ecb0ec98d707a7857811555 (diff)
parent27b489736a6bd147bd694e83fc0948cbf9d2bce6 (diff)
downloadotp-3eb54b2053f76d3d47eed8774153be0f7a5016c3.tar.gz
otp-3eb54b2053f76d3d47eed8774153be0f7a5016c3.tar.bz2
otp-3eb54b2053f76d3d47eed8774153be0f7a5016c3.zip
Merge branch 'gomoripeti/dbg/read_ahead/OTP-13279' into maint
* gomoripeti/dbg/read_ahead/OTP-13279: Use file read buffering in dbg:trace_client
-rw-r--r--lib/runtime_tools/src/dbg.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/runtime_tools/src/dbg.erl b/lib/runtime_tools/src/dbg.erl
index d2a7d734c1..22b531e6ee 100644
--- a/lib/runtime_tools/src/dbg.erl
+++ b/lib/runtime_tools/src/dbg.erl
@@ -1269,7 +1269,7 @@ gen_reader(follow_file, Filename) ->
%% Opens a file and returns a reader (lazy list).
gen_reader_file(ReadFun, Filename) ->
- case file:open(Filename, [read, raw, binary]) of
+ case file:open(Filename, [read, raw, binary, read_ahead]) of
{ok, File} ->
mk_reader(ReadFun, File);
Error ->
@@ -1294,7 +1294,7 @@ mk_reader(ReadFun, Source) ->
mk_reader_wrap([]) ->
[];
mk_reader_wrap([Hd | _] = WrapFiles) ->
- case file:open(wrap_name(Hd), [read, raw, binary]) of
+ case file:open(wrap_name(Hd), [read, raw, binary, read_ahead]) of
{ok, File} ->
mk_reader_wrap(WrapFiles, File);
Error ->