/[freetype]/freetype2/src/base/ftdbgmem.c
ViewVC logotype

Diff of /freetype2/src/base/ftdbgmem.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.23 by freetype, Tue Feb 22 15:38:12 2005 UTC revision 1.24 by freetype, Sat Feb 26 00:12:04 2005 UTC
# Line 497  Line 497 
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 */
# Line 536  Line 534 
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;
# Line 937  Line 935 
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        {        {

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26