
305Explicit Parallelization Using MathWorks Toolboxes
To analyze proling information from a parallel job outside pmode (in the MATLAB
client), we rst need to get the proling results from each MATLAB worker:
info = mpiprofile('info'); % save profiling data for each worker
and then transfer it back to the client session. On the client side, the proling data can be
accessed as a cell array and displayed in the prole viewer as follows:
mpiprofile('viewer',[info{:}]); % convert cell array to vector
This form of mpiprole is useful when we need to analyze the performance of an spmd
job, since individual MATLAB workers cannot produce any grap