aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2022-04-05 16:52:35 +0200
committerThomas White <taw@physics.org>2022-04-05 16:54:12 +0200
commit689cbeabf1294f0c9458d4058244833915e78f4c (patch)
tree928a2b021516b99914015796701d3ccc0e4bf514
parentd5eeb82d1cb1dd8e43a386962279632b80e8c89b (diff)
indexamajig: Fix profiling when using streamed data
-rw-r--r--libcrystfel/src/image.c5
-rw-r--r--libcrystfel/src/image.h3
-rw-r--r--src/process_image.c3
3 files changed, 7 insertions, 4 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c
index e428b606..7b86588d 100644
--- a/libcrystfel/src/image.c
+++ b/libcrystfel/src/image.c
@@ -1382,7 +1382,8 @@ struct image *image_read_data_block(const DataTemplate *dtempl,
DataSourceType type,
int serial,
int no_image_data,
- int no_mask_data)
+ int no_mask_data,
+ TimeAccounts *taccs)
{
struct image *image;
char tmp[64];
@@ -1406,7 +1407,7 @@ struct image *image_read_data_block(const DataTemplate *dtempl,
image->data_source_type = type;
- if ( do_image_read(image, dtempl, no_image_data, no_mask_data, NULL) ) {
+ if ( do_image_read(image, dtempl, no_image_data, no_mask_data, taccs) ) {
image_free(image);
ERROR("Failed to load image\n");
return NULL;
diff --git a/libcrystfel/src/image.h b/libcrystfel/src/image.h
index 8bcd0a57..78fd01cd 100644
--- a/libcrystfel/src/image.h
+++ b/libcrystfel/src/image.h
@@ -235,7 +235,8 @@ extern struct image *image_read_data_block(const DataTemplate *dtempl,
DataSourceType type,
int serial,
int no_image_data,
- int no_mask_data);
+ int no_mask_data,
+ TimeAccounts *taccs);
extern void image_free(struct image *image);
extern int image_read_header_float(struct image *image, const char *from,
diff --git a/src/process_image.c b/src/process_image.c
index f0d315e7..20d6c9c1 100644
--- a/src/process_image.c
+++ b/src/process_image.c
@@ -198,7 +198,8 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs,
iargs->data_format,
serial,
iargs->no_image_data,
- iargs->no_mask_data);
+ iargs->no_mask_data,
+ taccs);
if ( image == NULL ) return;
} else {
image = file_wait_open_read(pargs->filename, pargs->event,