Skip to content

Commit b6d80f8

Browse files
committed
Remove the only two usages of profile library
1 parent 71d9340 commit b6d80f8

File tree

4 files changed

+1
-22
lines changed

4 files changed

+1
-22
lines changed

GeneralsMD/Code/GameEngine/Source/GameClient/GUI/Shell/Shell.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
#include "GameNetwork/GameSpyOverlay.h"
4343
#include "GameNetwork/GameSpy/PeerDefsImplementation.h"
4444

45-
#include <rts/profile.h>
46-
4745
// PUBLIC DATA ////////////////////////////////////////////////////////////////////////////////////
4846
Shell *TheShell = NULL; ///< the shell singleton definition
4947

@@ -460,9 +458,6 @@ void Shell::showShell( Bool runInit )
460458

461459
if (!TheGlobalData->m_shellMapOn && m_screenCount == 0)
462460
{
463-
#ifdef RTS_PROFILE
464-
Profile::StopRange("init");
465-
#endif
466461
//else
467462
TheShell->push( AsciiString("Menus/MainMenu.wnd") );
468463
}

GeneralsMD/Code/GameEngine/Source/GameLogic/System/GameLogic.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@
109109
#include "GameNetwork/NetworkInterface.h"
110110
#include "GameNetwork/GameSpy/PersistentStorageThread.h"
111111

112-
#include <rts/profile.h>
113-
114112
DECLARE_PERF_TIMER(SleepyMaintenance)
115113

116114
#include "Common/UnitTimings.h" //Contains the DO_UNIT_TIMINGS define jba.
@@ -3634,14 +3632,7 @@ void GameLogic::update( void )
36343632
Total_Create_Render_Obj_Time=0;
36353633
Total_Load_3D_Assets=0;
36363634
#endif
3637-
3638-
#ifdef RTS_PROFILE
3639-
Profile::StartRange("map_load");
3640-
#endif
36413635
startNewGame( FALSE );
3642-
#ifdef RTS_PROFILE
3643-
Profile::StopRange("map_load");
3644-
#endif
36453636
m_startNewGame = FALSE;
36463637

36473638
#ifdef DUMP_PERF_STATS

GeneralsMD/Code/Main/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ target_link_libraries(z_generals PRIVATE
1111
binkstub
1212
comctl32
1313
core_debug
14-
core_profile
1514
d3d8
1615
d3dx8
1716
dbghelplib

GeneralsMD/Code/Main/WinMain.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@
6666
#include "GeneratedVersion.h"
6767
#include "resource.h"
6868

69-
#include <rts/profile.h>
70-
7169
#ifdef RTS_INTERNAL
7270
// for occasional debugging...
7371
//#pragma optimize("", off)
@@ -763,10 +761,6 @@ Int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
763761
LPSTR lpCmdLine, Int nCmdShow )
764762
{
765763

766-
#ifdef RTS_PROFILE
767-
Profile::StartRange("init");
768-
#endif
769-
770764
try {
771765

772766
_set_se_translator( DumpExceptionInfo ); // Hook that allows stack trace.
@@ -816,7 +810,7 @@ Int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
816810

817811

818812
// Force "splash image" to be loaded from a file, not a resource so same exe can be used in different localizations.
819-
#if defined RTS_DEBUG || defined RTS_INTERNAL || defined RTS_PROFILE
813+
#if defined RTS_DEBUG || defined RTS_INTERNAL
820814

821815
// check both localized directory and root dir
822816
char filePath[_MAX_PATH];

0 commit comments

Comments
 (0)