#include <nitro/os.h>
void OS_CalcThreadStatistics( void* statBuf, OSThread* thread );
statBuf | Function cost statistics buffer |
thread | The thread that maintains the function cost calculation buffer that is used for accumulation. |
None.
This function accumulates function cost calculation data in a specified function cost statistics buffer.
You must initialize statBuf
with OS_InitStatistics()
. You can also append to previously accumulated results. The function cost calculation buffer that is used to accumulate is declared by the thread that is specified by thread. However, avoid doing this when, for example, another thread is writing to the buffer.
If this function is compiled for debugging, it will function properly. However, if compiled for the final ROM version (FINALROM
) library, it will not do anything.
OS_InitStatistics, OS_CalcStatistics
2004/05/18 Initial version.
CONFIDENTIAL