X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fdebug%2Fprofilingscope.h;h=107688886a931db5891049551e6aa1ddc2c2ecba;hp=fe9f38cecb84212f833f26e4d759303af3e9fe7c;hb=b4806214e905752617691f851717033fd3f266c2;hpb=c7afef88380ebebc8c2b04e48664d73281ec8848 diff --git a/source/debug/profilingscope.h b/source/debug/profilingscope.h index fe9f38c..1076888 100644 --- a/source/debug/profilingscope.h +++ b/source/debug/profilingscope.h @@ -18,14 +18,21 @@ private: Profiler &profiler; std::string name; ProfilingScope *parent; - Time::TimeStamp start_t; - Time::TimeDelta child_t; + Time::TimeStamp entry_time; + Time::TimeDelta time_spent; + Time::TimeDelta child_time; ProfilingScope(const ProfilingScope &); ProfilingScope &operator=(const ProfilingScope &); public: ProfilingScope(Profiler &p, const std::string &n); ~ProfilingScope(); + + const std::string &get_name() const { return name; } + const ProfilingScope *get_parent() const { return parent; } + const Time::TimeStamp &get_entry_time() const { return entry_time; } + const Time::TimeDelta &get_time_spent() const { return time_spent; } + const Time::TimeDelta &get_child_time() const { return child_time; } }; } // namespace Debug