1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<TITLE>OS_DisableFunctionCost</TITLE>
8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
9</HEAD>
10<BODY>
11<H1 align="left">OS_DisableFunctionCost <IMG src="../../image/NTR.gif" align="middle"><IMG src="../../image/TWL.gif" align="middle"></H1>
12<H2>Syntax</H2>
13<DL>
14  <DD><CODE>#include &lt;nitro/os.h&gt;</CODE><BR>
15  <BR>
16  <CODE>BOOL OS_DisableFunctionCost( void );</CODE>
17</DL>
18<H2>Arguments</H2>
19<P>None.</P>
20<H2>Return Values</H2>
21<P>The status before this function was called. TRUE indicates that it was enabled. FALSE indicates that it was disabled.</P>
22<H2>Description</H2>
23<P>Disables function cost calculation.</P>
24<P>This switch decides  whether the function entry and exit (<CODE>__PROFILE_ENTRY</CODE>, <CODE>__PROFILE_EXIT</CODE>) that are inserted by the <CODE>profile</CODE> feature will become enabled. Therefore take note of how you time enable/disable switching. For example, if you call a function called <CODE>test()</CODE> when in disabled status, and then enable the feature from within the <CODE>test()</CODE> function, the data will be inconsistent because <CODE>__PROFILE_EXIT</CODE> will store the fact that <CODE>test()</CODE> was exited, even though nothing was stored at the function entry (<CODE>__PROFILE_ENTRY</CODE>).</P>
25<P>Enable / disable switches are set for each cost calculation buffer. Therefore one will not disable all.</P>
26<P>If this function is compiled for debugging, it will function properly. However, if compiled for the final ROM version (<CODE>FINALROM</CODE>) library, it will not do anything.</P>
27<H2>See Also</H2>
28<P><CODE><A href="OS_InitFunctionCost.html">OS_InitFunctionCost</A>, <A href="OS_EnableFunctionCost.html">OS_EnableFunctionCost</A>, <A href="OS_RestoreFunctionCost.html">OS_RestoreFunctionCost</A><BR></CODE></P>
29<H2>Revision History</H2>
30<P>2004/05/18 Initial version.</P>
31<hr><p>CONFIDENTIAL</p></body>
32</HTML>