mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 01:04:06 +00:00
Fix tests and Atlas with new profiler
This was SVN commit r10471.
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
|
||||
#include "lib/timer.h"
|
||||
#include "lib/sysdep/sysdep.h"
|
||||
#include "ps/Profiler2.h"
|
||||
#include "scriptinterface/ScriptInterface.h"
|
||||
|
||||
class LeakReporter : public CxxTest::GlobalFixture
|
||||
@@ -77,9 +78,17 @@ class MiscSetup : public CxxTest::GlobalFixture
|
||||
setlocale(LC_CTYPE, "UTF-8");
|
||||
#endif
|
||||
|
||||
g_Profiler2.Initialise();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual bool tearDownWorld()
|
||||
{
|
||||
g_Profiler2.Shutdown();
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
static LeakReporter leakReporter;
|
||||
|
||||
Reference in New Issue
Block a user