Add traceMALLOC() and traceFREE() macros.

This commit is contained in:
Richard Barry 2013-10-04 20:56:45 +00:00
parent 23fa077241
commit 7ec4773131
4 changed files with 11 additions and 1 deletions

View file

@ -214,6 +214,8 @@ void *pvReturn = NULL;
xFreeBytesRemaining -= pxBlock->xBlockSize;
}
}
traceMALLOC( pvReturn, xWantedSize );
}
xTaskResumeAll();
@ -251,6 +253,7 @@ xBlockLink *pxLink;
/* Add this block to the list of free blocks. */
prvInsertBlockIntoFreeList( ( ( xBlockLink * ) pxLink ) );
xFreeBytesRemaining += pxLink->xBlockSize;
traceFREE( pv, pxLink->xBlockSize );
}
xTaskResumeAll();
}