|
DUECA/DUSIME
|
Network capacity use information. More...

Public Types | |
| typedef NetCapacityLog | __ThisDCOType__ |
| typedef for internal reference | |
Public Member Functions | |
| NetCapacityLog () | |
| default constructor. More... | |
| NetCapacityLog (const uint16_t &node_id, const uint16_t &n_points, const fixvector< 10, uint16_t > ®ular, const fixvector< 10, uint16_t > &total) | |
| Constructor with arguments. | |
| NetCapacityLog (const NetCapacityLog &o) | |
| copy constructor. More... | |
| NetCapacityLog (::dueca::AmorphReStore &r) | |
| constructor to restore an NetCapacityLog from amorphous storage. More... | |
| ~NetCapacityLog () | |
| destructor. More... | |
| void | packData (::dueca::AmorphStore &s) const |
| packs the NetCapacityLog into amorphous storage. More... | |
| void | packDataDiff (::dueca::AmorphStore &s, const NetCapacityLog &ref) const |
| packs the NetCapacityLog into amorphous storage. More... | |
| void | unPackData (::dueca::AmorphReStore &s) |
| unpacks the NetCapacityLog from an amorphous storage. More... | |
| void | unPackDataDiff (::dueca::AmorphReStore &s) |
| unpacks the differences for NetCapacityLog from an amorphous storage. More... | |
| bool | operator== (const NetCapacityLog &o) const |
| Test for equality. More... | |
| bool | operator!= (const NetCapacityLog &o) const |
| Test for inequality. More... | |
| NetCapacityLog & | operator= (const NetCapacityLog &o) |
| Assignment operator. More... | |
| std::ostream & | print (std::ostream &s) const |
| prints the NetCapacityLog to a stream. More... | |
| NetCapacityLog (const uint16_t &node_id) | |
| custom constructor added | |
| void | histoLog (unsigned regular, unsigned fill, unsigned capacity) |
| Enter a datapoint in the histogram log. More... | |
| float | histRegular (unsigned idx) const |
| fraction of regular fill | |
| float | histTotal (unsigned idx) const |
| fraction of total fill | |
| void | printline (std::ostream &s, TimeTickType tick) const |
| Print a line in a file with compact net load data. | |
Static Public Member Functions | |
| static void * | operator new (size_t size) |
| new operator "new", which places objects not on a heap, but in one of the memory arenas. More... | |
| static void * | operator new (size_t size, void *mem) |
| accompanying placement operator "new" | |
| static void | operator delete (void *p) |
| new operator "delete", to go with the new version of operator new. More... | |
| static void * | operator new (size_t size, NetCapacityLog *&o) |
| placement "new", needed for stl. More... | |
| static void | printhead (std::ostream &os, const std::string &label) |
| Print a header to a file. | |
Public Attributes | |
| uint16_t | node_id |
| node id for which this capacity info is collected | |
| uint16_t | n_points |
| number of cycles counted | |
| fixvector< 10, uint16_t > | regular |
| standard message capacity histogram | |
| fixvector< 10, uint16_t > | total |
| total fill capacity histogram | |
Static Public Attributes | |
| static const char *const | classname |
| The name of this class. More... | |
| static const uint32_t | magic_check_number |
| a "magic" number, hashed out of the class definition, that will be used to check consistency of the sent objects across the dueca nodes. More... | |
Network capacity use information.
Provides, per participating node, a coarse histogram of message size split into regular data size, and total size (including fill data)
| dueca::NetCapacityLog::NetCapacityLog | ( | ) |
default constructor.
| dueca::NetCapacityLog::NetCapacityLog | ( | const NetCapacityLog & | o | ) |
copy constructor.
| dueca::NetCapacityLog::NetCapacityLog | ( | ::dueca::AmorphReStore & | r | ) |
constructor to restore an NetCapacityLog from amorphous storage.
| dueca::NetCapacityLog::~NetCapacityLog | ( | ) |
destructor.
|
static |
new operator "new", which places objects not on a heap, but in one of the memory arenas.
This to speed up memory management.
|
static |
new operator "delete", to go with the new version of operator new.
|
inlinestatic |
placement "new", needed for stl.
| void dueca::NetCapacityLog::packData | ( | ::dueca::AmorphStore & | s | ) | const |
packs the NetCapacityLog into amorphous storage.
| void dueca::NetCapacityLog::packDataDiff | ( | ::dueca::AmorphStore & | s, |
| const NetCapacityLog & | ref | ||
| ) | const |
packs the NetCapacityLog into amorphous storage.
only differences with a previous object are packed.
| void dueca::NetCapacityLog::unPackData | ( | ::dueca::AmorphReStore & | s | ) |
unpacks the NetCapacityLog from an amorphous storage.
| void dueca::NetCapacityLog::unPackDataDiff | ( | ::dueca::AmorphReStore & | s | ) |
unpacks the differences for NetCapacityLog from an amorphous storage.
| bool dueca::NetCapacityLog::operator== | ( | const NetCapacityLog & | o | ) | const |
Test for equality.
|
inline |
Test for inequality.
| NetCapacityLog& dueca::NetCapacityLog::operator= | ( | const NetCapacityLog & | o | ) |
Assignment operator.
| std::ostream& dueca::NetCapacityLog::print | ( | std::ostream & | s | ) | const |
prints the NetCapacityLog to a stream.
| void dueca::NetCapacityLog::histoLog | ( | unsigned | regular, |
| unsigned | fill, | ||
| unsigned | capacity | ||
| ) |
Enter a datapoint in the histogram log.
| regular | Regular bytes in message |
| fill | Fill bytes in message |
| capacity | Max size of message |
|
static |
The name of this class.
|
static |
a "magic" number, hashed out of the class definition, that will be used to check consistency of the sent objects across the dueca nodes.