Configuring the Stats Option - Configuring the Stats Option - 2026.1 English - UG643

Standalone Library Documentation: BSP and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2026-06-23
Version
2026.1 English

lwIP stack has been written to collect statistics, such as the number of connections used; amount of memory used; and number of semaphores used, for the application.

The library provides the stats_display() API to dump out the statistics relevant to the context in which the call is used. When turned ON, this stats option enables the statistics information to be collected and displayed when the stats_display API is called from user code. Use the following option to enable collecting the stats information for the application.

Table 1. Configuring the Stats Option
Attribute Description Type Default
lwip_stats Turn on lwIP Statistics int 0