summaryrefslogtreecommitdiff
path: root/src/net
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/net
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/net')
-rw-r--r--src/net/tmwa/network.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/net/tmwa/network.cpp b/src/net/tmwa/network.cpp
index a843c9b6b..175713d49 100644
--- a/src/net/tmwa/network.cpp
+++ b/src/net/tmwa/network.cpp
@@ -138,10 +138,11 @@ void Network::clearHandlers()
void Network::dispatchMessages()
{
- BLOCK_START("Network::dispatchMessages")
+ BLOCK_START("Network::dispatchMessages 1")
while (messageReady())
{
SDL_mutexP(mMutex);
+ BLOCK_START("Network::dispatchMessages 2")
const int msgId = readWord(0);
int len;
if (msgId == SMSG_SERVER_VERSION_RESPONSE)
@@ -156,6 +157,8 @@ void Network::dispatchMessages()
MessageIn msg(mInBuffer, len);
SDL_mutexV(mMutex);
+ BLOCK_END("Network::dispatchMessages 2")
+ BLOCK_START("Network::dispatchMessages 3")
if (len == 0)
{
@@ -175,8 +178,9 @@ void Network::dispatchMessages()
}
skip(len);
+ BLOCK_END("Network::dispatchMessages 3")
}
- BLOCK_END("Network::dispatchMessages")
+ BLOCK_END("Network::dispatchMessages 1")
}
bool Network::messageReady()