1 /*---------------------------------------------------------------------------* 2 Project: TwlSDK - OS - include 3 File: profile.h 4 5 Copyright 2003-2008 Nintendo. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Date:: 2008-09-18#$ 14 $Rev: 8573 $ 15 $Author: okubata_ryoma $ 16 *---------------------------------------------------------------------------*/ 17 18 //================================================================ 19 #ifndef NITRO_OS_PROFILE_H_ 20 #define NITRO_OS_PROFILE_H_ 21 22 #ifdef __cplusplus 23 extern "C" { 24 #endif 25 26 //---- if available CallTrace 27 #ifdef SDK_PROFILE_CALLTRACE 28 # define OS_PROFILE_AVAILABLE 29 # define OS_PROFILE_CALL_TRACE 30 #endif 31 32 //---- if available FunctionCost 33 #ifdef SDK_PROFILE_FUNCTIONCOST 34 # define OS_PROFILE_AVAILABLE 35 # define OS_PROFILE_FUNCTION_COST 36 #endif 37 38 //================================================================ 39 #ifdef OS_PROFILE_AVAILABLE 40 41 //---- check OS_PROFILE_XXX define 42 #if defined( OS_PROFILE_CALL_TRACE ) && defined( OS_PROFILE_FUNCTION_COST ) 43 *** ERROR:cannot specify both options of OS_PROFILE_CALL_TRACE and OS_PROFILE_FUNCTION_COST at a same 44 time. 45 #endif 46 //---- if FINALROM, never be available CallTrace and FunctionCost. 47 #ifdef SDK_FINALROM 48 # define OS_NO_CALLTRACE 49 # define OS_NO_FUNCTIONCOST 50 #endif // ifdef SDK_FINALROM 51 #endif // ifdef OS_PROFILE_AVAILABLE 52 //---- prototype 53 void __PROFILE_ENTRY(void); 54 void __PROFILE_EXIT(void); 55 56 57 //---------------------------------------------------------------- 58 #ifdef __cplusplus 59 } /* extern "C" */ 60 #endif 61 62 /* NITRO_OS_PROFILE_H_ */ 63 #endif 64