Add profiling to SchematicCleanUp portion of connectivity calculations
This commit is contained in:
parent
8c9244e677
commit
3b46253056
|
@ -38,6 +38,7 @@
|
||||||
#include <html_messagebox.h>
|
#include <html_messagebox.h>
|
||||||
#include <executable_names.h>
|
#include <executable_names.h>
|
||||||
#include <eda_dockart.h>
|
#include <eda_dockart.h>
|
||||||
|
#include <profile.h>
|
||||||
|
|
||||||
#include <general.h>
|
#include <general.h>
|
||||||
#include <eeschema_id.h>
|
#include <eeschema_id.h>
|
||||||
|
@ -1478,10 +1479,15 @@ void SCH_EDIT_FRAME::RecalculateConnections()
|
||||||
{
|
{
|
||||||
SCH_SHEET_LIST list( g_RootSheet );
|
SCH_SHEET_LIST list( g_RootSheet );
|
||||||
|
|
||||||
|
PROF_COUNTER timer;
|
||||||
|
|
||||||
// Ensure schematic graph is accurate
|
// Ensure schematic graph is accurate
|
||||||
for( const auto& sheet : list )
|
for( const auto& sheet : list )
|
||||||
SchematicCleanUp( false, sheet.LastScreen() );
|
SchematicCleanUp( false, sheet.LastScreen() );
|
||||||
|
|
||||||
|
timer.Stop();
|
||||||
|
wxLogTrace( "CONN_PROFILE", "SchematicCleanUp() %0.4f ms", timer.msecs() );
|
||||||
|
|
||||||
g_ConnectionGraph->Recalculate( list, true );
|
g_ConnectionGraph->Recalculate( list, true );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue