Ignore:
Timestamp:
Oct 28, 2008, 2:59:10 AM (17 years ago)
Author:
bird
Message:

kmk: some make stats cleanup.

File:
1 edited

Legend:

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

    r1980 r1986  
    119119#ifdef CONFIG_WITH_MAKE_STATS
    120120long          make_stats_allocations = 0;
     121long          make_stats_reallocations = 0;
    121122unsigned long make_stats_allocated = 0;
    122 unsigned long make_stats_allocated_sum = 0;
    123123unsigned long make_stats_ht_lookups = 0;
    124124unsigned long make_stats_ht_collisions = 0;
     
    42334233    {
    42344234# ifdef CONFIG_WITH_MAKE_STATS
    4235       len = sprintf (buf, "alloc-cur: %5ld %6luKB (/%3luMB)  hash: %5lu %2lu%%",
     4235      len = sprintf (buf, "alloc-cur: %5ld/%3ld %3luMB  hash: %5lu %2lu%%",
    42364236                     make_stats_allocations,
    4237                      make_stats_allocated / 1024,
    4238                      make_stats_allocated_sum / (1024*1024),
     4237                     make_stats_reallocations,
     4238                     make_stats_allocated / (1024*1024),
    42394239                     make_stats_ht_lookups,
    42404240                     (make_stats_ht_collisions * 100) / make_stats_ht_lookups);
     
    42564256          else if (!strcmp(argv[i], "allocations"))
    42574257            val = make_stats_allocations;
     4258          else if (!strcmp(argv[i], "reallocations"))
     4259            val = make_stats_reallocations;
    42584260          else if (!strcmp(argv[i], "allocated"))
    42594261            val = make_stats_allocated;
    4260           else if (!strcmp(argv[i], "allocated_sum"))
    4261             val = make_stats_allocated_sum;
    42624262          else if (!strcmp(argv[i], "ht_lookups"))
    42634263            val = make_stats_ht_lookups;
     
    46394639  { STRING_SIZE_TUPLE("libpath"),       1,  2,  1,  func_os2_libpath},
    46404640#endif
    4641 #ifdef CONFIG_WITH_MAKE_STATS
     4641#if defined (CONFIG_WITH_MAKE_STATS) || defined (CONFIG_WITH_MINIMAL_STATS)
    46424642  { STRING_SIZE_TUPLE("make-stats"),    0,  0,  0,  func_make_stats},
    46434643#endif
Note: See TracChangeset for help on using the changeset viewer.