Skip to content

Commit e6244ce

Browse files
committed
opt(trace):1.10.13, 修改Trace::enable()指定AsyncPipe的配置项,扩大管道缓冲
1 parent 67b8fb0 commit e6244ce

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

modules/trace/sink.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ bool Sink::enable()
105105
using namespace std::placeholders;
106106

107107
util::AsyncPipe::Config config;
108+
config.buff_size = 2048;
109+
config.buff_min_num = 2;
110+
config.buff_max_num = 50;
111+
config.interval = 1000;
112+
108113
async_pipe_.initialize(config);
109114
async_pipe_.setCallback(std::bind(&Sink::onBackendRecvData, this, _1, _2));
110115
is_enabled_ = true;

version.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
# TBOX版本号
2222
TBOX_VERSION_MAJOR := 1
2323
TBOX_VERSION_MINOR := 10
24-
TBOX_VERSION_REVISION := 12
24+
TBOX_VERSION_REVISION := 13

0 commit comments

Comments
 (0)