PMStartCycleAndInstructionCount

Syntax

#include <cafe/os.h>

inline void PMStartCycleAndInstructionCount()

Parameters

None.

Return Values

None.

Description

Sets up the performance control registers to start counting CPU cycles and instructions. This also zeros the cycle and instruction count registers.

NOTE:
CPU cycles are counted using count register pmc1 and CPU instructions are counted using count register pmc2.

Do Not Call From

Multiple threads This function is not thread-safe.

See Also

OSSetPerformanceMonitor
PMGetCycleCount
PMGetInstructionCount
PMResetCycleAndInstructionCount
PMStopCycleAndInstructionCount

Revision History

2013-05-08 Automated cleanup pass.
2011-03-15 Initial version.


CONFIDENTIAL