aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2022-07-06 15:24:52 +0200
committerThomas White <taw@physics.org>2022-07-06 15:24:52 +0200
commite1bee0847d0843ca028106dc8940df72e8690eb1 (patch)
treecbaf304e6bbae33fdf5496ac70af96780ff46a5d /src
parent5b087416a02a53c61d0827ee4bad50370320a0fb (diff)
indexamajig: Add profiling and last_task info for ZMQ fetch
Diffstat (limited to 'src')
-rw-r--r--src/im-sandbox.c4
1 files changed, 4 insertions, 0 deletions
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