From ad6571a508dd47a8f4278907b9198b3b0dbb8e13 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 26 Feb 2018 16:46:35 +0100 Subject: [PATCH] GAL profiling: changed wxLogDebug() to wxLogTrace() for DRAW_PANEL_GAL --- common/draw_panel_gal.cpp | 8 ++++---- common/view/view.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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__ */ }