mirror of https://github.com/PentHertz/srsLTE.git
eNB: Added RI metrics trace
This commit is contained in:
parent
42626a1120
commit
650cc0788c
|
@ -408,7 +408,7 @@ void ue::metrics_phr(float phr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ue::metrics_dl_ri(uint32_t dl_ri) {
|
void ue::metrics_dl_ri(uint32_t dl_ri) {
|
||||||
metrics.dl_ri = SRSLTE_VEC_CMA((float) dl_ri, metrics.dl_ri, dl_ri_counter);
|
metrics.dl_ri = SRSLTE_VEC_EMA((float) dl_ri, metrics.dl_ri, 0.5f);
|
||||||
dl_ri_counter++;
|
dl_ri_counter++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -108,8 +108,8 @@ void metrics_stdout::print_metrics()
|
||||||
{
|
{
|
||||||
n_reports = 0;
|
n_reports = 0;
|
||||||
cout << endl;
|
cout << endl;
|
||||||
cout << "------DL-------------------------UL-------------------------------" << endl;
|
cout << "------DL-------------------------------UL--------------------------------" << endl;
|
||||||
cout << "rnti cqi mcs brate bler snr phr mcs brate bler bsr" << endl;
|
cout << "rnti cqi ri mcs brate bler snr phr mcs brate bler bsr" << endl;
|
||||||
}
|
}
|
||||||
if (metrics.rrc.n_ues > 0) {
|
if (metrics.rrc.n_ues > 0) {
|
||||||
|
|
||||||
|
@ -123,6 +123,7 @@ void metrics_stdout::print_metrics()
|
||||||
|
|
||||||
cout << std::hex << metrics.mac[i].rnti << " ";
|
cout << std::hex << metrics.mac[i].rnti << " ";
|
||||||
cout << float_to_string(metrics.mac[i].dl_cqi, 2);
|
cout << float_to_string(metrics.mac[i].dl_cqi, 2);
|
||||||
|
cout << float_to_string(metrics.mac[i].dl_ri + 1, 3);
|
||||||
cout << float_to_string(metrics.phy[i].dl.mcs, 2);
|
cout << float_to_string(metrics.phy[i].dl.mcs, 2);
|
||||||
if (metrics.mac[i].tx_brate > 0 && metrics_report_period) {
|
if (metrics.mac[i].tx_brate > 0 && metrics_report_period) {
|
||||||
cout << float_to_eng_string((float) metrics.mac[i].tx_brate/metrics_report_period, 2);
|
cout << float_to_eng_string((float) metrics.mac[i].tx_brate/metrics_report_period, 2);
|
||||||
|
|
Loading…
Reference in New Issue