From b0799f74906d6cc78216e495eae4689b0ce329b5 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Fri, 3 Apr 2020 23:11:12 +0000 Subject: [PATCH] server: Add dtrace probe for stream_send inside update_fb_done --- src/server.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server.c b/src/server.c index 9c88fcc..69393a5 100644 --- a/src/server.c +++ b/src/server.c @@ -901,8 +901,10 @@ void on_client_update_fb_done(void* work) if (client->net_stream->state != STREAM_STATE_CLOSED) { struct rcbuf* payload = rcbuf_new(frame->data, frame->len); + DTRACE_PROBE1(neatvnc, send_fb_start, client); stream_send(client->net_stream, payload, on_write_frame_done, client); + DTRACE_PROBE1(neatvnc, send_fb_done, client); } else { client->is_updating = false; vec_destroy(frame);