ticBytes
Start counting bytes transferred within parallel pool
Description
ticBytes(
starts counting the number of bytes transferred to each worker in thepool
)pool
, so that latertocBytes
(pool)
can measure the amount of data transferred to each worker between the two calls.
Use theticBytes
(pool
) andtocBytes
(pool
) functions together to measure how much data is transferred to and from the workers in a parallel pool. You can useticBytes
andtocBytes
while executing parallel language constructs and functions, such asparfor
,spmd
, orparfeval
. UseticBytes
andtocBytes
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 ofticBytes
andtocBytes
calls. Use the value ofstartState
as an input argument for a subsequent call totocBytes
.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2016b