Name

cyg_lwip_statistics — Statistics output

Synopsis

#include <arch/cc.h>

void cyg_lwip_statistics (cyg_lwip_printf outfn );

Description

This function is provided mainly for debugging and development tuning, since it may be useful to monitor lwIP resource usage over various test scenarios when tuning an eCos lwIP configuration.

The function is a NOP unless the lwIP statistics gathering support is configured. The main configuration option CYGDBG_LWIP_STATS controls the availability of the statistics feature, with sub-options then being available to control specific sub-section statistics gathering.

The outfn is the printf-style varargs routine used to output the human-readable information. For example, a simple usage would be to pass the diag_printf function so that the statistics are output on the same diagnostic channel as any other test/debug information.