From ac1a648ff518e0aa92cb14773b617829081a75d0 Mon Sep 17 00:00:00 2001
From: Siri Hansen
Date: Wed, 14 Sep 2016 18:19:16 +0200
Subject: [ttb] Add option queue_size to tracer/2
This sets the maximum queue size for the IP trace driver which is used
when tracing to shell and/or {local,File}.
Also, change the default queue size set by dbg:trace_port/2 to 200.
---
lib/runtime_tools/doc/src/dbg.xml | 2 +-
lib/runtime_tools/src/dbg.erl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
(limited to 'lib/runtime_tools')
diff --git a/lib/runtime_tools/doc/src/dbg.xml b/lib/runtime_tools/doc/src/dbg.xml
index db04bfdf7b..95f74d4607 100644
--- a/lib/runtime_tools/doc/src/dbg.xml
+++ b/lib/runtime_tools/doc/src/dbg.xml
@@ -954,7 +954,7 @@ Error: fun containing local erlang function calls ('is_atomm' called in guard)\
as the tuple {drop, N} where N is the number of consecutive messages
dropped. In case of heavy tracing, drop's are likely to occur,
and they surely occur if no client is reading the trace
- messages.
+ messages. The default value of QueSize is 200.
diff --git a/lib/runtime_tools/src/dbg.erl b/lib/runtime_tools/src/dbg.erl
index c0d4665bda..f17aa528ed 100644
--- a/lib/runtime_tools/src/dbg.erl
+++ b/lib/runtime_tools/src/dbg.erl
@@ -427,7 +427,7 @@ trace_port(file, Filename) ->
trace_port1(file, Filename, nowrap);
trace_port(ip, Portno) when is_integer(Portno) ->
- trace_port(ip,{Portno,50});
+ trace_port(ip,{Portno,200});
trace_port(ip, {Portno, Qsiz}) when is_integer(Portno), is_integer(Qsiz) ->
fun() ->
--
cgit v1.2.3