summaryrefslogtreecommitdiff
path: root/src/gui/windows/debugwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-08 22:16:08 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-08 22:16:08 +0300
commit72e775bac71b2d4b5103a0e8a6f03875b1617321 (patch)
treecc5c49b56702c6ded58b0a0d026bbe9c6ac4ecf8 /src/gui/windows/debugwindow.cpp
parent693c51aa92d406d4ac5125d8960f740853b103b2 (diff)
downloadmanaverse-72e775bac71b2d4b5103a0e8a6f03875b1617321.tar.gz
manaverse-72e775bac71b2d4b5103a0e8a6f03875b1617321.tar.bz2
manaverse-72e775bac71b2d4b5103a0e8a6f03875b1617321.tar.xz
manaverse-72e775bac71b2d4b5103a0e8a6f03875b1617321.zip
extent profiler logging into some functions.
Diffstat (limited to 'src/gui/windows/debugwindow.cpp')
-rw-r--r--src/gui/windows/debugwindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/windows/debugwindow.cpp b/src/gui/windows/debugwindow.cpp
index 3c3a856b8..90a8fccd6 100644
--- a/src/gui/windows/debugwindow.cpp
+++ b/src/gui/windows/debugwindow.cpp
@@ -266,6 +266,7 @@ MapDebugTab::MapDebugTab(const Widget2 *const widget) :
void MapDebugTab::logic()
{
+ BLOCK_START("MapDebugTab::logic")
if (player_node)
{
// TRANSLATORS: debug window label
@@ -359,6 +360,7 @@ void MapDebugTab::logic()
mFPSLabel->setCaption(strprintf(mFPSText.c_str(), fps));
// TRANSLATORS: debug window label, logic per second
mLPSLabel->setCaption(strprintf(_("%d LPS"), lps));
+ BLOCK_END("MapDebugTab::logic")
}
TargetDebugTab::TargetDebugTab(const Widget2 *const widget) :
@@ -409,6 +411,7 @@ TargetDebugTab::TargetDebugTab(const Widget2 *const widget) :
void TargetDebugTab::logic()
{
+ BLOCK_START("TargetDebugTab::logic")
if (player_node && player_node->getTarget())
{
const Being *const target = player_node->getTarget();
@@ -504,6 +507,7 @@ void TargetDebugTab::logic()
mTargetPartyLabel->adjustSize();
mTargetGuildLabel->adjustSize();
mAttackDelayLabel->adjustSize();
+ BLOCK_END("TargetDebugTab::logic")
}
NetDebugTab::NetDebugTab(const Widget2 *const widget) :
@@ -526,6 +530,7 @@ NetDebugTab::NetDebugTab(const Widget2 *const widget) :
void NetDebugTab::logic()
{
+ BLOCK_START("NetDebugTab::logic")
// TRANSLATORS: debug window label
mPingLabel->setCaption(strprintf(_("Ping: %s ms"),
player_node->getPingTime().c_str()));
@@ -535,4 +540,5 @@ void NetDebugTab::logic()
// TRANSLATORS: debug window label
mOutPackets1Label->setCaption(strprintf(_("Out: %d bytes/s"),
PacketCounters::getOutBytes()));
+ BLOCK_END("NetDebugTab::logic")
}