Profiler test
parent
e50d6ab469
commit
1bbc7959b0
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <map>
|
||||
|
||||
namespace BLT {
|
||||
struct CapturePoint {
|
||||
|
@ -20,11 +21,14 @@ namespace BLT {
|
|||
CapturePoint end;
|
||||
};
|
||||
|
||||
template<class MAP_TYPE>
|
||||
class Profiler {
|
||||
private:
|
||||
MAP_TYPE intervals;
|
||||
MAP_TYPE points;
|
||||
std::map<std::string_view, CaptureInterval>* intervals;
|
||||
std::map<std::string_view, CapturePoint>* points;
|
||||
public:
|
||||
Profiler(std::map<std::string_view, CaptureInterval>* test) {
|
||||
intervals = test;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -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<typename T>
|
||||
|
|
Loading…
Reference in New Issue