Implement profiler
This commit is contained in:
@@ -8,12 +8,11 @@ class Profiler
|
||||
{
|
||||
public:
|
||||
std::map<std::string, uint32_t> calls;
|
||||
void record_function_call(char *function_name);
|
||||
void record_function_call(const char *function_name);
|
||||
void clear();
|
||||
};
|
||||
|
||||
//#define PROFILER_RECORD profiler.record_function_call((char*) __func__)
|
||||
#define PROFILER_RECORD
|
||||
#define PROFILER_RECORD profiler.record_function_call(__func__)
|
||||
|
||||
extern Profiler profiler;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user