Disable two prof_counters if not ifdefed
This commit is contained in:
parent
b243c2280d
commit
6e9f833739
|
@ -268,7 +268,9 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
|
|||
if( !AskToSaveChanges() )
|
||||
return false;
|
||||
|
||||
#ifdef PROFILE
|
||||
PROF_COUNTER openFiles( "OpenProjectFile" );
|
||||
#endif
|
||||
|
||||
wxFileName pro = fullFileName;
|
||||
pro.SetExt( ProjectFileExtension );
|
||||
|
|
|
@ -1282,7 +1282,9 @@ void SCH_EDIT_FRAME::RecalculateConnections( SCH_CLEANUP_FLAGS aCleanupFlags )
|
|||
{
|
||||
SCHEMATIC_SETTINGS& settings = Schematic().Settings();
|
||||
SCH_SHEET_LIST list = Schematic().GetSheets();
|
||||
#ifdef PROFILE
|
||||
PROF_COUNTER timer;
|
||||
#endif
|
||||
|
||||
// Ensure schematic graph is accurate
|
||||
if( aCleanupFlags == LOCAL_CLEANUP )
|
||||
|
@ -1295,8 +1297,10 @@ void SCH_EDIT_FRAME::RecalculateConnections( SCH_CLEANUP_FLAGS aCleanupFlags )
|
|||
SchematicCleanUp( sheet.LastScreen() );
|
||||
}
|
||||
|
||||
#ifdef PROFILE
|
||||
timer.Stop();
|
||||
wxLogTrace( "CONN_PROFILE", "SchematicCleanUp() %0.4f ms", timer.msecs() );
|
||||
#endif
|
||||
|
||||
if( settings.m_IntersheetRefsShow )
|
||||
RecomputeIntersheetRefs();
|
||||
|
|
Loading…
Reference in New Issue