BLT/include/blt/profiling/profiler.h

30 lines
526 B
C
Raw Normal View History

2022-12-23 13:50:27 -05:00
/*
* 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
2022-12-25 23:19:44 -05:00
#include <string>
#include <string_view>
2022-12-23 13:50:27 -05:00
2022-12-25 23:19:44 -05:00
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>();
};
2022-12-23 13:50:27 -05:00
#endif //BLT_PROFILER_H