aboutsummaryrefslogtreecommitdiff
path: root/src/im-asapo.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2022-05-03 13:48:05 +0200
committerThomas White <taw@physics.org>2022-06-02 12:15:38 +0200
commit7cae8ed0e420173b17aec11329411d4284de32cd (patch)
tree8b8c0e879743294dea94d5ace2daa4707d36d7b5 /src/im-asapo.c
parentcad70f87ea137f7e60a36d9e8aa45f3f03c11a4a (diff)
ASAP::O: Add profiling bits
Diffstat (limited to 'src/im-asapo.c')
-rw-r--r--src/im-asapo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/im-asapo.c b/src/im-asapo.c
index f336a735..48a32ee4 100644
--- a/src/im-asapo.c
+++ b/src/im-asapo.c
@@ -39,6 +39,7 @@
#include <image.h>
#include <utils.h>
+#include <profile.h>
#include "im-asapo.h"
@@ -262,8 +263,10 @@ void *im_asapo_fetch(struct im_asapo *a, size_t *pdata_size,
meta = asapo_new_handle();
data = asapo_new_handle();
+ profile_start("asapo-get-next");
asapo_consumer_get_next(a->consumer, a->group_id, &meta, &data,
a->stream, &err);
+ profile_end("asapo-get-next");
if ( asapo_error_get_type(err) == kEndOfStream ) {
select_next_stream(a);
asapo_free_handle(&err);