30 lines
526 B
C++
30 lines
526 B
C++
/*
|
|
* Created by Brett on 23/12/22.
|
|
* Licensed under GNU General Public License V3.0
|
|
* See LICENSE file for license detail
|
|
*/
|
|
|
|
#ifndef BLT_PROFILER_H
|
|
#define BLT_PROFILER_H
|
|
|
|
#include <string>
|
|
#include <string_view>
|
|
|
|
struct CapturePoint {
|
|
long point;
|
|
};
|
|
|
|
struct CaptureInterval {
|
|
CapturePoint start;
|
|
CapturePoint end;
|
|
};
|
|
|
|
template<class MAP_TYPE>
|
|
class Profiler {
|
|
private:
|
|
MAP_TYPE* intervals;
|
|
MAP_TYPE* points = new MAP_TYPE<std::string_view, CaptureInterval>();
|
|
};
|
|
|
|
#endif //BLT_PROFILER_H
|