Profiler test

v1
Brett 2022-12-26 23:36:34 -05:00
parent e50d6ab469
commit 1bbc7959b0
2 changed files with 10 additions and 3 deletions

View File

@ -9,6 +9,7 @@
#include <string> #include <string>
#include <string_view> #include <string_view>
#include <map>
namespace BLT { namespace BLT {
struct CapturePoint { struct CapturePoint {
@ -20,11 +21,14 @@ namespace BLT {
CapturePoint end; CapturePoint end;
}; };
template<class MAP_TYPE>
class Profiler { class Profiler {
private: private:
MAP_TYPE intervals; std::map<std::string_view, CaptureInterval>* intervals;
MAP_TYPE points; std::map<std::string_view, CapturePoint>* points;
public:
Profiler(std::map<std::string_view, CaptureInterval>* test) {
intervals = test;
}
}; };
} }

View File

@ -7,6 +7,9 @@
#ifndef BLT_QUEUES_H #ifndef BLT_QUEUES_H
#define BLT_QUEUES_H #define BLT_QUEUES_H
/**
* Do no use any queue in this file. They are slower than std::queue.
*/
namespace BLT { namespace BLT {
template<typename T> template<typename T>