Ignore:
Timestamp:
Oct 22, 2008, 11:59:51 PM (17 years ago)
Author:
bird
Message:

kmk: CONFIG_WITH_MINIMAL_STATS vs. CONFIG_WITH_MAKE_STATS - require special builds for expensive statistics.

File:
1 edited

Legend:

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

    r1863 r1915  
    37243724#endif  /* CONFIG_WITH_OS2_LIBPATH */
    37253725
    3726 #ifdef CONFIG_WITH_MAKE_STATS
     3726#if defined (CONFIG_WITH_MAKE_STATS) || defined (CONFIG_WITH_MINIMAL_STATS)
    37273727/* Retrieve make statistics. */
    37283728static char *
     
    37343734  if (!argv[0] || (!argv[0][0] && !argv[1]))
    37353735    {
     3736# ifdef CONFIG_WITH_MAKE_STATS
    37363737      len = sprintf (buf, "alloc-cur: %5ld %6luKB (/%3luMB)  hash: %5lu %2lu%%",
    37373738                     make_stats_allocations,
     
    37413742                     (make_stats_ht_collisions * 100) / make_stats_ht_lookups);
    37423743      o = variable_buffer_output (o, buf, len);
     3744#endif
    37433745    }
    37443746  else
     
    37513753          if (i != 0)
    37523754            o = variable_buffer_output (o, " ", 1);
    3753           if (!strcmp(argv[i], "allocations"))
     3755          if (0)
     3756              continue;
     3757# ifdef CONFIG_WITH_MAKE_STATS
     3758          else if (!strcmp(argv[i], "allocations"))
    37543759            val = make_stats_allocations;
    37553760          else if (!strcmp(argv[i], "allocated"))
     
    37633768          else if (!strcmp(argv[i], "ht_collisions_pct"))
    37643769            val = (make_stats_ht_collisions * 100) / make_stats_ht_lookups;
     3770#endif
    37653771          else
    37663772            {
     
    37733779        }
    37743780    }
     3781
    37753782  return o;
    37763783}
Note: See TracChangeset for help on using the changeset viewer.