diff --git a/common/draw_panel_gal.cpp b/common/draw_panel_gal.cpp index 4037ba1f73..b17beafd70 100644 --- a/common/draw_panel_gal.cpp +++ b/common/draw_panel_gal.cpp @@ -40,7 +40,7 @@ #include #include -#ifdef PROFILE +#ifdef __WXDEBUG__ #include #endif /* PROFILE */ @@ -152,7 +152,7 @@ void EDA_DRAW_PANEL_GAL::onPaint( wxPaintEvent& WXUNUSED( aEvent ) ) if( m_drawing ) return; -#ifdef PROFILE +#ifdef __WXDEBUG__ PROF_COUNTER totalRealTime; #endif /* PROFILE */ @@ -203,9 +203,9 @@ void EDA_DRAW_PANEL_GAL::onPaint( wxPaintEvent& WXUNUSED( aEvent ) ) DisplayError( m_parent, wxString( err.what() ) ); } -#ifdef PROFILE +#ifdef __WXDEBUG__ totalRealTime.Stop(); - wxLogDebug( "EDA_DRAW_PANEL_GAL::onPaint(): %.1f ms", totalRealTime.msecs() ); + wxLogTrace( "GAL_PROFILE", "EDA_DRAW_PANEL_GAL::onPaint(): %.1f ms", totalRealTime.msecs() ); #endif /* PROFILE */ m_lastRefresh = wxGetLocalTimeMillis(); diff --git a/common/view/view.cpp b/common/view/view.cpp index 0b82766cee..c42d4d0b9f 100644 --- a/common/view/view.cpp +++ b/common/view/view.cpp @@ -1031,7 +1031,7 @@ void VIEW::Redraw() #ifdef __WXDEBUG__ totalRealTime.Stop(); - wxLogTrace( "GAL_PROFILE", wxT( "VIEW::Redraw(): %.1f ms" ), totalRealTime.msecs() ); + wxLogTrace( "GAL_PROFILE", "VIEW::Redraw(): %.1f ms", totalRealTime.msecs() ); #endif /* __WXDEBUG__ */ }