|
DUECA/DUSIME
|
Network capacity use information. More...
#include <NetCapacityLog.hxx>

Public Types | |
| typedef NetCapacityLog | __ThisDCOType__ |
| typedef for internal reference | |
Public Member Functions | |
| NetCapacityLog () | |
| default constructor. | |
| 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. | |
| NetCapacityLog (::dueca::AmorphReStore &r) | |
| constructor to restore an NetCapacityLog from amorphous storage. | |
| ~NetCapacityLog () | |
| destructor. | |
| void | packData (::dueca::AmorphStore &s) const |
| packs the NetCapacityLog into amorphous storage. | |
| void | packDataDiff (::dueca::AmorphStore &s, const NetCapacityLog &ref) const |
| packs the NetCapacityLog into amorphous storage. | |
| void | unPackData (::dueca::AmorphReStore &s) |
| unpacks the NetCapacityLog from an amorphous storage. | |
| void | unPackDataDiff (::dueca::AmorphReStore &s) |
| unpacks the differences for NetCapacityLog from an amorphous storage. | |
| bool | operator== (const NetCapacityLog &o) const |
| Test for equality. | |
| bool | operator!= (const NetCapacityLog &o) const |
| Test for inequality. | |
| NetCapacityLog & | operator= (const NetCapacityLog &o) |
| Assignment operator. | |
| std::ostream & | print (std::ostream &s) const |
| prints the NetCapacityLog to a stream. | |
| NetCapacityLog (const uint16_t &node_id) | |
| custom constructor added | |
| void | histoLog (unsigned regular, unsigned fill, unsigned capacity) |
| Enter a datapoint in the histogram log. | |
| 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. | |
| 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. | |
| static void * | operator new (size_t size, NetCapacityLog *&o) |
| placement "new", needed for stl. | |
| 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 | |
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)
|
static |
new operator "new", which places objects not on a heap, but in one of the memory arenas.
This to speed up memory management.
| 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::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 |