...
µC/TCP-IP maintains run-time statistics on interfaces and most µC/TCP-IP object pools. If desired, an application can thus query µC/TCP-IP to find out how many frames have been processed on a particular interface, transmit and receive performance metrics, buffer utilization and more. An application can also reset the statistic pools back to their initialization values (see net_stat.h
)via appropriate API.
Applications may choose to monitor statistics for various reasons. For example, examining buffer statistics allows you to better manage the memory usage. Typically, more buffers can be allocated than necessary and, by examining buffer usage statistics, adjustments can be made to reduce their number.
...
You can query the following module to get usage statistics. It can help reduce memory usage and debugging issues regarding resources.
Module | Description | Function API or Variables |
---|---|---|
ARP | ARP Cache usage | NetARP_CachePoolStatGet() |
IGMP | IPv4 Multicast group statistics | NetIGMP_HostGrpPoolStat |
NDP | NDP Caches usage | NetCache_AddrNDP_PoolStat NetNDP_DestPoolStat NetNDP_PrefixPoolStat NetNDP_RouterPoolStat |
Buffer | Interface's buffer usage | |
IP connections | IP connections pool usage | NetConn_PoolStatGet() |
Socket | Sockets usage | NetSock_PoolStatGet() |
TCP | TCP connections usage | NetTCP_ConnPoolStatGet() |
Timer | Timer usage | NetTmr_PoolStatGet() |
Error Counters
µC/TCP-IP maintains run-time counters for tracking error conditions within the Network Protocol Stack. If desired, the application may view the error counters in order to debug run-time problems such as low memory conditions, slow performance, packet loss, etc.
...