Changeset 10902
- Timestamp:
- Jan 4, 2007, 11:55:39 AM (19 years ago)
- Location:
- branches/jch-memory/psLib/src/sys
- Files:
-
- 2 edited
-
psMemory.c (modified) (2 diffs)
-
psMemory.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/jch-memory/psLib/src/sys/psMemory.c
r10900 r10902 9 9 * @author Joshua Hoblitt, University of Hawaii 10 10 * 11 * @version $Revision: 1.88.2.1 1$ $Name: not supported by cvs2svn $12 * @date $Date: 2007-01-04 21: 39:00$11 * @version $Revision: 1.88.2.12 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2007-01-04 21:55:39 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1103 1103 return *allocated + *persistent; 1104 1104 } 1105 1106 int psMemBlockPrint(FILE *output, const psMemBlock *memBlock) 1107 { 1108 return fprintf(output, 1109 "Memory Block ID: %lu\n" 1110 "\tPrevious Block: %p Next Block: %p\n" 1111 "\tFree function: %p\n" 1112 "\tSize: %zd Reference count: %lu\n Persistent: %s\n" 1113 "\tPosts: %p %p %p\n" 1114 "\tAllocated at %s (%s:%d) by thread %lu\n", 1115 memBlock->id, 1116 memBlock->previousBlock, memBlock->nextBlock, 1117 memBlock->freeFunc, 1118 memBlock->userMemorySize, memBlock->refCounter, (memBlock->persistent ? "Yes" : "No"), 1119 memBlock->startblock, memBlock->endblock, (memBlock + 1 + memBlock->userMemorySize), 1120 memBlock->func, memBlock->file, memBlock->lineno, memBlock->tid); 1121 } -
branches/jch-memory/psLib/src/sys/psMemory.h
r10900 r10902 12 12 * @ingroup MemoryManagement 13 13 * 14 * @version $Revision: 1.61.2. 4$ $Name: not supported by cvs2svn $15 * @date $Date: 2007-01-04 21: 39:00$14 * @version $Revision: 1.61.2.5 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2007-01-04 21:55:39 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 532 532 size_t *persistent); ///< persistent memory that's currently allocated 533 533 534 /** print detailed information about a psMemBlock 535 * 536 * This function prints a detailed description of a psMemBlock to output. 537 * 538 * @return the return status of fprintf() 539 */ 540 int psMemBlockPrint( 541 FILE *output, ///< FILE to write information too 542 const psMemBlock *memBlock ///< psMemBlock to be examined 543 ); 544 545 534 546 //@} End of Memory Management Functions 535 547
Note:
See TracChangeset
for help on using the changeset viewer.
