Updated stats.h/.c to reflect the integration of pbuf pool into memp

This commit is contained in:
goldsimon 2007-05-16 13:49:44 +00:00
parent fd982597fe
commit 2e479b88a8
2 changed files with 2 additions and 24 deletions

View File

@ -68,16 +68,6 @@ stats_display_proto(struct stats_proto *proto, char *name)
LWIP_PLATFORM_DIAG(("cachehit: %"STAT_COUNTER_F"\n", proto->cachehit)); LWIP_PLATFORM_DIAG(("cachehit: %"STAT_COUNTER_F"\n", proto->cachehit));
} }
void
stats_display_pbuf(struct stats_pbuf *pbuf)
{
LWIP_PLATFORM_DIAG(("\nPBUF\n\t"));
LWIP_PLATFORM_DIAG(("avail: %"STAT_COUNTER_F"\n\t", pbuf->avail));
LWIP_PLATFORM_DIAG(("used: %"STAT_COUNTER_F"\n\t", pbuf->used));
LWIP_PLATFORM_DIAG(("max: %"STAT_COUNTER_F"\n\t", pbuf->max));
LWIP_PLATFORM_DIAG(("err: %"STAT_COUNTER_F"\n\t", pbuf->err));
}
void void
stats_display_mem(struct stats_mem *mem, char *name) stats_display_mem(struct stats_mem *mem, char *name)
{ {
@ -95,7 +85,7 @@ stats_display(void)
#if MEMP_STATS #if MEMP_STATS
s16_t i; s16_t i;
char * memp_names[] = { char * memp_names[] = {
"PBUF", "PBUF_REF/ROM",
"RAW_PCB", "RAW_PCB",
"UDP_PCB", "UDP_PCB",
"TCP_PCB", "TCP_PCB",
@ -107,6 +97,7 @@ stats_display(void)
#if ARP_QUEUEING #if ARP_QUEUEING
"ARP_QUEUE", "ARP_QUEUE",
#endif #endif
"PBUF_POOL",
"SYS_TIMEOUT" "SYS_TIMEOUT"
}; };
#endif #endif
@ -128,9 +119,6 @@ stats_display(void)
#if TCP_STATS #if TCP_STATS
stats_display_proto(&lwip_stats.tcp, "TCP"); stats_display_proto(&lwip_stats.tcp, "TCP");
#endif #endif
#if PBUF_STATS
stats_display_pbuf(&lwip_stats.pbuf);
#endif
#if MEM_STATS #if MEM_STATS
stats_display_mem(&lwip_stats.mem, "HEAP"); stats_display_mem(&lwip_stats.mem, "HEAP");
#endif #endif

View File

@ -79,13 +79,6 @@ struct stats_mem {
mem_size_t err; mem_size_t err;
}; };
struct stats_pbuf {
STAT_COUNTER avail;
STAT_COUNTER used;
STAT_COUNTER max;
STAT_COUNTER err;
};
struct stats_syselem { struct stats_syselem {
STAT_COUNTER used; STAT_COUNTER used;
STAT_COUNTER max; STAT_COUNTER max;
@ -116,9 +109,6 @@ struct stats_ {
#if TCP_STATS #if TCP_STATS
struct stats_proto tcp; struct stats_proto tcp;
#endif #endif
#if PBUF_STATS
struct stats_pbuf pbuf;
#endif
#if MEM_STATS #if MEM_STATS
struct stats_mem mem; struct stats_mem mem;
#endif #endif