Skip to content

Commit

Permalink
report: add queue info for udp
Browse files Browse the repository at this point in the history
  • Loading branch information
theanarkh committed Aug 22, 2022
1 parent 937520a commit e5637f9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/node_report_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,14 @@ void WalkHandle(uv_handle_t* h, void* arg) {
writer->json_keyvalue("writable",
static_cast<bool>(uv_is_writable(&handle->stream)));
}

if (h->type == UV_UDP) {
writer->json_keyvalue("writeQueueSize",
uv_udp_get_send_queue_size(
reinterpret_cast<uv_udp_t*>(h)));
writer->json_keyvalue("writeQueueCount",
uv_udp_get_send_queue_count(
reinterpret_cast<uv_udp_t*>(h)));
}
writer->json_end();
}

Expand Down

0 comments on commit e5637f9

Please sign in to comment.