From e5a1763e9b40f358b26c6b13424bc9732f7a8307 Mon Sep 17 00:00:00 2001 From: Brett Date: Sun, 25 Dec 2022 23:19:44 -0500 Subject: [PATCH] Code setup --- CMakeLists.txt | 4 ++-- include/blt/profiling/profiler.h | 17 +++++++++++++++++ src/blt/profiling/profiler.cpp | 2 +- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 78683f7..a11a2f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,13 +7,13 @@ option(BUILD_STD "Build the BLT standard utilities." ON) option(BUILD_PROFILING "Build the BLT profiler extension" ON) if(${BUILD_STD}) - file(GLOB_RECURSE STD_FILES "src/blt/std") + file(GLOB_RECURSE STD_FILES "${CMAKE_SOURCE_DIR}/src/blt/std/*.cpp") else() set(STD_FILES "") endif() if(${BUILD_PROFILING}) - file(GLOB_RECURSE PROFILING_FILES "src/blt/profiling") + file(GLOB_RECURSE PROFILING_FILES "${CMAKE_SOURCE_DIR}/src/blt/profiling/*.cpp") else() set(PROFILING_FILES "") endif() diff --git a/include/blt/profiling/profiler.h b/include/blt/profiling/profiler.h index 338a719..3cba2e0 100644 --- a/include/blt/profiling/profiler.h +++ b/include/blt/profiling/profiler.h @@ -7,6 +7,23 @@ #ifndef BLT_PROFILER_H #define BLT_PROFILER_H +#include +#include +struct CapturePoint { + long point; +}; + +struct CaptureInterval { + CapturePoint start; + CapturePoint end; +}; + +template +class Profiler { + private: + MAP_TYPE* intervals; + MAP_TYPE* points = new MAP_TYPE(); +}; #endif //BLT_PROFILER_H diff --git a/src/blt/profiling/profiler.cpp b/src/blt/profiling/profiler.cpp index ad66f69..0375e8e 100644 --- a/src/blt/profiling/profiler.cpp +++ b/src/blt/profiling/profiler.cpp @@ -3,4 +3,4 @@ * Licensed under GNU General Public License V3.0 * See LICENSE file for license detail */ -#include \ No newline at end of file +#include \ No newline at end of file