MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / printStats

Function printStats

CLI/CLI.cpp:569–591  ·  view source on GitHub ↗

Print current usage loads. */

Source from the content-addressed store, hash-verified

567
568/** Print current usage loads. */
569static CLIStatus printStats(int argc, char** argv, ostream& os)
570{
571 // FIXME -- This needs to take GPRS channels into account. See #762.
572 if (argc!=1) return BAD_NUM_ARGS;
573 os << "== GSM ==" << endl;
574 os << "SDCCH load: " << gBTS.SDCCHActive() << '/' << gBTS.SDCCHTotal() << endl;
575 os << "TCH/F load: " << gBTS.TCHActive() << '/' << gBTS.TCHTotal() << endl;
576 os << "AGCH/PCH load: " << gBTS.AGCHLoad() << ',' << gBTS.PCHLoad() << " (target <= 3)" << endl;
577 // paging table size
578 os << "Paging table size: " << gBTS.pager().pagingEntryListSize() << endl;
579 os << "Transactions: " << gNewTransactionTable.size() << endl;
580 // 3122 timer current value (the number of seconds an MS should hold off the next RACH)
581 os << "T3122: " << gBTS.T3122() << " ms (target " << gConfig.getNum("GSM.Radio.PowerManager.TargetT3122") << " ms)" << endl;
582 os << "== GPRS ==" << endl;
583 // (pat) We are not using dynamic channel allocation so I removed GPRS.Channels.Max until such time as we do.
584 // Also I did not understand what is the point of printing out something that is in the config?
585 //os << "chans mn/mx/dn/up: "
586 // << gConfig.getNum("GPRS.Channels.Min") << '/' << gConfig.getNum("GPRS.Channels.Max")
587 // << '/' << gConfig.getNum("GPRS.Multislot.Max.Downlink") << '/' << gConfig.getNum("GPRS.Multislot.Max.Uplink") << endl;
588 os << "current PDCHs: " << GPRS::gL2MAC.macActiveChannels() << endl;
589 os << "utilization: " << 100 * GPRS::gL2MAC.macComputeUtilization() << "%" << endl;
590 return SUCCESS;
591}
592
593
594

Callers 1

exit_functionFunction · 0.85

Calls 11

SDCCHActiveMethod · 0.80
SDCCHTotalMethod · 0.80
TCHActiveMethod · 0.80
TCHTotalMethod · 0.80
AGCHLoadMethod · 0.80
PCHLoadMethod · 0.80
pagingEntryListSizeMethod · 0.80
T3122Method · 0.80
macActiveChannelsMethod · 0.80
macComputeUtilizationMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected