Move profiler command line to main, move key to external file, add register function

This commit is contained in:
2019-07-02 15:31:40 +02:00
parent 5452021ab7
commit bcb7f00f68
4 changed files with 41 additions and 22 deletions

View File

@@ -10,7 +10,7 @@ public:
std::map<std::string, uint32_t> calls;
void record_function_call(const char *function_name);
void reset();
bool command_line(const std::string &input);
void print() const;
};
#define PROFILER_RECORD profiler.record_function_call(__func__)