- added a more proper #define setup to completely stub out debugging to test performance

(simply uncomment #define UNDEF_DEBUG and the debug statements become nothing)
- Added piles of experimental changes for testing different performance scenarios (all of these changes are turned off by default and will most likely eventually be removed)
This commit is contained in:
Mark Vejvoda
2010-05-07 06:46:55 +00:00
parent 1a6bb489b8
commit 8aa14009d1
12 changed files with 211 additions and 27 deletions

View File

@@ -20,6 +20,8 @@
using std::string;
using namespace Shared::Platform;
//#define UNDEF_DEBUG
namespace Shared{ namespace Util{
class SystemFlags
@@ -103,7 +105,21 @@ public:
static void init();
static SystemFlagsType & getSystemSettingType(DebugType type) { return debugLogFileList[type]; }
static void OutputDebug(DebugType type, const char *fmt, ...);
// Let the macro call into this when require.. NEVER call it automatically.
static void handleDebug(DebugType type, const char *fmt, ...);
#ifndef UNDEF_DEBUG
#define OutputDebug(type, fmt, ...) SystemFlags::handleDebug (type, fmt, ##__VA_ARGS__)
#else
// stub out debugging completely
#define OutputDebug(type, fmt, ...) type
#endif
static void Close();
};