distributed 2021.10.0

Parameters
profile(self, key=None, start=None, stop=None, workers=None, merge_workers=True, plot=False, filename=None, server=False, scheduler=False)

Parameters

key : str

Key prefix to select, this is typically a function name like 'inc' Leave as None to collect all data

start : time
stop : time
workers : list

List of workers to restrict profile information

server : bool

If true, return the profile of the worker's administrative thread rather than the worker threads. This is useful when profiling Dask itself, rather than user code.

scheduler : bool

If true, return the profile information from the scheduler's administrative thread rather than the workers. This is useful when profiling Dask's scheduling itself.

plot : boolean or string

Whether or not to return a plot object

filename : str

Filename to save the plot

Collect statistical profiling information about recent work

Examples

This example is valid syntax, but we were not able to check execution
>>> client.profile()  # call on collections
... client.profile(filename='dask-profile.html') # save to html file
See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /distributed/client.py#3362
type: <class 'function'>
Commit: