Add rayman2 source files
This commit is contained in:
95
Rayman_X/cpa/tempgrp/PRF/PRF.dsp
Normal file
95
Rayman_X/cpa/tempgrp/PRF/PRF.dsp
Normal file
@@ -0,0 +1,95 @@
|
||||
# Microsoft Developer Studio Project File - Name="Profile" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 5.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Static Library" 0x0104
|
||||
|
||||
CFG=Profile - Win32 Debug
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "PRF.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "PRF.mak" CFG="Profile - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "Profile - Win32 Release" (based on "Win32 (x86) Static Library")
|
||||
!MESSAGE "Profile - Win32 Debug" (based on "Win32 (x86) Static Library")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP Scc_ProjName ""$/cpa/tempgrp/PRF", OXMAAAAA"
|
||||
# PROP Scc_LocalPath "."
|
||||
CPP=cl.exe
|
||||
|
||||
!IF "$(CFG)" == "Profile - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "x:\cpa\lib"
|
||||
# PROP Intermediate_Dir "Tmp\Release"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /GX /O2 /I "X:\Cpa\Public" /D "NDEBUG" /D "VISUAL" /D "USE_PROFILER" /D "WIN32" /YX /FD /c
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LIB32=link.exe -lib
|
||||
# ADD BASE LIB32 /nologo
|
||||
# ADD LIB32 /nologo /out:"X:\CPA\Lib\PRF_vr.lib"
|
||||
|
||||
!ELSEIF "$(CFG)" == "Profile - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "X:\Cpa\Lib"
|
||||
# PROP Intermediate_Dir "Tmp\Debug"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /GX /Z7 /Od /Ob1 /I "X:\Cpa\Public" /D "_DEBUG" /D "MTH_CHECK" /D "CPA_WANTS_EXPORT" /D "VISUAL" /D "USE_PROFILER" /D "WIN32" /YX /FD /c
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LIB32=link.exe -lib
|
||||
# ADD BASE LIB32 /nologo
|
||||
# ADD LIB32 /nologo /out:"X:\Cpa\Lib\PRF_vd.lib"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "Profile - Win32 Release"
|
||||
# Name "Profile - Win32 Debug"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\public\PRF.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\PRF.mak
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Profile.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\specif\profile.cxx
|
||||
# PROP Exclude_From_Build 1
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
168
Rayman_X/cpa/tempgrp/PRF/PRF.vcproj
Normal file
168
Rayman_X/cpa/tempgrp/PRF/PRF.vcproj
Normal file
@@ -0,0 +1,168 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="7.10"
|
||||
Name="Profile"
|
||||
ProjectGUID="{20E261EF-846D-4262-9FC2-4B21A417714E}"
|
||||
SccProjectName=""$/cpa/tempgrp/PRF", OXMAAAAA"
|
||||
SccAuxPath=""
|
||||
SccLocalPath="."
|
||||
SccProvider="MSSCCI:NXN alienbrain">
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"/>
|
||||
</Platforms>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="x:\cpa\lib"
|
||||
IntermediateDirectory=".\Tmp\Release"
|
||||
ConfigurationType="4"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="FALSE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="X:\Cpa\Public"
|
||||
PreprocessorDefinitions="NDEBUG;VISUAL;USE_PROFILER;WIN32"
|
||||
StringPooling="TRUE"
|
||||
RuntimeLibrary="4"
|
||||
EnableFunctionLevelLinking="TRUE"
|
||||
UsePrecompiledHeader="2"
|
||||
PrecompiledHeaderFile=".\Tmp\Release/PRF.pch"
|
||||
AssemblerListingLocation=".\Tmp\Release/"
|
||||
ObjectFile=".\Tmp\Release/"
|
||||
ProgramDataBaseFileName=".\Tmp\Release/"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="TRUE"
|
||||
CompileAs="0"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLibrarianTool"
|
||||
OutputFile="X:\CPA\Lib\PRF_vr.lib"
|
||||
SuppressStartupBanner="TRUE"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
Culture="1033"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCManagedWrapperGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="X:\Cpa\Libd"
|
||||
IntermediateDirectory=".\Tmp\Debug"
|
||||
ConfigurationType="4"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="FALSE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="X:\Cpa\Public"
|
||||
PreprocessorDefinitions="_DEBUG;MTH_CHECK;CPA_WANTS_EXPORT;VISUAL;USE_PROFILER;WIN32"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="2"
|
||||
PrecompiledHeaderFile=".\Tmp\Debug/PRF.pch"
|
||||
AssemblerListingLocation=".\Tmp\Debug/"
|
||||
ObjectFile=".\Tmp\Debug/"
|
||||
ProgramDataBaseFileName=".\Tmp\Debug/"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="TRUE"
|
||||
DebugInformationFormat="1"
|
||||
CompileAs="0"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLibrarianTool"
|
||||
OutputFile="X:\Cpa\Libd\PRF_vd.lib"
|
||||
SuppressStartupBanner="TRUE"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
Culture="1033"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCManagedWrapperGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath="..\..\public\PRF.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="PRF.mak">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="Profile.c">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="specif\profile.cxx">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
1005
Rayman_X/cpa/tempgrp/PRF/Profile.c
Normal file
1005
Rayman_X/cpa/tempgrp/PRF/Profile.c
Normal file
File diff suppressed because it is too large
Load Diff
5
Rayman_X/cpa/tempgrp/PRF/mssccprj.scc
Normal file
5
Rayman_X/cpa/tempgrp/PRF/mssccprj.scc
Normal file
@@ -0,0 +1,5 @@
|
||||
SCC = This is a source code control file
|
||||
|
||||
[PRF.vcproj]
|
||||
SCC_Aux_Path = "P4SCC#srvperforce-ma:1666##raymandata##Editor"
|
||||
SCC_Project_Name = Perforce Project
|
70
Rayman_X/cpa/tempgrp/PRF/specif/profile.cxx
Normal file
70
Rayman_X/cpa/tempgrp/PRF/specif/profile.cxx
Normal file
@@ -0,0 +1,70 @@
|
||||
/*-----------------------------------------------------------------------------*/
|
||||
/* PRF_fn_vInitProfileModule*/
|
||||
/* Must be called once at the beginning of the program*/
|
||||
/*-----------------------------------------------------------------------------*/
|
||||
void PRF_fn_vInitProfileModule ()
|
||||
{
|
||||
unsigned long i;
|
||||
short sTimerHandle;
|
||||
|
||||
/* create the timer that will be used to compute time*/
|
||||
sTimerHandle = TMR_fn_wCreateTimer(C_wTimerFrequencyHigh);
|
||||
|
||||
if (Erm_M_uwCheckError(Tmr,C_ucErmDefaultChannel))
|
||||
{
|
||||
Erm_M_ClearLastError(C_ucErmDefaultChannel);
|
||||
assert(0);
|
||||
}
|
||||
|
||||
/* get the CPU frequency*/
|
||||
TMR_fn_wGetTimerFrequency(sTimerHandle,&ulTimerFrequency);
|
||||
ulTimerFrequency /= 1000000;
|
||||
|
||||
/* no more need of the timer*/
|
||||
TMR_fn_wDestroyTimer(sTimerHandle);
|
||||
|
||||
/* get the screen frequency*/
|
||||
/*
|
||||
ulMonitorFrequency = TMR_fn_ulMonitorFrequency();
|
||||
ulMonitorFrequency /= 100;
|
||||
*/
|
||||
ulMonitorFrequency = 60;
|
||||
|
||||
/* print result*/
|
||||
printf ("monitor frequency : %i Hz, CPU frequency : %i Mhz\n",ulMonitorFrequency,ulTimerFrequency);
|
||||
/* clear all arrays*/
|
||||
for (i = 0 ; i < PRF_C_lMaxNbFunction ; i ++)
|
||||
{
|
||||
PRF_g_a_stFunctionInformation[i].szFunctionName = 0;
|
||||
PRF_g_a_stFunctionInformation[i].ulHistorySize = 0;
|
||||
PRF_g_a_stFunctionInformation[i].ulUserDataSize = 0;
|
||||
PRF_g_a_stFunctionInformation[i].p_stFrameHistory = NULL;
|
||||
PRF_g_a_stFunctionInformation[i].p_stUserDataSummary = NULL;
|
||||
}
|
||||
|
||||
for (i = 0 ; i < PRF_C_lMaxNbVariable ; i ++)
|
||||
{
|
||||
PRF_g_a_stVariableInformation[i].szVariableName = 0;
|
||||
PRF_g_a_stVariableInformation[i].ulHistorySize = 0;
|
||||
PRF_g_a_stVariableInformation[i].ulUserDataSize = 0;
|
||||
PRF_g_a_stVariableInformation[i].p_stFrameHistory = NULL;
|
||||
PRF_g_a_stVariableInformation[i].p_stUserDataSummary = NULL;
|
||||
}
|
||||
|
||||
for (i = 0 ; i < PRF_C_lMaxNbVariable ; i ++)
|
||||
PRF_g_a_stVariableInformation[i].szVariableName = 0;
|
||||
|
||||
memset (a_lIndependantVariable , 0 , sizeof(long) * PRF_C_lMaxNbIndependantVariable);
|
||||
memset (a_szIndependantVariableName , 0 , sizeof(char*) * PRF_C_lMaxNbIndependantVariable);
|
||||
|
||||
memset (a_fFloatIndependantVariable , 0 , sizeof(float) * PRF_C_lMaxNbFloatIndependantVariable);
|
||||
memset (a_szFloatIndependantVariableName , 0 , sizeof(char*) * PRF_C_lMaxNbFloatIndependantVariable);
|
||||
|
||||
PRF_g_bModuleInitialized = TRUE;
|
||||
}
|
||||
|
||||
void PRF_fn_vUpdateMonitorFrequency( unsigned long _ulFrequency )
|
||||
{
|
||||
ulMonitorFrequency = _ulFrequency;
|
||||
PRF_fn_vSetIndependantVariable( PRF_C_ulIdpMonitorFrequency, _ulFrequency );
|
||||
}
|
Reference in New Issue
Block a user