#ifndef PROFILER_HPP_ #define PROFILER_HPP_ #include #include class Profiler { public: std::map calls; void record_function_call(const char *function_name); void reset(); void print() const; }; #define PROFILER_RECORD profiler.record_function_call(__func__) extern Profiler profiler; #endif