Profile can live in core
This commit is contained in:
parent
3e6f7ab3e5
commit
7505fd0f37
|
@ -51,7 +51,7 @@
|
||||||
#include <wx/log.h>
|
#include <wx/log.h>
|
||||||
|
|
||||||
#ifdef PRINT_STATISTICS_3D_VIEWER
|
#ifdef PRINT_STATISTICS_3D_VIEWER
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
#include <board.h>
|
#include <board.h>
|
||||||
#include <reporter.h>
|
#include <reporter.h>
|
||||||
#include <gl_context_mgr.h>
|
#include <gl_context_mgr.h>
|
||||||
#include <profile.h> // To use GetRunningMicroSecs or another profiling utility
|
#include <core/profile.h> // To use GetRunningMicroSecs or another profiling utility
|
||||||
#include <bitmaps.h>
|
#include <bitmaps.h>
|
||||||
#include <macros.h>
|
#include <macros.h>
|
||||||
#include <menus_helpers.h>
|
#include <menus_helpers.h>
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#include "convert_basic_shapes_to_polygon.h"
|
#include "convert_basic_shapes_to_polygon.h"
|
||||||
#include <trigo.h>
|
#include <trigo.h>
|
||||||
#include <project.h>
|
#include <project.h>
|
||||||
#include <profile.h> // To use GetRunningMicroSecs or another profiling utility
|
#include <core/profile.h> // To use GetRunningMicroSecs or another profiling utility
|
||||||
#include <fp_lib_table.h>
|
#include <fp_lib_table.h>
|
||||||
#include <eda_3d_viewer_frame.h>
|
#include <eda_3d_viewer_frame.h>
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
#include <eda_3d_viewer_frame.h>
|
#include <eda_3d_viewer_frame.h>
|
||||||
|
|
||||||
#include <base_units.h>
|
#include <base_units.h>
|
||||||
#include <profile.h> // To use GetRunningMicroSecs or another profiling utility
|
#include <core/profile.h> // To use GetRunningMicroSecs or another profiling utility
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Perform an interpolation step to easy control the transparency based on the
|
* Perform an interpolation step to easy control the transparency based on the
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
#include "3d_fastmath.h"
|
#include "3d_fastmath.h"
|
||||||
#include "3d_math.h"
|
#include "3d_math.h"
|
||||||
#include "../common_ogl/ogl_utils.h"
|
#include "../common_ogl/ogl_utils.h"
|
||||||
#include <profile.h> // To use GetRunningMicroSecs or another profiling utility
|
#include <core/profile.h> // To use GetRunningMicroSecs or another profiling utility
|
||||||
#include <wx/log.h>
|
#include <wx/log.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -353,7 +353,6 @@ set( COMMON_SRCS
|
||||||
footprint_info.cpp
|
footprint_info.cpp
|
||||||
gbr_metadata.cpp
|
gbr_metadata.cpp
|
||||||
gestfich.cpp
|
gestfich.cpp
|
||||||
getrunningmicrosecs.cpp
|
|
||||||
gr_basic.cpp
|
gr_basic.cpp
|
||||||
grid_tricks.cpp
|
grid_tricks.cpp
|
||||||
hotkey_store.cpp
|
hotkey_store.cpp
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
|
|
||||||
#include <database/database_connection.h>
|
#include <database/database_connection.h>
|
||||||
#include <database/database_cache.h>
|
#include <database/database_cache.h>
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
|
|
||||||
|
|
||||||
const char* const traceDatabase = "KICAD_DATABASE";
|
const char* const traceDatabase = "KICAD_DATABASE";
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
|
|
||||||
#include <kiplatform/ui.h>
|
#include <kiplatform/ui.h>
|
||||||
|
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
|
|
||||||
#include <pgm_base.h>
|
#include <pgm_base.h>
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
|
|
||||||
#ifdef KICAD_GAL_PROFILE
|
#ifdef KICAD_GAL_PROFILE
|
||||||
#include <wx/log.h>
|
#include <wx/log.h>
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
#endif /* KICAD_GAL_PROFILE */
|
#endif /* KICAD_GAL_PROFILE */
|
||||||
|
|
||||||
using namespace KIGFX;
|
using namespace KIGFX;
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
#include <list>
|
#include <list>
|
||||||
|
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
#include <trace_helpers.h>
|
#include <trace_helpers.h>
|
||||||
|
|
||||||
using namespace KIGFX;
|
using namespace KIGFX;
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
#include <wx/log.h>
|
#include <wx/log.h>
|
||||||
#ifdef KICAD_GAL_PROFILE
|
#ifdef KICAD_GAL_PROFILE
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
#endif /* KICAD_GAL_PROFILE */
|
#endif /* KICAD_GAL_PROFILE */
|
||||||
|
|
||||||
using namespace KIGFX;
|
using namespace KIGFX;
|
||||||
|
|
|
@ -32,14 +32,14 @@
|
||||||
#include <gal/opengl/utils.h>
|
#include <gal/opengl/utils.h>
|
||||||
#include <gal/opengl/vertex_item.h>
|
#include <gal/opengl/vertex_item.h>
|
||||||
|
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
|
|
||||||
#include <typeinfo>
|
#include <typeinfo>
|
||||||
#include <confirm.h>
|
#include <confirm.h>
|
||||||
#include <trace_helpers.h>
|
#include <trace_helpers.h>
|
||||||
|
|
||||||
#ifdef KICAD_GAL_PROFILE
|
#ifdef KICAD_GAL_PROFILE
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
#include <wx/log.h>
|
#include <wx/log.h>
|
||||||
#endif /* KICAD_GAL_PROFILE */
|
#endif /* KICAD_GAL_PROFILE */
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
#include <geometry/geometry_utils.h>
|
#include <geometry/geometry_utils.h>
|
||||||
#include <core/thread_pool.h>
|
#include <core/thread_pool.h>
|
||||||
|
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
#include <trace_helpers.h>
|
#include <trace_helpers.h>
|
||||||
|
|
||||||
#include <gl_utils.h>
|
#include <gl_utils.h>
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
#include <gal/graphics_abstraction_layer.h>
|
#include <gal/graphics_abstraction_layer.h>
|
||||||
#include <gal/painter.h>
|
#include <gal/painter.h>
|
||||||
|
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
|
|
||||||
#ifdef KICAD_GAL_PROFILE
|
#ifdef KICAD_GAL_PROFILE
|
||||||
#include <wx/log.h>
|
#include <wx/log.h>
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <pgm_base.h>
|
#include <pgm_base.h>
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
#include <view/view.h>
|
#include <view/view.h>
|
||||||
#include <view/wx_view_controls.h>
|
#include <view/wx_view_controls.h>
|
||||||
#include <view/zoom_controller.h>
|
#include <view/zoom_controller.h>
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#include <future>
|
#include <future>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <core/kicad_algo.h>
|
#include <core/kicad_algo.h>
|
||||||
#include <erc.h>
|
#include <erc.h>
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
#include <kiplatform/app.h>
|
#include <kiplatform/app.h>
|
||||||
#include <lockfile.h>
|
#include <lockfile.h>
|
||||||
#include <pgm_base.h>
|
#include <pgm_base.h>
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
#include <project/project_file.h>
|
#include <project/project_file.h>
|
||||||
#include <project_rescue.h>
|
#include <project_rescue.h>
|
||||||
#include <dialog_HTML_reporter_base.h>
|
#include <dialog_HTML_reporter_base.h>
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
#include <symbol_edit_frame.h>
|
#include <symbol_edit_frame.h>
|
||||||
#include <symbol_viewer_frame.h>
|
#include <symbol_viewer_frame.h>
|
||||||
#include <pgm_base.h>
|
#include <pgm_base.h>
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
#include <project/project_file.h>
|
#include <project/project_file.h>
|
||||||
#include <project/net_settings.h>
|
#include <project/net_settings.h>
|
||||||
#include <python_scripting.h>
|
#include <python_scripting.h>
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
// TODO(JE) Debugging only
|
// TODO(JE) Debugging only
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
#include "sch_bus_entry.h"
|
#include "sch_bus_entry.h"
|
||||||
#include "sim/sim_model_ideal.h"
|
#include "sim/sim_model_ideal.h"
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#include <env_paths.h>
|
#include <env_paths.h>
|
||||||
#include <pgm_base.h>
|
#include <pgm_base.h>
|
||||||
#include <kiway.h>
|
#include <kiway.h>
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
#include <wx_filename.h>
|
#include <wx_filename.h>
|
||||||
#include <sch_io_mgr.h>
|
#include <sch_io_mgr.h>
|
||||||
#include <sch_plugins/legacy/sch_legacy_plugin.h>
|
#include <sch_plugins/legacy/sch_legacy_plugin.h>
|
||||||
|
|
|
@ -8,6 +8,7 @@ endif()
|
||||||
add_library( core STATIC
|
add_library( core STATIC
|
||||||
base64.cpp
|
base64.cpp
|
||||||
observable.cpp
|
observable.cpp
|
||||||
|
profile.cpp
|
||||||
thread_pool.cpp
|
thread_pool.cpp
|
||||||
version_compare.cpp
|
version_compare.cpp
|
||||||
wx_stl_compat.cpp
|
wx_stl_compat.cpp
|
||||||
|
@ -20,4 +21,6 @@ target_link_libraries( core PUBLIC
|
||||||
target_include_directories( core PUBLIC
|
target_include_directories( core PUBLIC
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||||
$<TARGET_PROPERTY:thread-pool,INTERFACE_INCLUDE_DIRECTORIES>
|
$<TARGET_PROPERTY:thread-pool,INTERFACE_INCLUDE_DIRECTORIES>
|
||||||
|
PRIVATE
|
||||||
|
${CMAKE_BINARY_DIR} # to get config.h
|
||||||
)
|
)
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||||
*
|
*
|
||||||
|
@ -25,7 +24,6 @@
|
||||||
|
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <common.h>
|
|
||||||
|
|
||||||
#if defined( _WIN32 )
|
#if defined( _WIN32 )
|
||||||
|
|
||||||
|
@ -73,4 +71,3 @@ unsigned GetRunningMicroSecs()
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
//#define BENCHMARK
|
//#define BENCHMARK
|
||||||
|
|
||||||
#ifdef BENCHMARK
|
#ifdef BENCHMARK
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
#include <wx/log.h>
|
#include <wx/log.h>
|
||||||
|
|
||||||
#ifdef PROFILE
|
#ifdef PROFILE
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef PROFILE
|
#ifdef PROFILE
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
|
|
||||||
#include <wx/crt.h>
|
#include <wx/crt.h>
|
||||||
#include <wx/log.h>
|
#include <wx/log.h>
|
||||||
#include <profile.h> // To use GetRunningMicroSecs or another profiling utility
|
#include <core/profile.h> // To use GetRunningMicroSecs or another profiling utility
|
||||||
|
|
||||||
#define OCC_VERSION_MIN 0x070500
|
#define OCC_VERSION_MIN 0x070500
|
||||||
|
|
||||||
|
|
|
@ -103,7 +103,7 @@
|
||||||
#include <widgets/pcb_properties_panel.h>
|
#include <widgets/pcb_properties_panel.h>
|
||||||
#include <widgets/wx_aui_utils.h>
|
#include <widgets/wx_aui_utils.h>
|
||||||
#include <kiplatform/app.h>
|
#include <kiplatform/app.h>
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
#include <view/wx_view_controls.h>
|
#include <view/wx_view_controls.h>
|
||||||
#include <footprint_viewer_frame.h>
|
#include <footprint_viewer_frame.h>
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
#include <pcb_shape.h>
|
#include <pcb_shape.h>
|
||||||
#include <pcb_text.h>
|
#include <pcb_text.h>
|
||||||
#include <pcb_track.h>
|
#include <pcb_track.h>
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
#include <string_utils.h>
|
#include <string_utils.h>
|
||||||
#include <zone.h>
|
#include <zone.h>
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef PROFILE
|
#ifdef PROFILE
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <ratsnest/ratsnest_data.h>
|
#include <ratsnest/ratsnest_data.h>
|
||||||
|
|
|
@ -67,7 +67,7 @@ using namespace std::placeholders;
|
||||||
#include <wx/event.h>
|
#include <wx/event.h>
|
||||||
#include <wx/timer.h>
|
#include <wx/timer.h>
|
||||||
#include <wx/log.h>
|
#include <wx/log.h>
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
#include <math/vector2wx.h>
|
#include <math/vector2wx.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
#include "zone_filler_tool.h"
|
#include "zone_filler_tool.h"
|
||||||
#include "zone_filler.h"
|
#include "zone_filler.h"
|
||||||
#include "teardrop/teardrop.h"
|
#include "teardrop/teardrop.h"
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
|
|
||||||
ZONE_FILLER_TOOL::ZONE_FILLER_TOOL() :
|
ZONE_FILLER_TOOL::ZONE_FILLER_TOOL() :
|
||||||
PCB_TOOL_BASE( "pcbnew.ZoneFiller" ),
|
PCB_TOOL_BASE( "pcbnew.ZoneFiller" ),
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
#include <wx/popupwin.h>
|
#include <wx/popupwin.h>
|
||||||
#include <wx/cmdline.h>
|
#include <wx/cmdline.h>
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
|
|
||||||
#include <pgm_base.h>
|
#include <pgm_base.h>
|
||||||
#include <settings/settings_manager.h>
|
#include <settings/settings_manager.h>
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
#include <qa_utils/utility_registry.h>
|
#include <qa_utils/utility_registry.h>
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
|
|
||||||
#include <wx/cmdline.h>
|
#include <wx/cmdline.h>
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
|
|
||||||
#include <wx/cmdline.h>
|
#include <wx/cmdline.h>
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
|
|
||||||
#include <wx/cmdline.h>
|
#include <wx/cmdline.h>
|
||||||
#include <wx/init.h>
|
#include <wx/init.h>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
|
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
|
|
||||||
bool testEvalExpr( const std::string expr, LIBEVAL::VALUE expectedResult, bool expectError = false,
|
bool testEvalExpr( const std::string expr, LIBEVAL::VALUE expectedResult, bool expectError = false,
|
||||||
BOARD_ITEM* itemA = nullptr, BOARD_ITEM* itemB = nullptr )
|
BOARD_ITEM* itemA = nullptr, BOARD_ITEM* itemB = nullptr )
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
|
|
||||||
#include <wx/cmdline.h>
|
#include <wx/cmdline.h>
|
||||||
#include <wx/msgout.h>
|
#include <wx/msgout.h>
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
#include <board.h>
|
#include <board.h>
|
||||||
#include <core/ignore.h>
|
#include <core/ignore.h>
|
||||||
#include <zone.h>
|
#include <zone.h>
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#include <confirm.h>
|
#include <confirm.h>
|
||||||
#include <wx/clipbrd.h>
|
#include <wx/clipbrd.h>
|
||||||
#include <pgm_base.h>
|
#include <pgm_base.h>
|
||||||
#include <profile.h>
|
#include <core/profile.h>
|
||||||
#include <reporter.h>
|
#include <reporter.h>
|
||||||
#include <trace_helpers.h>
|
#include <trace_helpers.h>
|
||||||
#include <view/view_overlay.h>
|
#include <view/view_overlay.h>
|
||||||
|
|
Loading…
Reference in New Issue