ENH: extend parProfiling (#2737)

- separate broadcast times from reduce/gather/scatter time
- separate wait times from all-to-all time
- support invocation counts, split off requests time/count
  from others to avoid flooding the counts

- support 'detail' switch to increase the output information.
  Format may change in the future
This commit is contained in:
Mark Olesen
2023-04-04 20:54:15 +02:00
parent 475ed5cc32
commit 9577a0f6b5
13 changed files with 520 additions and 168 deletions

View File

@ -61,8 +61,7 @@ void Foam::UIPstream::bufferIPCrecv()
);
MPI_Get_count(&status, MPI_BYTE, &messageSize_);
// Assume these are from gathers ...
profilingPstream::addGatherTime();
profilingPstream::addProbeTime();
recvBuf_.resize(messageSize_);
@ -206,7 +205,7 @@ Foam::label Foam::UIPstream::read
return 0;
}
profilingPstream::addWaitTime();
profilingPstream::addRequestTime();
if (debug)
{