|
OverSim
|
Module to record global statistics. More...
#include <GlobalStatistics.h>
Classes | |
| struct | OutVector |
| < struct for cOutVectors and cummulated values More... | |
Public Member Functions | |
| ~GlobalStatistics () | |
| Destructor. | |
| void | addStdDev (const std::string &name, double value) |
| Add a new value to the cStdDev container specified by the name parameter. | |
| void | recordHistogram (const std::string &name, double value) |
| Add a value to the histogram plot, or create a new histogram if one hasn't yet been created with name. | |
| void | recordOutVector (const std::string &name, double value) |
| Record a value to a global cOutVector defined by name. | |
| void | startMeasuring () |
| bool | isMeasuring () |
| bool | getMeasureNetwInitPhase () |
| simtime_t | getMeasureStartTime () |
| simtime_t | calcMeasuredLifetime (simtime_t creationTime) |
| void | finalizeStatistics () |
Public Attributes | |
| double | sentKBRTestAppMessages |
| total number of messages sent by KBRTestApp | |
| double | deliveredKBRTestAppMessages |
| total number of messages delivered by KBRTestApp | |
| int | testCount |
| cOutVector | currentDeliveryVector |
| statistical output vector for current delivery ratio | |
Static Public Attributes | |
| static const double | MIN_MEASURED = 0.1 |
| minimum useful measured lifetime in seconds | |
Protected Member Functions | |
| virtual void | initialize () |
| Init member function of module. | |
| virtual void | handleMessage (cMessage *msg) |
| HandleMessage member function of module. | |
| virtual void | finish () |
| Finish member function of module. | |
Protected Attributes | |
| std::map< std::string, cStdDev * > | stdDevMap |
| map to store and access scalars | |
| std::map< std::string, cHistogram * > | histogramMap |
| map to store and access histograms | |
| std::map< std::string, OutVector * > | outVectorMap |
| map to store and access the output vectors | |
| cMessage * | globalStatTimer |
| timer for periodic statistic updates | |
| double | globalStatTimerInterval |
| interval length of periodic statistic timer | |
| bool | measuring |
| bool | measureNetwInitPhase |
| simtime_t | measureStartTime |
Module to record global statistics.
Definition at line 50 of file GlobalStatistics.h.
| GlobalStatistics::~GlobalStatistics | ( | ) |
Destructor.
Definition at line 213 of file GlobalStatistics.cc.
| void GlobalStatistics::addStdDev | ( | const std::string & | name, |
| double | value | ||
| ) |
Add a new value to the cStdDev container specified by the name parameter.
If the container does not exist yet, a new container is created
| name | a string to identify the container (should be "Module: Scalar Name") |
| value | the value to add |
Definition at line 144 of file GlobalStatistics.cc.
Referenced by Quon::changeState(), Nps::coordsReqRpcResponse(), LoginCache::finish(), MessageObserver::finish(), SimpleTCP::finish(), SimpleUDP::finish(), MyApplication::finishApp(), SimpleGameClient::finishApp(), GIASearchApp::finishApp(), KBRTestApp::finishApp(), NeighborCache::finishApp(), Vast::finishOverlay(), Quon::finishOverlay(), MyOverlay::finishOverlay(), Gia::finishOverlay(), oversim::Nice::finishOverlay(), BasePastry::finishOverlay(), Kademlia::finishOverlay(), TreeManagement::finishTreeManagement(), Vivaldi::finishVivaldi(), ConnectivityProbeApp::handleMessage(), ConnectivityProbeQuon::handleMessage(), ConnectivityProbe::handleMessage(), Quon::handleNodeMove(), Vast::handleNodeMove(), GlobalViewBuilder::spreadGlobalView(), and DiscoveryMode::stop().
| simtime_t GlobalStatistics::calcMeasuredLifetime | ( | simtime_t | creationTime | ) |
Definition at line 207 of file GlobalStatistics.cc.
Referenced by LoginCache::finish(), MessageObserver::finish(), KBRTestApp::finishApp(), oversim::Nice::finishOverlay(), BasePastry::finishOverlay(), Kademlia::finishOverlay(), and TreeManagement::finishTreeManagement().
| void GlobalStatistics::finalizeStatistics | ( | ) |
Definition at line 105 of file GlobalStatistics.cc.
Referenced by FinisherModule::finish().
|
protectedvirtual |
Finish member function of module.
Definition at line 94 of file GlobalStatistics.cc.
|
inline |
Definition at line 91 of file GlobalStatistics.h.
Referenced by BasePastry::finishOverlay().
|
inline |
Definition at line 92 of file GlobalStatistics.h.
|
protectedvirtual |
HandleMessage member function of module.
Definition at line 66 of file GlobalStatistics.cc.
|
protectedvirtual |
Init member function of module.
Definition at line 34 of file GlobalStatistics.cc.
|
inline |
Definition at line 90 of file GlobalStatistics.h.
Referenced by TreeManagement::handleRpcCall(), TreeManagement::handleRpcResponse(), KBRTestApp::handleTimerEvent(), NeighborCache::recordNcsEstimationError(), TreeManagement::registerAtParent(), TreeManagement::sendChildReleaseCall(), TreeManagement::sendMessageToChildren(), TreeManagement::sendMessageToParent(), and DiscoveryMode::stop().
| void GlobalStatistics::recordHistogram | ( | const std::string & | name, |
| double | value | ||
| ) |
Add a value to the histogram plot, or create a new histogram if one hasn't yet been created with name.
Definition at line 164 of file GlobalStatistics.cc.
| void GlobalStatistics::recordOutVector | ( | const std::string & | name, |
| double | value | ||
| ) |
Record a value to a global cOutVector defined by name.
| name | a string to identify the vector (should be "Module: Scalar Name") |
| value | the value to add |
Definition at line 184 of file GlobalStatistics.cc.
Referenced by LifetimeChurn::createNode(), ParetoChurn::createNode(), LifetimeChurn::deleteNode(), ParetoChurn::deleteNode(), KBRTestApp::evaluateData(), Landmark::finishApp(), Kademlia::handleBucketRefreshTimerExpired(), KBRTestApp::handleLookupResponse(), SimpleGameClient::handleLowerMessage(), GlobalNodeList::handleMessage(), KBRTestApp::handleRpcResponse(), KBRTestApp::handleRpcTimeout(), ParetoChurn::initializeChurn(), and NeighborCache::recordNcsEstimationError().
| void GlobalStatistics::startMeasuring | ( | ) |
Definition at line 57 of file GlobalStatistics.cc.
Referenced by UnderlayConfigurator::handleMessage().
| cOutVector GlobalStatistics::currentDeliveryVector |
statistical output vector for current delivery ratio
Definition at line 58 of file GlobalStatistics.h.
| double GlobalStatistics::deliveredKBRTestAppMessages |
total number of messages delivered by KBRTestApp
Definition at line 56 of file GlobalStatistics.h.
Referenced by KBRTestApp::evaluateData().
|
protected |
timer for periodic statistic updates
Definition at line 114 of file GlobalStatistics.h.
|
protected |
interval length of periodic statistic timer
Definition at line 115 of file GlobalStatistics.h.
|
protected |
map to store and access histograms
Definition at line 112 of file GlobalStatistics.h.
|
protected |
Definition at line 133 of file GlobalStatistics.h.
Referenced by getMeasureNetwInitPhase().
|
protected |
Definition at line 134 of file GlobalStatistics.h.
Referenced by getMeasureStartTime().
|
protected |
Definition at line 132 of file GlobalStatistics.h.
Referenced by isMeasuring().
|
static |
minimum useful measured lifetime in seconds
Definition at line 53 of file GlobalStatistics.h.
Referenced by LoginCache::finish(), MessageObserver::finish(), CryptoModule::finish(), BaseApp::finish(), BaseOverlay::finish(), SimpleGameClient::finishApp(), KBRTestApp::finishApp(), SimMud::finishApp(), DHTTestApp::finishApp(), DHT::finishApp(), Scribe::finishApp(), PubSubMMOG::finishOverlay(), PubSubLobby::finishOverlay(), NTree::finishOverlay(), Broose::finishOverlay(), oversim::Chord::finishOverlay(), oversim::Koorde::finishOverlay(), oversim::Nice::finishOverlay(), BasePastry::finishOverlay(), and Kademlia::finishOverlay().
|
protected |
map to store and access the output vectors
Definition at line 113 of file GlobalStatistics.h.
| double GlobalStatistics::sentKBRTestAppMessages |
total number of messages sent by KBRTestApp
Definition at line 55 of file GlobalStatistics.h.
Referenced by KBRTestApp::handleTimerEvent().
|
protected |
map to store and access scalars
Definition at line 111 of file GlobalStatistics.h.
| int GlobalStatistics::testCount |
Definition at line 57 of file GlobalStatistics.h.