server: Add dtrace probe for stream_send inside update_fb_done
parent
14fed5c182
commit
b0799f7490
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue