feat: the status bar and the exit dump report resequencing, holes and stale packets
This commit is contained in:
1 parent
d38ab3f9c9
commit
fc81e661d0
5 files changed
+59
-2
No files matched your search
+16
-2
@@ -6898,6 +6898,12 @@ gboolean tick(gpointer user) {
|
||||
snap.packets = st.packets.load();
|
||||
snap.frames = st.frames.load();
|
||||
snap.gaps = st.gaps.load();
|
||||
snap.resequenced = st.resequenced.load();
|
||||
snap.late = st.late.load();
|
||||
snap.stale = st.stale.load();
|
||||
snap.holes = st.holes.load();
|
||||
snap.hole_slots = st.hole_slots.load();
|
||||
snap.backfilled = st.backfilled.load();
|
||||
snap.signals = signal_count;
|
||||
snap.channels = channel_count;
|
||||
snap.plot1_traces = bound;
|
||||
@@ -10718,12 +10724,20 @@ int run_ui(int argc, char** argv, const Config& cfg, ScopeModel& model, Acquisit
|
||||
if (exit_after_ms > 0.0) {
|
||||
const Partition& part = model.partition();
|
||||
std::printf("[udpscope] frames=%llu packets=%llu gaps=%llu channels=%zu span=%.3fs "
|
||||
"stride=%llu\n",
|
||||
"stride=%llu"
|
||||
" reseq=%llu late=%llu stale=%llu holes=%llu hole_slots=%llu backfilled=%llu"
|
||||
"\n",
|
||||
static_cast<unsigned long long>(model.stats().frames.load()),
|
||||
static_cast<unsigned long long>(model.stats().packets.load()),
|
||||
static_cast<unsigned long long>(model.stats().gaps.load()),
|
||||
model.channel_count(), part.span_s,
|
||||
static_cast<unsigned long long>(part.time_stride));
|
||||
static_cast<unsigned long long>(part.time_stride),
|
||||
static_cast<unsigned long long>(model.stats().resequenced.load()),
|
||||
static_cast<unsigned long long>(model.stats().late.load()),
|
||||
static_cast<unsigned long long>(model.stats().stale.load()),
|
||||
static_cast<unsigned long long>(model.stats().holes.load()),
|
||||
static_cast<unsigned long long>(model.stats().hole_slots.load()),
|
||||
static_cast<unsigned long long>(model.stats().backfilled.load()));
|
||||
for (std::size_t i = 0; i < model.channel_count(); ++i) {
|
||||
std::printf("[udpscope] channel %zu '%s' stored=%llu published=%llu\n", i,
|
||||
model.channels()[i].name.c_str(),
|
||||
|
||||
Reference in new issue
Block a user