improve stats reporting

now again use three messages to transmit stats (much more efficient than
sending single values, also more acurate).
This commit is contained in:
Martin Preuss
2025-08-25 10:22:05 +02:00
parent 7efaf720cc
commit 6e062d3f60
13 changed files with 234 additions and 186 deletions

View File

@@ -51,14 +51,10 @@ NETMSG_MemStats_Write:
st X+, r21
.endif
; current buffers used
push xl
push xh
bigcall NET_Buffer_CountUsed ; (r16, r17, r18, X)
pop xh
pop xl
lds r16, netBuffersUsed
st X+, r16
; max buffers used
clr r16
lds r16, netBuffersMaxUsed
st X+, r16
; no buffer errors
ldd r16, Y+NET_IFACE_OFFS_ERR_NOBUF_LOW