Add profiling to SchematicCleanUp portion of connectivity calculations

This commit is contained in:
Jon Evans 2019-04-10 23:29:17 -04:00
parent 8c9244e677
commit 3b46253056
1 changed files with 6 additions and 0 deletions

View File

@ -38,6 +38,7 @@
#include <html_messagebox.h>
#include <executable_names.h>
#include <eda_dockart.h>
#include <profile.h>
#include <general.h>
#include <eeschema_id.h>
@ -1478,10 +1479,15 @@ void SCH_EDIT_FRAME::RecalculateConnections()
{
SCH_SHEET_LIST list( g_RootSheet );
PROF_COUNTER timer;
// Ensure schematic graph is accurate
for( const auto& sheet : list )
SchematicCleanUp( false, sheet.LastScreen() );
timer.Stop();
wxLogTrace( "CONN_PROFILE", "SchematicCleanUp() %0.4f ms", timer.msecs() );
g_ConnectionGraph->Recalculate( list, true );
}