jfjoch_writer: Add index analysis time + refactor saving profiling information
This commit is contained in:
@@ -93,16 +93,6 @@ void HDF5DataFilePluginMX::OpenFile(HDF5File &data_file, const DataMessage &msg,
|
||||
spot_count_ice.reserve(images_per_file);
|
||||
spot_count_indexed.reserve(images_per_file);
|
||||
spot_count_low_res.reserve(images_per_file);
|
||||
|
||||
indexing_time.reserve(images_per_file);
|
||||
spot_finding_time.reserve(images_per_file);
|
||||
integration_time.reserve(images_per_file);
|
||||
refinement_time.reserve(images_per_file);
|
||||
processing_time.reserve(images_per_file);
|
||||
bragg_prediction_time.reserve(images_per_file);
|
||||
preprocessing_time.reserve(images_per_file);
|
||||
compression_time.reserve(images_per_file);
|
||||
azint_time.reserve(images_per_file);
|
||||
}
|
||||
|
||||
void HDF5DataFilePluginMX::Write(const DataMessage &msg, uint64_t image_number) {
|
||||
@@ -152,16 +142,6 @@ void HDF5DataFilePluginMX::Write(const DataMessage &msg, uint64_t image_number)
|
||||
spot_count_ice[image_number] = msg.spot_count_ice_rings.value_or(0);
|
||||
spot_count_low_res[image_number] = msg.spot_count_low_res.value_or(0);
|
||||
|
||||
indexing_time[image_number] = msg.indexing_time_s.value_or(NAN);
|
||||
spot_finding_time[image_number] = msg.spot_finding_time_s.value_or(NAN);
|
||||
integration_time[image_number] = msg.integration_time_s.value_or(NAN);
|
||||
refinement_time[image_number] = msg.refinement_time_s.value_or(NAN);
|
||||
processing_time[image_number] = msg.processing_time_s.value_or(NAN);
|
||||
bragg_prediction_time[image_number] = msg.bragg_prediction_time_s.value_or(NAN);
|
||||
preprocessing_time[image_number] = msg.preprocessing_time_s.value_or(NAN);
|
||||
compression_time[image_number] = msg.compression_time_s.value_or(NAN);
|
||||
azint_time[image_number] = msg.azint_time_s.value_or(NAN);
|
||||
|
||||
if (indexing) {
|
||||
indexed[image_number] = msg.indexing_result.value_or(0);
|
||||
profile_radius[image_number] = msg.profile_radius.value_or(NAN);
|
||||
@@ -212,25 +192,6 @@ void HDF5DataFilePluginMX::WriteFinal(HDF5File &data_file) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!spot_finding_time.empty())
|
||||
data_file.SaveVector("/entry/MX/spotFindingTime", spot_finding_time.vec())->Units("s");
|
||||
if (!indexing_time.empty())
|
||||
data_file.SaveVector("/entry/MX/indexingTime", indexing_time.vec())->Units("s");
|
||||
if (!integration_time.empty())
|
||||
data_file.SaveVector("/entry/MX/integrationTime", integration_time.vec())->Units("s");
|
||||
if (!refinement_time.empty())
|
||||
data_file.SaveVector("/entry/MX/refinementTime", refinement_time.vec())->Units("s");
|
||||
if (!processing_time.empty())
|
||||
data_file.SaveVector("/entry/MX/processingTime", processing_time.vec())->Units("s");
|
||||
if (!bragg_prediction_time.empty())
|
||||
data_file.SaveVector("/entry/MX/braggPredictionTime", bragg_prediction_time.vec())->Units("s");
|
||||
if (!preprocessing_time.empty())
|
||||
data_file.SaveVector("/entry/MX/preprocessingTime", preprocessing_time.vec())->Units("s");
|
||||
if (!compression_time.empty())
|
||||
data_file.SaveVector("/entry/MX/compressionTime", compression_time.vec())->Units("s");
|
||||
if (!azint_time.empty())
|
||||
data_file.SaveVector("/entry/MX/azIntTime", azint_time.vec())->Units("s");
|
||||
|
||||
if (!strong_pixel_count.empty())
|
||||
data_file.SaveVector("/entry/MX/strongPixels", strong_pixel_count.vec());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user