tocBytes
Read how many bytes have been transferred since calling
ticBytes
Description
tocBytes reads and
displays the number of bytes transferred by each worker in the current parallel pool
after the most recent execution of ticBytes. The current parallel
pool is the parallel.Pool object the gcp function with the
"noCreate" option returns. (since R2024a)
The ticBytes and tocBytes functions
together help you track data movement between the client and workers during parallel
execution with functions like parfor,
spmd, and parfeval. Use these functions to
understand communication overhead and optimize your code.
tocBytes( reads and displays the
number of bytes transferred by each worker in the parallel pool specified by the
pool)ProcessPool or ClusterPool object,
pool.
Use ticBytes(pool) and tocBytes(pool) calls
together when you want to measure data on a pool other than the pool the
gcp function returns.
tocBytes( and
startState)tocBytes(
read and displays the total number of bytes transferred in the parallel pool after
the start state represented by the pool,startState)TicBytesResult object,
startState. Use the ticBytes function
to generate the TicBytesResult object.
Examples
Input Arguments
Output Arguments
Limitations
Thread-based pools do not support measuring bytes sent to or received from workers.