spdl.pipeline.config.diagnostic_mode_num_sources

diagnostic_mode_num_sources() int[source]

Get the number of source items to use for diagnostic mode profiling.

Returns:

The number of items specified by the SPDL_PIPELINE_DIAGNOSTIC_MODE_NUM_ITEMS environment variable, or 1000 if not set.

Note

This value is used by profile_pipeline() when running in diagnostic mode to determine how many source items to process during profiling.