Example #1
0
void TestStats::Init()
{
   Clear();
   this->RecentWindowMax = test_stats_window_quantum; 

   STATS_POOL_ADD_VAL_PUB_RECENT(Pool, "Test", Signals, 0);
   STATS_POOL_ADD_VAL_PUB_RECENT(Pool, "Test", SignalRuntime, 0);
}
Example #2
0
void StarterStatistics::Init() {
    Clear();

    this->RecentWindowQuantum = 1;
    this->RecentWindowMax = this->RecentWindowQuantum;

    STATS_POOL_ADD_VAL_PUB_RECENT(Pool, "", BlockReads, IF_BASICPUB);
    STATS_POOL_ADD_VAL_PUB_RECENT(Pool, "", BlockWrites, IF_BASICPUB);
    STATS_POOL_ADD_VAL_PUB_RECENT(Pool, "", BlockReadBytes, IF_VERBOSEPUB);
    STATS_POOL_ADD_VAL_PUB_RECENT(Pool, "", BlockWriteBytes, IF_VERBOSEPUB);
}
Example #3
0
void DefragStats::Init()
{
    Clear();
    // default window size to 1 quantum, we may set it to something else later.
    this->RecentWindowMax = this->RecentWindowQuantum;

    // insert static items into the stats pool so we can use the pool
    // to Advance and Clear.  these items also publish the overall value
    STATS_POOL_ADD_VAL_PUB_RECENT(Pool, "", DrainSuccesses, IF_BASICPUB);
    STATS_POOL_ADD_VAL_PUB_RECENT(Pool, "", DrainFailures, IF_BASICPUB);
    STATS_POOL_ADD_VAL(Pool, "", MachinesDraining, IF_BASICPUB);
    STATS_POOL_PUB_PEAK(Pool, "", MachinesDraining, IF_BASICPUB);
    STATS_POOL_ADD_VAL(Pool, "", WholeMachines, IF_BASICPUB);
    STATS_POOL_PUB_PEAK(Pool, "", WholeMachines, IF_BASICPUB);
    STATS_POOL_ADD_VAL(Pool, "", AvgDrainingBadput, IF_BASICPUB);
    STATS_POOL_ADD_VAL(Pool, "", AvgDrainingUnclaimed, IF_BASICPUB);
    STATS_POOL_ADD_VAL(Pool, "", MeanDrainedArrival, IF_BASICPUB);
    STATS_POOL_ADD_VAL(Pool, "", MeanDrainedArrivalSD, IF_BASICPUB);
    STATS_POOL_ADD_VAL(Pool, "", DrainedMachines, IF_BASICPUB);
}