parallel.pool.ActivityMonitor
Description
Use ActivityMonitor
to monitor and collect data on worker activity in
a parallel pool.
Monitoring data includes:
The type of parallel construct, such as
parfor
,parfeval
, andspmd
.The amount of data (in bytes) the client and workers send and receive.
The time each worker spends processing their portion of the parallel code.
You can retrieve the monitoring results using the results
function
and view the monitoring data in the Pool
Dashboard.
Creation
Syntax
Description
creates an monitor
= parallel.pool.ActivityMonitorActivityMonitor
object and starts collecting activity monitoring
data on the current parallel pool. If no parallel pool exists,
parallel.pool.ActivityMonitor
starts a new parallel pool using the default profile,
unless you disable automatic pool creation in your parallel settings.
To save monitoring results, use the results
function. To stop collecting and save monitoring results, use the stop
function.
Input Arguments
Output Arguments
Object Functions
Examples
Limitations
ActivityMonitor
is not supported on parallel pools of thread workers.
Alternative Functionality
Tool
You can use the Pool Dashboard to collect and view pool monitoring data on an interactive parallel pool.
Version History
Introduced in R2025a