Skip to content

Commit 3d7c1dc

Browse files
committed
report: add queue info for udp
1 parent 937520a commit 3d7c1dc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/node_report_utils.cc

+8-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,14 @@ void WalkHandle(uv_handle_t* h, void* arg) {
261261
writer->json_keyvalue("writable",
262262
static_cast<bool>(uv_is_writable(&handle->stream)));
263263
}
264-
264+
if (h->type == UV_UDP) {
265+
writer->json_keyvalue(
266+
"writeQueueSize",
267+
uv_udp_get_send_queue_size(reinterpret_cast<uv_udp_t*>(h)));
268+
writer->json_keyvalue(
269+
"writeQueueCount",
270+
uv_udp_get_send_queue_count(reinterpret_cast<uv_udp_t*>(h)));
271+
}
265272
writer->json_end();
266273
}
267274

0 commit comments

Comments
 (0)