Initial commit
This commit is contained in:
16
profiler.cpp
Normal file
16
profiler.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "profiler.hpp"
|
||||
|
||||
using std::string;
|
||||
|
||||
Profiler profiler;
|
||||
|
||||
void Profiler::record_function_call(char *function_name)
|
||||
{
|
||||
calls[function_name]++;
|
||||
}
|
||||
|
||||
void Profiler::clear()
|
||||
{
|
||||
calls.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user