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

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