From e1bee0847d0843ca028106dc8940df72e8690eb1 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 6 Jul 2022 15:24:52 +0200 Subject: indexamajig: Add profiling and last_task info for ZMQ fetch --- src/im-sandbox.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/im-sandbox.c b/src/im-sandbox.c index 1e4a95a6..5c4629ce 100644 --- a/src/im-sandbox.c +++ b/src/im-sandbox.c @@ -450,12 +450,16 @@ static int run_work(const struct index_args *iargs, Stream *st, if ( sb->zmq_params != NULL ) { + profile_start("zmq-fetch"); + set_last_task(sb->shared->last_task[cookie], "ZMQ fetch"); do { pargs.zmq_data = im_zmq_fetch(zmqstuff, &pargs.zmq_data_size); } while ( pargs.zmq_data_size < 15 ); ok = 1; + profile_end("zmq-fetch"); + /* The filename/event, which will be 'fake' values in * this case, still came via the event queue. More * importantly, the event queue gave us a unique -- cgit v1.2.3