Decorators#

ccat_data_transfer.decorators.get_peak_memory_usage(process: Process) int[source]#

Get peak memory usage in a platform-independent way

ccat_data_transfer.decorators.track_metrics(operation_type: str, additional_tags: Dict[str, str] | None = None) Callable[source]#

Decorator to track metrics for data transfer operations with integrated resource usage

Parameters:
  • operation_type (str) – Type of operation being performed (e.g., ‘transfer’, ‘calibration’, ‘processing’)

  • additional_tags (Dict[str, str], optional) – Additional tags to include in the metrics

Overview#

Reusable decorators for common patterns in the data transfer system.

Key Components#

  • Function decorators

  • Class decorators

  • Common patterns and utilities