server: Add dtrace probe for stream_send inside update_fb_done

pull/30/head
Andri Yngvason 2020-04-03 23:11:12 +00:00
parent 14fed5c182
commit b0799f7490
1 changed files with 2 additions and 0 deletions

View File

@ -901,8 +901,10 @@ void on_client_update_fb_done(void* work)
if (client->net_stream->state != STREAM_STATE_CLOSED) { if (client->net_stream->state != STREAM_STATE_CLOSED) {
struct rcbuf* payload = rcbuf_new(frame->data, frame->len); 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, stream_send(client->net_stream, payload, on_write_frame_done,
client); client);
DTRACE_PROBE1(neatvnc, send_fb_done, client);
} else { } else {
client->is_updating = false; client->is_updating = false;
vec_destroy(frame); vec_destroy(frame);