Changeset 1986 for trunk/src/kmk/function.c
- Timestamp:
- Oct 28, 2008, 2:59:10 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/function.c
r1980 r1986 119 119 #ifdef CONFIG_WITH_MAKE_STATS 120 120 long make_stats_allocations = 0; 121 long make_stats_reallocations = 0; 121 122 unsigned long make_stats_allocated = 0; 122 unsigned long make_stats_allocated_sum = 0;123 123 unsigned long make_stats_ht_lookups = 0; 124 124 unsigned long make_stats_ht_collisions = 0; … … 4233 4233 { 4234 4234 # 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%%", 4236 4236 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), 4239 4239 make_stats_ht_lookups, 4240 4240 (make_stats_ht_collisions * 100) / make_stats_ht_lookups); … … 4256 4256 else if (!strcmp(argv[i], "allocations")) 4257 4257 val = make_stats_allocations; 4258 else if (!strcmp(argv[i], "reallocations")) 4259 val = make_stats_reallocations; 4258 4260 else if (!strcmp(argv[i], "allocated")) 4259 4261 val = make_stats_allocated; 4260 else if (!strcmp(argv[i], "allocated_sum"))4261 val = make_stats_allocated_sum;4262 4262 else if (!strcmp(argv[i], "ht_lookups")) 4263 4263 val = make_stats_ht_lookups; … … 4639 4639 { STRING_SIZE_TUPLE("libpath"), 1, 2, 1, func_os2_libpath}, 4640 4640 #endif 4641 #if def CONFIG_WITH_MAKE_STATS4641 #if defined (CONFIG_WITH_MAKE_STATS) || defined (CONFIG_WITH_MINIMAL_STATS) 4642 4642 { STRING_SIZE_TUPLE("make-stats"), 0, 0, 0, func_make_stats}, 4643 4643 #endif
Note:
See TracChangeset
for help on using the changeset viewer.