Changeset 2745 for trunk/src/kmk/misc.c


Ignore:
Timestamp:
Jan 3, 2015, 8:32:00 PM (11 years ago)
Author:
bird
Message:

Some heap stats stuff.

File:
1 edited

Legend:

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

    r2591 r2745  
    455455  if (result == 0)
    456456    fatal (NILF, _("virtual memory exhausted"));
     457
     458#ifdef CONFIG_WITH_MAKE_STATS
     459  make_stats_allocations++;
     460  if (make_expensive_statistics)
     461    make_stats_allocated += SIZE_OF_HEAP_BLOCK (result);
     462  else
     463    make_stats_allocated += size;
     464#endif
    457465  return result;
    458466}
Note: See TracChangeset for help on using the changeset viewer.