revrt.utilities.monitoring.dask_performance_report#

dask_performance_report(prefix, out_dir=None)[source]#

Context manager for generating a Dask performance report

Parameters:
  • prefix (str) – Prefix to use for the performance report filename, which will be saved as an HTML file in the specified output directory.

  • out_dir (path-like, optional) – Path to the directory where the performance report should be saved. If not provided, the context manager will not generate a report and will simply yield without doing anything. By default, None.

Returns:

object – A context manager that generates a Dask performance report when entered, and saves it to the specified output directory with a filename based on the provided prefix. A UUID is appended to the filename to avoid collisions across multiple invocations. If no output directory is specified, the context manager will do nothing and simply yield without generating a report.