core.monitor
- class core.monitor.Chrono(name='chrono object', unit='m')[source]
Bases:
objectname: str
unit “m” | “s” | “ms” | “us”
- class core.monitor.Monitor(name: str = 'monitor object', time: Chrono = None, ram: RAM = None)[source]
Bases:
objectMeta-structure to monitor some variables in a script
- core.monitor.dask_graph_stats(ds) DataFrame[source]
Get statistics about the dask graph for each variable in the dataset ds.
- Returns a pandas DataFrame with the following columns:
var: The name of the variable.
graph_len: The length of the dask graph for the variable.
n_chunks: The number of chunks in the dask graph for the variable.
per_chunk: graph_len/n_chunks.
Example: >>> print(dask_graph_stats(ds).to_string(index=False))