mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-28 05:58: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
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue