Start counting bytes transferred within parallel pool
ticBytes(pool)startState = ticBytes(pool)ticBytes( starts
counting the number of bytes transferred to each worker in the pool)pool,
so that later tocBytes(pool) can
measure the amount of data transferred to each worker between the
two calls.
Use the ticBytes (pool)
and tocBytes (pool) functions
together to measure how much data is transferred to and from the workers
in a parallel pool. You can use ticBytes and tocBytes while
executing parallel language constructs and functions, such as parfor, spmd,
or parfeval. Use ticBytes and tocBytes to
pass around less data and optimize your code.
saves
the state to an output argument, startState = ticBytes(pool)startState, so
that you can simultaneously record the number of bytes transferred
for multiple pairs of ticBytes and tocBytes calls.
Use the value of startState as an input argument
for a subsequent call to tocBytes.