Ticket #4056: profiler-fixheader.patch
File profiler-fixheader.patch, 17.0 KB (added by , 8 years ago) |
---|
-
source/graphics/MapGenerator.cpp
21 21 22 22 #include "lib/timer.h" 23 23 #include "ps/CLogger.h" 24 #include "ps/Profile.h" 24 25 25 26 26 27 // TODO: what's a good default? perhaps based on map size -
source/graphics/scripting/JSInterface_GameView.cpp
21 21 #include "graphics/GameView.h" 22 22 #include "ps/Game.h" 23 23 #include "ps/CLogger.h" 24 #include "ps/Profile.h" 24 25 #include "scriptinterface/ScriptInterface.h" 25 26 26 27 #define IMPLEMENT_BOOLEAN_SCRIPT_SETTING(NAME) \ -
source/gui/CList.cpp
23 23 24 24 #include "lib/external_libraries/libsdl.h" 25 25 #include "ps/CLogger.h" 26 #include "ps/Profile.h" 26 27 #include "soundmanager/ISoundManager.h" 27 28 28 29 -
source/gui/IGUIObject.cpp
22 22 #include "gui/scripting/JSInterface_GUITypes.h" 23 23 #include "gui/scripting/JSInterface_IGUIObject.h" 24 24 #include "ps/CLogger.h" 25 #include "ps/Profile.h" 25 26 #include "scriptinterface/ScriptInterface.h" 26 27 27 28 -
source/gui/scripting/ScriptFunctions.cpp
49 49 #include "ps/Globals.h" // g_frequencyFilter 50 50 #include "ps/Hotkey.h" 51 51 #include "ps/ProfileViewer.h" 52 #include "ps/Profile.h" 52 53 #include "ps/Pyrogenesis.h" 53 54 #include "ps/Replay.h" 54 55 #include "ps/SavedGame.h" -
source/i18n/scripting/JSInterface_L10n.cpp
22 22 #include "i18n/L10n.h" 23 23 #include "lib/utf8.h" 24 24 25 #include "ps/Profile.h" 26 25 27 // Returns a translation of the specified English string into the current language. 26 28 std::wstring JSI_L10n::Translate(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), const std::wstring& sourceString) 27 29 { -
source/lobby/scripting/JSInterface_Lobby.cpp
22 22 #include "gui/GUIManager.h" 23 23 #include "lib/utf8.h" 24 24 #include "lobby/IXmppClient.h" 25 #include "ps/Profile.h" 25 26 #include "scriptinterface/ScriptInterface.h" 26 27 #include "third_party/encryption/pkcs5_pbkdf2.h" 27 28 #include "third_party/encryption/sha.h" -
source/network/NetServer.cpp
28 28 #include "lib/external_libraries/enet.h" 29 29 #include "ps/CLogger.h" 30 30 #include "ps/ConfigDB.h" 31 #include "ps/Profile.h" 31 32 #include "scriptinterface/ScriptInterface.h" 32 33 #include "scriptinterface/ScriptRuntime.h" 33 34 #include "simulation2/Simulation2.h" -
source/network/NetSession.cpp
23 23 #include "NetStats.h" 24 24 #include "lib/external_libraries/enet.h" 25 25 #include "ps/CLogger.h" 26 #include "ps/Profile.h" 26 27 #include "scriptinterface/ScriptInterface.h" 27 28 28 29 const u32 NETWORK_WARNING_TIMEOUT = 4000; -
source/ps/CConsole.cpp
40 40 #include "ps/Filesystem.h" 41 41 #include "ps/Globals.h" 42 42 #include "ps/Hotkey.h" 43 #include "ps/Profile.h" 43 44 #include "ps/Pyrogenesis.h" 44 45 #include "renderer/Renderer.h" 45 46 #include "scriptinterface/ScriptInterface.h" -
source/ps/GameSetup/HWDetect.cpp
38 38 #include "ps/CLogger.h" 39 39 #include "ps/ConfigDB.h" 40 40 #include "ps/Filesystem.h" 41 #include "ps/Profile.h" 41 42 #include "ps/UserReport.h" 42 43 #include "ps/VideoMode.h" 43 44 #include "ps/GameSetup/Config.h" -
source/ps/scripting/JSInterface_ConfigDB.cpp
21 21 22 22 #include "ps/ConfigDB.h" 23 23 #include "ps/CLogger.h" 24 #include "ps/Profile.h" 24 25 #include "scriptinterface/ScriptInterface.h" 25 26 26 27 bool JSI_ConfigDB::GetConfigNamespace(const std::wstring& cfgNsString, EConfigNamespace& cfgNs) -
source/ps/scripting/JSInterface_Console.cpp
21 21 #include "JSInterface_Console.h" 22 22 #include "ps/CConsole.h" 23 23 #include "ps/CLogger.h" 24 #include "ps/Profile.h" 24 25 25 26 bool JSI_Console::CheckGlobalInitialized() 26 27 { -
source/ps/scripting/JSInterface_Mod.cpp
27 27 #include "ps/GameSetup/GameSetup.h" 28 28 #include "ps/GameSetup/Paths.h" 29 29 #include "ps/Mod.h" 30 #include "ps/Profile.h" 30 31 #include "ps/scripting/JSInterface_Mod.h" 31 32 32 33 #include <algorithm> -
source/ps/scripting/JSInterface_VisualReplay.cpp
17 17 18 18 #include "precompiled.h" 19 19 20 #include "ps/Profile.h" 20 21 #include "ps/VisualReplay.h" 21 22 #include "ps/scripting/JSInterface_VisualReplay.h" 22 23 -
source/renderer/scripting/JSInterface_Renderer.cpp
19 19 20 20 #include "JSInterface_Renderer.h" 21 21 #include "renderer/Renderer.h" 22 #include "ps/Profile.h" 22 23 23 24 #define IMPLEMENT_BOOLEAN_SCRIPT_SETTING(NAME, SCRIPTNAME) \ 24 25 bool JSI_Renderer::Get##SCRIPTNAME##Enabled(ScriptInterface::CxPrivate* UNUSED(pCxPrivate)) \ -
source/scriptinterface/ScriptInterface.h
26 26 #include "ScriptTypes.h" 27 27 #include "ScriptVal.h" 28 28 #include "ps/Errors.h" 29 #include "ps/Profile.h"30 29 31 30 ERROR_GROUP(Scripting); 32 31 ERROR_TYPE(Scripting, SetupFailed); -
source/simulation2/components/CCmpAIManager.cpp
28 28 #include "lib/allocators/shared_ptr.h" 29 29 #include "ps/CLogger.h" 30 30 #include "ps/Filesystem.h" 31 #include "ps/Profile.h" 31 32 #include "ps/Util.h" 32 33 #include "simulation2/components/ICmpAIInterface.h" 33 34 #include "simulation2/components/ICmpCommandQueue.h" -
source/simulation2/components/CCmpCommandQueue.cpp
22 22 23 23 #include "ps/CLogger.h" 24 24 #include "ps/Game.h" 25 #include "ps/Profile.h" 25 26 #include "network/NetTurnManager.h" 26 27 27 28 class CCmpCommandQueue : public ICmpCommandQueue -
source/simulation2/components/CCmpDecay.cpp
20 20 #include "simulation2/system/Component.h" 21 21 #include "ICmpDecay.h" 22 22 23 #include "ps/Profile.h" 24 23 25 #include "simulation2/MessageTypes.h" 24 26 25 27 #include "ICmpPosition.h" … … 129 131 { 130 132 case MT_Interpolate: 131 133 { 132 PROFILE 3("Decay::Interpolate");134 PROFILE("Decay::Interpolate"); 133 135 134 136 if (!m_Active) 135 137 break; -
source/simulation2/components/CCmpOverlayRenderer.cpp
28 28 #include "renderer/Renderer.h" 29 29 30 30 #include "ps/CLogger.h" 31 #include "ps/Profile.h" 31 32 32 33 class CCmpOverlayRenderer : public ICmpOverlayRenderer 33 34 { … … 79 80 { 80 81 case MT_Interpolate: 81 82 { 82 PROFILE 3("OverlayRenderer::Interpolate");83 PROFILE("OverlayRenderer::Interpolate"); 83 84 const CMessageInterpolate& msgData = static_cast<const CMessageInterpolate&> (msg); 84 85 Interpolate(msgData.deltaSimTime, msgData.offset); 85 86 break; … … 86 87 } 87 88 case MT_RenderSubmit: 88 89 { 89 PROFILE 3("OverlayRenderer::RenderSubmit");90 PROFILE("OverlayRenderer::RenderSubmit"); 90 91 const CMessageRenderSubmit& msgData = static_cast<const CMessageRenderSubmit&> (msg); 91 92 RenderSubmit(msgData.collector); 92 93 break; -
source/simulation2/components/CCmpPathfinder_Vertex.cpp
513 513 entity_pos_t x0, entity_pos_t z0, entity_pos_t clearance, 514 514 entity_pos_t range, const PathGoal& goal, pass_class_t passClass, WaypointPath& path) 515 515 { 516 PROFILE 3("ComputeShortPath");516 PROFILE("ComputeShortPath"); 517 517 518 518 m_DebugOverlayShortPathLines.clear(); 519 519 -
source/simulation2/components/CCmpPosition.cpp
34 34 #include "maths/Vector3D.h" 35 35 #include "maths/Vector2D.h" 36 36 #include "ps/CLogger.h" 37 #include "ps/Profile.h" 37 38 38 39 /** 39 40 * Basic ICmpPosition implementation. … … 758 759 { 759 760 case MT_Interpolate: 760 761 { 761 PROFILE 3("Position::Interpolate");762 PROFILE("Position::Interpolate"); 762 763 763 764 const CMessageInterpolate& msgData = static_cast<const CMessageInterpolate&> (msg); 764 765 -
source/simulation2/components/CCmpRallyPointRenderer.cpp
35 35 #include "simulation2/system/Component.h" 36 36 37 37 #include "ps/CLogger.h" 38 #include "ps/Profile.h" 39 38 40 #include "graphics/Overlay.h" 39 41 #include "graphics/TextureManager.h" 40 42 #include "renderer/Renderer.h" … … 217 219 { 218 220 case MT_RenderSubmit: 219 221 { 220 PROFILE 3("RallyPoint::RenderSubmit");222 PROFILE("RallyPoint::RenderSubmit"); 221 223 if (m_Displayed && IsSet()) 222 224 { 223 225 const CMessageRenderSubmit& msgData = static_cast<const CMessageRenderSubmit&> (msg); -
source/simulation2/components/CCmpRangeManager.cpp
1649 1649 1650 1650 void UpdateVisibilityData() 1651 1651 { 1652 PROFILE ("UpdateVisibilityData");1652 PROFILE3("UpdateVisibilityData"); 1653 1653 1654 1654 for (i32 n = 0; n < m_LosTilesPerSide * m_LosTilesPerSide; ++n) 1655 1655 { -
source/simulation2/components/CCmpSelectable.cpp
27 27 #include "maths/Matrix3D.h" 28 28 #include "maths/Vector3D.h" 29 29 #include "maths/Vector2D.h" 30 #include "ps/Profile.h" 30 31 #include "renderer/Scene.h" 31 32 #include "renderer/Renderer.h" 32 33 #include "simulation2/MessageTypes.h" … … 288 289 { 289 290 case MT_Interpolate: 290 291 { 291 PROFILE 3("Selectable::Interpolate");292 PROFILE("Selectable::Interpolate"); 292 293 293 294 const CMessageInterpolate& msgData = static_cast<const CMessageInterpolate&> (msg); 294 295 … … 362 363 break; 363 364 case MT_RenderSubmit: 364 365 { 365 PROFILE 3("Selectable::RenderSubmit");366 PROFILE("Selectable::RenderSubmit"); 366 367 367 368 const CMessageRenderSubmit& msgData = static_cast<const CMessageRenderSubmit&> (msg); 368 369 RenderSubmit(msgData.collector); -
source/simulation2/components/CCmpTerritoryManager.cpp
25 25 #include "graphics/TextureManager.h" 26 26 #include "graphics/TerritoryBoundary.h" 27 27 #include "maths/MathUtil.h" 28 #include "ps/Profile.h" 28 29 #include "ps/XML/Xeromyces.h" 29 30 #include "renderer/Renderer.h" 30 31 #include "renderer/Scene.h" -
source/simulation2/components/CCmpTest.cpp
20 20 #include "simulation2/system/Component.h" 21 21 #include "ICmpTest.h" 22 22 23 #include "ps/Profile.h" 23 24 #include "simulation2/scripting/ScriptComponent.h" 24 25 #include "simulation2/MessageTypes.h" 25 26 -
source/simulation2/components/CCmpUnitMotion.cpp
395 395 } 396 396 case MT_RenderSubmit: 397 397 { 398 PROFILE 3("UnitMotion::RenderSubmit");398 PROFILE("UnitMotion::RenderSubmit"); 399 399 const CMessageRenderSubmit& msgData = static_cast<const CMessageRenderSubmit&> (msg); 400 400 RenderSubmit(msgData.collector); 401 401 break; -
source/simulation2/components/CCmpUnitRenderer.cpp
35 35 #include "graphics/Unit.h" 36 36 #include "maths/BoundingSphere.h" 37 37 #include "maths/Matrix3D.h" 38 #include "ps/Profile.h" 38 39 #include "renderer/Scene.h" 39 40 40 41 #include "tools/atlas/GameInterface/GameLoop.h" -
source/simulation2/components/tests/test_scripts.h
18 18 #include "simulation2/system/ComponentTest.h" 19 19 20 20 #include "ps/Filesystem.h" 21 #include "ps/Profile.h" 21 22 22 23 class TestComponentScripts : public CxxTest::TestSuite 23 24 { -
source/simulation2/system/InterfaceScripted.h
19 19 #define INCLUDED_INTERFACE_SCRIPTED 20 20 21 21 #include "scriptinterface/ScriptInterface.h" 22 #include "ps/Profile.h" 22 23 23 24 #define BEGIN_INTERFACE_WRAPPER(iname) \ 24 25 JSClass class_ICmp##iname = { \ -
source/soundmanager/scripting/JSInterface_Sound.cpp
23 23 #include "lib/utf8.h" 24 24 #include "maths/Vector3D.h" 25 25 #include "ps/Filesystem.h" 26 #include "ps/Profile.h" 26 27 #include "soundmanager/SoundManager.h" 27 28 28 29 #include <sstream> -
source/test_setup.cpp
35 35 36 36 #include "lib/timer.h" 37 37 #include "lib/sysdep/sysdep.h" 38 #include "ps/Profile r2.h"38 #include "ps/Profile.h" 39 39 #include "scriptinterface/ScriptInterface.h" 40 40 41 41 class LeakReporter : public CxxTest::GlobalFixture