1 #ifndef MSP_DEBUG_PROFILINGSCOPE_H_
2 #define MSP_DEBUG_PROFILINGSCOPE_H_
4 #include <msp/time/timestamp.h>
11 RAII timing class to accompany Profiler. Timing starts when an object is
12 created and ends when it goes out of scope. If there was another object in an
13 outer scope, it is notified of the time used in inner scopes.
20 ProfilingScope *parent;
21 Time::TimeStamp start_t;
22 Time::TimeDelta child_t;
24 ProfilingScope(const ProfilingScope &);
25 ProfilingScope &operator=(const ProfilingScope &);
27 ProfilingScope(Profiler &p, const std::string &n);