# OS_CalcStatistics

## Syntax

  `#include <nitro/os.h>`
  `void OS_CalcStatistics( void* statBuf );`

## Arguments

statBuf | Function cost statistics buffer

## Return Values

None.

## Description

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 buffer that is used to accumulate function cost calculations must be declared beforehand. If a thread system is being used, the buffer will be the one that is declared by the thread.

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.

## See Also

`OS_InitStatistics, OS_CalcThreadStatistics
`

## Revision History

2004/05/18 Initial version.

CONFIDENTIAL