From 1bbc7959b0fbd4688e7beeb3f0b7bb134095ed91 Mon Sep 17 00:00:00 2001 From: Brett Date: Mon, 26 Dec 2022 23:36:34 -0500 Subject: [PATCH] Profiler test --- include/blt/profiling/profiler.h | 10 +++++++--- include/blt/std/queues.h | 3 +++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/include/blt/profiling/profiler.h b/include/blt/profiling/profiler.h index d408882..6952aa2 100644 --- a/include/blt/profiling/profiler.h +++ b/include/blt/profiling/profiler.h @@ -9,6 +9,7 @@ #include #include +#include namespace BLT { struct CapturePoint { @@ -20,11 +21,14 @@ namespace BLT { CapturePoint end; }; - template class Profiler { private: - MAP_TYPE intervals; - MAP_TYPE points; + std::map* intervals; + std::map* points; + public: + Profiler(std::map* test) { + intervals = test; + } }; } diff --git a/include/blt/std/queues.h b/include/blt/std/queues.h index 33ba7c2..988c443 100644 --- a/include/blt/std/queues.h +++ b/include/blt/std/queues.h @@ -7,6 +7,9 @@ #ifndef BLT_QUEUES_H #define BLT_QUEUES_H +/** + * Do no use any queue in this file. They are slower than std::queue. + */ namespace BLT { template