tocBytes
Read how many bytes have been transferred since callingticBytes
Syntax
Description
tocBytes(
reads how many bytes have been transferred since callingpool
)ticBytes
. The function displays the total number of bytes transferred to and from each of the workers in a parallelpool
after the most recent execution ofticBytes
.
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.
tocBytes(
displays the total number of bytes transferred in the parallelpool
,startState
)pool
after theticBytes
command that generatedstartState
.
returns the number of bytes transferred to and from each of the workers in the parallelbytes
= tocBytes(pool
,startState
)pool
after theticBytes
command that generatedstartState
.
Examples
Input Arguments
Output Arguments
版本历史
Introduced in R2016b