diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-08 22:16:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-08 22:16:08 +0300 |
commit | 72e775bac71b2d4b5103a0e8a6f03875b1617321 (patch) | |
tree | cc5c49b56702c6ded58b0a0d026bbe9c6ac4ecf8 /src/net/tmwa/network.cpp | |
parent | 693c51aa92d406d4ac5125d8960f740853b103b2 (diff) | |
download | manaplus-72e775bac71b2d4b5103a0e8a6f03875b1617321.tar.gz manaplus-72e775bac71b2d4b5103a0e8a6f03875b1617321.tar.bz2 manaplus-72e775bac71b2d4b5103a0e8a6f03875b1617321.tar.xz manaplus-72e775bac71b2d4b5103a0e8a6f03875b1617321.zip |
extent profiler logging into some functions.
Diffstat (limited to 'src/net/tmwa/network.cpp')
-rw-r--r-- | src/net/tmwa/network.cpp | 8 |
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() |