#include <revolution/ax.h>
typedef struct _AXPROFILE
{
OSTime axFrameStart;
OSTime auxProcessingStart;
OSTime auxProcessingEnd;
OSTime userCallbackStart;
OSTime userCallbackEnd;
OSTime axFrameEnd;
u32 axNumVoices;
} AXPROFILE;
void AXInitProfile(AXPROFILE *profile, u32 maxProfiles);
| profile | Pointer to one or more AXPROFILE data structures allocated by the user application. |
|---|---|
| maxProfiles | Number of AXPROFILE structures allocated. |
None.
Users can measure CPU usage for AX, AUX effects processing, and user callback functions on a per-frame basis. The AXInitProfile function initializes AX runtime properties. The calling function must provide sufficient memory capacity for the specified AXPROFILE structures. CPU usage is stored in units of audio frames. In other words, the application must provide enough AXPROFILE structures only during the profile period.
2006/03/01 Initial version.
CONFIDENTIAL