IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 22, 2007, 12:48:00 PM (19 years ago)
Author:
jhoblitt
Message:

add reference count to the output of psMemoryCheckLeaks()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psMemory.c

    r11674 r12551  
    1010*  @author Joshua Hoblitt, University of Hawaii
    1111*
    12 *  @version $Revision: 1.94 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2007-02-07 01:15:49 $
     12*  @version $Revision: 1.95 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2007-03-22 22:48:00 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    606606            if (fd != NULL) {
    607607                if (nleak == 1) {
    608                     fprintf(fd, "# func at (file:line)  ID: X\n");
     608                    fprintf(fd, "# func at (file:line)  ID: X  Ref: X\n");
    609609                }
    610610
    611                 fprintf(fd, "%s at (%s:%d)  ID: %lu", memBlock->func, memBlock->file, (int)memBlock->lineno, (unsigned long)memBlock->id);
     611                fprintf(fd, "%s at (%s:%d)  ID: %lu  Ref: %lu", memBlock->func, memBlock->file, (int)memBlock->lineno, (unsigned long)memBlock->id, memBlock->refCounter);
    612612                #if defined(PS_MEM_BACKTRACE) && defined(HAVE_BACKTRACE)
    613613
Note: See TracChangeset for help on using the changeset viewer.