results - Retrieve results from parallel pool activity monitor - MATLAB (original) (raw)

Main Content

Retrieve results from parallel pool activity monitor

Since R2025a

Syntax

Description

[monitorResults](#mw%5F0e537471-3ee7-4bbe-bf64-e3f6029d6afc) = results([monitor](#mw%5F374ebfbc-8cf7-474f-98c5-0ed5136b5c26)) retrieves the pool activity monitoring results from the ActivityMonitor object monitor.

example

Examples

collapse all

Create an ActivityMonitor object to start collecting pool monitoring data. With default settings, parallel.pool.ActivityMonitor automatically starts an interactive parallel pool using the default profile if one does not exist.

monitor = parallel.pool.ActivityMonitor;

Starting parallel pool (parpool) using the 'Processes' profile ... Connected to parallel pool with 6 workers.

Submit multiple parfeval computations to compute magic squares. Wait for all tasks to complete.

f(1:100) = parallel.Future; for idx = 1:100 f(idx) = parfeval(@magic,1,idx); end wait(f);

Use the results function to obtain the monitoring results. Visualize the monitoring results in the Pool Dashboard.

monitoringResults = results(monitor); parpoolDashboard(monitoringResults)

Input Arguments

collapse all

Pool activity monitor, specified as an ActivityMonitor object.

Example: monitor = parallel.pool.ActivityMonitor

Output Arguments

collapse all

Pool activity monitoring results, returned as an ActivityMonitorResults object. To visualize the pool activity monitoring results in the Pool Dashboard, use theparpoolDashboard function.

Version History

Introduced in R2025a