22 #ifndef UTILS_PERFOMANCE_H
23 #define UTILS_PERFOMANCE_H
35 #define PROFILER_START() Perfomance::start();
36 #define PROFILER_END() Perfomance::flush();
37 #define BLOCK_START(name) Perfomance::blockStart(name);
38 #define BLOCK_END(name) Perfomance::blockEnd(name);
39 #define FUNC_BLOCK(name, id) Perfomance::Func PerfomanceFunc##id(name);
45 void init(
const std::string &path);
49 void blockStart(
const std::string &name);
51 void blockEnd(
const std::string &name);
58 explicit Func(
const std::string &str) :
77 #define PROFILER_START()
78 #define PROFILER_END()
79 #define BLOCK_START(name)
80 #define BLOCK_END(name)
81 #define FUNC_BLOCK(name, id)
#define A_DELETE_COPY(func)