Changeset 1438 for trunk/src/kmk/hash.c


Ignore:
Timestamp:
Mar 29, 2008, 2:49:27 AM (17 years ago)
Author:
bird
Message:

Added $(make-stats ) that provides access to memory and hash stats (if CONFIG_WITH_MAKE_STATS is defined).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/hash.c

    r503 r1438  
    9292
    9393  ht->ht_lookups++;
     94#ifdef CONFIG_WITH_MAKE_STATS
     95  make_stats_ht_lookups++;
     96#endif
    9497  for (;;)
    9598    {
     
    111114            return slot;
    112115          ht->ht_collisions++;
     116#ifdef CONFIG_WITH_MAKE_STATS
     117    make_stats_ht_collisions++;
     118#endif
    113119        }
    114120      if (!hash_2)
Note: See TracChangeset for help on using the changeset viewer.