Commit efa8c0d1 authored by twanvl's avatar twanvl

only include ProfilerPanel when profiling is enabled

parent da67077b
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
#include <script/profiler.hpp> #include <script/profiler.hpp>
#include <wx/dcbuffer.h> #include <wx/dcbuffer.h>
#if USE_SCRIPT_PROFILING
DECLARE_TYPEOF_COLLECTION(FunctionProfileP); DECLARE_TYPEOF_COLLECTION(FunctionProfileP);
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
...@@ -177,3 +179,5 @@ void show_profiler_window(wxWindow* parent) { ...@@ -177,3 +179,5 @@ void show_profiler_window(wxWindow* parent) {
dlg->SetSizer(sizer); dlg->SetSizer(sizer);
dlg->Show(); dlg->Show();
} }
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment