mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-28 22:18:36 -04:00
Add traceMALLOC() and traceFREE() macros.
This commit is contained in:
parent
23fa077241
commit
7ec4773131
4 changed files with 11 additions and 1 deletions
|
@ -95,6 +95,7 @@ void *pvReturn;
|
|||
vTaskSuspendAll();
|
||||
{
|
||||
pvReturn = malloc( xWantedSize );
|
||||
traceMALLOC( pvReturn, xWantedSize );
|
||||
}
|
||||
xTaskResumeAll();
|
||||
|
||||
|
@ -119,6 +120,7 @@ void vPortFree( void *pv )
|
|||
vTaskSuspendAll();
|
||||
{
|
||||
free( pv );
|
||||
traceFREE( pv, 0 );
|
||||
}
|
||||
xTaskResumeAll();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue