Samchon Framework for CPP
1.0.0
|
#include <PRInvokeHistory.hpp>
Public Member Functions | |
PRInvokeHistory () | |
PRInvokeHistory (std::shared_ptr< protocol::Invoke > invoke) | |
auto | getFirst () const -> size_t |
auto | getLast () const -> size_t |
auto | computeSize () const -> size_t |
Public Member Functions inherited from samchon::templates::slave::InvokeHistory | |
InvokeHistory () | |
InvokeHistory (std::shared_ptr< protocol::Invoke > invoke) | |
virtual auto | key () const -> size_t override |
Get a key that can identify the Entity uniquely. More... | |
auto | getUID () const -> size_t |
auto | getListener () const -> std::string |
auto | computeElapsedTime () const -> long long |
void | complete () |
History of an Invoke message.
The PRInvokeHistory is a class archiving history log of an Invoke message which requests the parallel process, created whenever ParallelSystemArray.sendSegmentData or ParallelSystemArray.sendSegmentData is called.
When the parallel process has completed, then complete() is called and the elapsed time is determined. The elapsed time is utilized for computation of performance index of each parallel slave system.
Definition at line 30 of file PRInvokeHistory.hpp.
|
inline |
Default Constructor.
Definition at line 48 of file PRInvokeHistory.hpp.
|
inline |
Construct from an Invoke message.
invoke | An Invoke message requesting a parallel process. |
Definition at line 58 of file PRInvokeHistory.hpp.
|
inline |
Get initial piece's index.
Returns initial piece's index in the section of requested parallel process.
Definition at line 85 of file PRInvokeHistory.hpp.
|
inline |
Get final piece's index.
Returns initial piece's index in the section of requested parallel process. The range used is [first, last), which contains all the pieces' indices between first and last, including the piece pointed by index first, but not the piece pointed by the index last.
Definition at line 99 of file PRInvokeHistory.hpp.
|
inline |
Compute number of allocated pieces.
Definition at line 107 of file PRInvokeHistory.hpp.
Referenced by samchon::templates::parallel::ParallelSystemArray< SlaveDriver >::sendPieceData().