1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../css/manpage.css" type="text/css" /> 7<title>nngxSetProfilingParameter</title> 8 </head> 9 <body> 10<h1><CODE>nngxSetProfilingParameter</CODE> Function</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14NNGX_APICALL void NNGX_APIENTRY nngxSetProfilingParameter( 15 GLenum pname, 16 GLuint param 17); 18</pre> 19 </div> 20<h2>Arguments</h2> 21 <div class="section"> 22 <table class="arguments"> 23 <thead> 24 <tr> 25 <td width="15" /> 26<th>Name</th> 27<td>Description</td> 28 </tr> 29 </thead> 30 <tr> 31<td>in</td> 32<th><CODE>pname</CODE></th> 33<td>Parameter for the profiling functionality. </td> 34 </tr> 35 <tr> 36<td>in</td> 37<th><CODE>param</CODE></th> 38<td>Value to set.</td> 39 </tr> </table> 40 </div> 41<h2>Return Values</h2> 42<div class="section">No values are returned. </div> 43<h2>Description</h2> 44 <div class="section"> 45<p>Sets a parameter for the profiling features.</p><p> 46Operation is undefined when starting the profiling features (busy counters) before setting the parameters. Be sure to configure the parameters with appropriate values before starting the profiling features. 47 </p><p> 48The following table lists the parameter names and values that can be specified in <CODE>pname</CODE>. 49</p><p><TABLE><TR><TH><CODE>NN_GX_PROFILING_BUSY_SAMPLING_TIME</CODE></TH><TD> 50Specifies the amount of time per sample of the busy counter in clock ticks. Specify a 16-bit value other than <CODE>0</CODE> in <CODE>param</CODE>.<br />If <CODE>0</CODE> is specified for NN_GX_PROFILING_BUSY_SAMPLING_COUNT, it does not affect operations. (If some 16-bit value other than <CODE>0</CODE> is specified, the behavior is the same no matter what is set.) 51</TD></TR><TR><TH><CODE>NN_GX_PROFILING_BUSY_SAMPLING_TIME_MICRO_SECOND</CODE></TH><TD> 52Set to the same value as <CODE>NN_GX_PROFILING_BUSY_SAMPLING_TIME</CODE> in microseconds. You can set to a value between 1 and 244.<br />(The value set here is converted internally to clock cycles for a 268-MHz operation clock and set to the hardware. The value converted to clock cycles must fit within 16 bits.) 53</TD></TR><TR><TH><CODE>NN_GX_PROFILING_BUSY_SAMPLING_TIME_NANO_SECOND</CODE></TH><TD> 54Set to the same value as <CODE>NN_GX_PROFILING_BUSY_SAMPLING_TIME</CODE> in nanoseconds. You can set to a value between 1 and 244537.<br />(The value set here is converted internally to clock cycles for a 268-MHz operation clock and set to the hardware. The value converted to clock cycles must fit within 16 bits.) 55</TD></TR><TR><TH><CODE>NN_GX_PROFILING_BUSY_SAMPLING_COUNT</CODE></TH><TD> 56Specifies the number of samples of the busy counter. Specify a 16-bit value other than <CODE>0</CODE> in <CODE>param</CODE>. If <CODE>0</CODE> is specified, once sampling starts, it continues until <a href="../nn_gx/nngxStopProfiling.html">nngxStopProfiling</a> is called. 57 </TD></TR></TABLE></p><p> 58This function generates the following errors. 59<TABLE><TR><TH><CODE>GL_ERROR_80A5_DMP</CODE></TH><TD> 60An invalid value was specified for the <span class="argument">pname</span> parameter. 61</TD></TR><TR><TH><CODE>GL_ERROR_80A6_DMP</CODE></TH><TD> 62An invalid value was specified for the <span class="argument">param</span> parameter. 63 </TD></TR></TABLE></p></div> 64<h2>Revision History</h2> 65 <div class="section"> 66 <dl class="history"> 67 <dt>2012/02/03</dt> 68<dd>Added more comments for various parameters.<br /> 69 </dd> 70 <dt>2011/08/24</dt> 71<dd>Added explanations about <CODE>NN_GX_PROFILING_BUSY_SAMPLING_TIME_MICRO_SECOND</CODE>, <CODE>NN_GX_PROFILING_BUSY_SAMPLING_TIME_NANO_SECOND</CODE>.<br /> 72 </dd> 73 <dt>2011/07/28</dt> 74<dd>Initial version.<br /> 75 </dd> 76 </dl> 77 </div> 78 <hr><p>CONFIDENTIAL</p></body> 79</html>