aboutsummaryrefslogtreecommitdiff
path: root/src/indexamajig.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2016-03-01 02:59:38 -0800
committerThomas White <taw@physics.org>2016-03-01 03:37:24 -0800
commitc780ec9c40325c257fff73c1d330c5f4d81baea9 (patch)
tree2c633bddd6479c59b595037c879ea3227d1bec93 /src/indexamajig.c
parent0c1a3d2a45878b544c0f30135fc9d1240f88889a (diff)
indexamajig: Wall clock profiling
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r--src/indexamajig.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index afc41a17..9b32900f 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -140,6 +140,7 @@ static void show_help(const char *s)
" --no-refls-in-stream Do not record integrated reflections in the stream.\n"
" --int-diag=<cond> Show debugging information about reflections.\n"
" --no-refine Skip the prediction refinement step.\n"
+" --profile Show timing data for performance monitoring.\n"
"\nLow-level options for the felix indexer:\n\n"
" --felix-options Change the default arguments passed to the indexer.\n"
" Given as a list of comma separated list of \n"
@@ -243,6 +244,7 @@ int main(int argc, char *argv[])
iargs.fix_bandwidth = -1.0;
iargs.fix_divergence = -1.0;
iargs.felix_options = NULL;
+ iargs.profile = 0;
/* Long options */
const struct option longopts[] = {
@@ -270,6 +272,7 @@ int main(int argc, char *argv[])
{"no-revalidate", 0, &iargs.no_revalidate, 1},
{"check-hdf5-snr", 0, &iargs.check_hdf5_snr, 1},
{"no-refine", 0, &no_refine, 1},
+ {"profile", 0, &iargs.profile, 1},
/* Long-only options which don't actually do anything */
{"no-sat-corr", 0, &iargs.satcorr, 0},