497 |
node = *pnode; |
node = *pnode; |
498 |
if ( node ) |
if ( node ) |
499 |
{ |
{ |
|
FT_MemSource source; |
|
|
|
|
500 |
if ( node->size < 0 ) |
if ( node->size < 0 ) |
501 |
{ |
{ |
502 |
/* this block was already freed. This means that our memory is */ |
/* this block was already freed. This means that our memory is */ |
534 |
if ( source->cur_blocks > source->max_blocks ) |
if ( source->cur_blocks > source->max_blocks ) |
535 |
source->max_blocks = source->cur_blocks; |
source->max_blocks = source->cur_blocks; |
536 |
|
|
537 |
if ( size > source->cur_max ) |
if ( size > (FT_ULong)source->cur_max ) |
538 |
source->cur_max = size; |
source->cur_max = size; |
539 |
|
|
540 |
source->all_size += size; |
source->all_size += size; |
935 |
|
|
936 |
printf( "FreeType Memory Dump: current=%ld max=%ld total=%ld count=%ld\n", |
printf( "FreeType Memory Dump: current=%ld max=%ld total=%ld count=%ld\n", |
937 |
table->alloc_current, table->alloc_max, table->alloc_total, table->alloc_count ); |
table->alloc_current, table->alloc_max, table->alloc_total, table->alloc_count ); |
938 |
printf( " block block sizes sizes sizes source\n" ); |
printf( " block block sizes sizes sizes source\n" ); |
939 |
printf( " count high sum highsum max location\n" ); |
printf( " count high sum highsum max location\n" ); |
940 |
printf( "-------------------------------------------------\n" ); |
printf( "-------------------------------------------------\n" ); |
941 |
fmt = "%6ld %6ld %10ld %10ld %10ld %s:%d\n"; |
fmt = "%6ld %6ld %8ld %8ld %8ld %s:%d\n"; |
942 |
|
|
943 |
for ( ; bucket < limit; bucket++ ) |
for ( ; bucket < limit; bucket++ ) |
944 |
{ |
{ |