1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 6<title>AX Profile</title> 7<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 8<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows"> 9<META http-equiv="Content-Style-Type" content="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">Profile</h1> 15 16 17<h2>Overview</h2> 18 19<ul> 20<li>Call <code>AXInitProfile()</code> to initialize runtime profiling of AX and its child callbacks. 21<li>Call <code>AXGetProfile()</code> periodically, to retrieve all profiles recorded by AX since the last call to <code>AXGetProfile()</code>. 22<li>A profile contains metrics for a single, 3-millisecond audio frame. 23</ul> 24 25<h2>Example</h2> 26<BLOCKQUOTE> 27<pre><code>#include <revolution.h> 28 29 ... 30 31 // Initialize AX 32 33#define MAX_PROFILES 256 34 35 AXPROFILE profile[MAX_PROFILES]; 36 37 AXInitProfile(&profile, MAX_PROFILES); 38 39 ... 40 41 // somewhere in the game loop 42 int i; 43 44 i = AXGetProfile(); // retrieve all profiles since last call to AXGetProfile() 45 46 while (i) 47 { 48 // look at profile[i] 49 50 i--; 51 }</CODE></pre> 52</BLOCKQUOTE> 53<h2>Revision History</h2> 54 55<P>2006/03/01 Initial version.</P> 56<hr> 57<P>CONFIDENTIAL</p> 58</BODY> 59</HTML> 60