Utilities
=========

Utility modules providing logging, memory management, performance monitoring,
and other support functions.

.. note::
   For complete API documentation of all utility modules, see :doc:`../xpcs_toolkit.utils`.

.. currentmodule:: xpcsviewer.utils

Logging
-------

Advanced logging configuration with hierarchical loggers and custom formatters.
See :mod:`xpcsviewer.utils.logging_config` for details.

Memory Management
-----------------

Intelligent memory management with LRU caching, memory pressure detection,
and automatic cleanup. See :mod:`xpcsviewer.utils.memory_manager` for details.

Performance Monitoring
----------------------

Real-time performance tracking for optimization and debugging.
See :mod:`xpcsviewer.utils.performance_monitor` for details.

Reliability
-----------

Comprehensive error handling, validation, and fallback mechanisms.
See :mod:`xpcsviewer.utils.reliability` for details.

Data Processing
---------------

Optimized data processing utilities including lazy loading, streaming,
and vectorized operations. See:

- :mod:`xpcsviewer.utils.lazy_loader`
- :mod:`xpcsviewer.utils.streaming_processor`
- :mod:`xpcsviewer.utils.vectorized_roi`
