Print current usage loads. */
| 567 | |
| 568 | /** Print current usage loads. */ |
| 569 | static 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 |
no test coverage detected