1 #include "../time/utils.h"
2 #include "profilingscope.h"
9 ProfilingScope::ProfilingScope(Profiler &p, const string &n):
12 parent(profiler.enter(this)),
16 ProfilingScope::~ProfilingScope()
18 const Time::TimeDelta dt=Time::now()-start_t;
22 profiler.record(name, parent->name, dt, child_t);
25 profiler.record(name, string(), dt, child_t);
26 profiler.enter(parent);