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/net/tmwa/playerhandler.cpp | |
parent | 91f1d79f268b657c834c8df2c24368fc6067df81 (diff) | |
download | manaplus-811b0152c0e3911a58c357ec84fac9f84dbe911a.tar.gz manaplus-811b0152c0e3911a58c357ec84fac9f84dbe911a.tar.bz2 manaplus-811b0152c0e3911a58c357ec84fac9f84dbe911a.tar.xz manaplus-811b0152c0e3911a58c357ec84fac9f84dbe911a.zip |
Add more profiler labels.
Diffstat (limited to 'src/net/tmwa/playerhandler.cpp')
-rw-r--r-- | src/net/tmwa/playerhandler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp index b63be0a6d..645959fbc 100644 --- a/src/net/tmwa/playerhandler.cpp +++ b/src/net/tmwa/playerhandler.cpp @@ -222,6 +222,7 @@ void PlayerHandler::processOnlineList(Net::MessageIn &msg) const if (!whoIsOnline) return; + BLOCK_START("PlayerHandler::processOnlineList") const int size = msg.readInt16() - 4; std::vector<OnlinePlayer*> arr; @@ -229,12 +230,16 @@ void PlayerHandler::processOnlineList(Net::MessageIn &msg) const { if (whoIsOnline) whoIsOnline->loadList(arr); + BLOCK_END("PlayerHandler::processOnlineList") return; } char *const start = reinterpret_cast<char*>(msg.readBytes(size)); if (!start) + { + BLOCK_END("PlayerHandler::processOnlineList") return; + } const char *buf = start; @@ -278,6 +283,7 @@ void PlayerHandler::processOnlineList(Net::MessageIn &msg) const if (whoIsOnline) whoIsOnline->loadList(arr); delete [] start; + BLOCK_END("PlayerHandler::processOnlineList") } void PlayerHandler::updateStatus(const uint8_t status) const |