Disable script profiler in release build

This commit is contained in:
Twan van Laarhoven
2020-05-12 18:54:56 +02:00
parent cc56aec430
commit cb635bd73d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -394,7 +394,7 @@ public:
}
ScriptValueP eval(Context& ctx, bool openScope) const override {
#if USE_SCRIPT_PROFILING
#if USE_SCRIPT_PROFILING && 0 // this is very slow
Timer timer;
{
// execute a
+1 -1
View File
@@ -12,7 +12,7 @@
#include <script/script.hpp>
#include <script/context.hpp>
#ifndef USE_SCRIPT_PROFILING
#if !defined(USE_SCRIPT_PROFILING) && defined(_DEBUG)
#define USE_SCRIPT_PROFILING 1
#endif