diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-06-20 12:18:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-06-20 12:18:10 +0300 |
commit | 811b0152c0e3911a58c357ec84fac9f84dbe911a (patch) | |
tree | 6658623c25525417918503d8b69c9ebd29bebadd /src/gui/widgets | |
parent | 91f1d79f268b657c834c8df2c24368fc6067df81 (diff) | |
download | plus-811b0152c0e3911a58c357ec84fac9f84dbe911a.tar.gz plus-811b0152c0e3911a58c357ec84fac9f84dbe911a.tar.bz2 plus-811b0152c0e3911a58c357ec84fac9f84dbe911a.tar.xz plus-811b0152c0e3911a58c357ec84fac9f84dbe911a.zip |
Add more profiler labels.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/progressindicator.cpp | 2 | ||||
-rw-r--r-- | src/gui/widgets/window.cpp | 7 | ||||
-rw-r--r-- | src/gui/widgets/window.h | 4 |
3 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/widgets/progressindicator.cpp b/src/gui/widgets/progressindicator.cpp index d3d398c87..c33fa6bfe 100644 --- a/src/gui/widgets/progressindicator.cpp +++ b/src/gui/widgets/progressindicator.cpp @@ -60,8 +60,10 @@ ProgressIndicator::~ProgressIndicator() void ProgressIndicator::logic() { + BLOCK_START("ProgressIndicator::logic") if (mIndicator) mIndicator->update(10); + BLOCK_END("ProgressIndicator::logic") } void ProgressIndicator::draw(gcn::Graphics *graphics) diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp index 4e921a287..94937cac6 100644 --- a/src/gui/widgets/window.cpp +++ b/src/gui/widgets/window.cpp @@ -1195,3 +1195,10 @@ bool Window::getOptionBool(const std::string &name) const return mSkin->getOption(name) != 0; return 0; } + +#ifdef USE_PROFILER +void Window::logic() +{ + logicChildren(); +} +#endif diff --git a/src/gui/widgets/window.h b/src/gui/widgets/window.h index 11b30eba9..139dbcb1d 100644 --- a/src/gui/widgets/window.h +++ b/src/gui/widgets/window.h @@ -417,6 +417,10 @@ class Window : public gcn::Window, bool isWindowVisible() const A_WARN_UNUSED { return mVisible; } +#ifdef USE_PROFILER + virtual void logic(); +#endif + protected: bool canMove() const A_WARN_UNUSED; |