- Dump the PDCP metrics into the JSON file.

- Fix the PDCP metrics getting reset periodically which invalidated the byte counters.
master
faluco 4 years ago committed by faluco
parent a940e169a3
commit 613d397d0a

@ -693,7 +693,8 @@ pdcp_bearer_metrics_t pdcp_entity_lte::get_metrics()
void pdcp_entity_lte::reset_metrics() void pdcp_entity_lte::reset_metrics()
{ {
metrics = {}; // Only reset metrics that have are snapshots, leave the incremental ones untouched.
metrics.tx_notification_latency_ms = 0;
} }
} // namespace srslte } // namespace srslte

@ -129,11 +129,13 @@ static void fill_ue_metrics(mset_ue_container& ue, const enb_metrics_t& m, unsig
continue; continue;
} }
const auto& rlc_bearer = m.stack.rlc.ues[i].bearer; const auto& rlc_bearer = m.stack.rlc.ues[i].bearer;
bearer_container.write<metric_dl_total_bytes>(rlc_bearer[drb.first].num_tx_sdu_bytes); const auto& pdcp_bearer = m.stack.pdcp.ues[i].bearer;
bearer_container.write<metric_ul_total_bytes>(rlc_bearer[drb.first].num_rx_sdu_bytes); bearer_container.write<metric_dl_total_bytes>(pdcp_bearer[drb.first].num_tx_acked_bytes);
bearer_container.write<metric_ul_total_bytes>(pdcp_bearer[drb.first].num_rx_pdu_bytes);
bearer_container.write<metric_dl_latency>(pdcp_bearer[drb.first].tx_notification_latency_ms / 1e3);
bearer_container.write<metric_ul_latency>(rlc_bearer[drb.first].rx_latency_ms / 1e3); bearer_container.write<metric_ul_latency>(rlc_bearer[drb.first].rx_latency_ms / 1e3);
bearer_container.write<metric_dl_buffered_bytes>(pdcp_bearer[drb.first].num_tx_buffered_pdus_bytes);
bearer_container.write<metric_ul_buffered_bytes>(rlc_bearer[drb.first].rx_buffered_bytes); bearer_container.write<metric_ul_buffered_bytes>(rlc_bearer[drb.first].rx_buffered_bytes);
//:TODO: fill in dl_buffered_bytes and dl_latency
} }
} }

Loading…
Cancel
Save