diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-26 22:45:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-26 22:45:55 +0300 |
commit | 80bbbc4c18273e0d1116d7e924d1df068a5d63d5 (patch) | |
tree | bef2f6458ee7fc5079c1993921abdfc4926570bb /src/actions/actions.cpp | |
parent | 918e2a5cf24311e87b0dc754770480727f77eac3 (diff) | |
download | plus-80bbbc4c18273e0d1116d7e924d1df068a5d63d5.tar.gz plus-80bbbc4c18273e0d1116d7e924d1df068a5d63d5.tar.bz2 plus-80bbbc4c18273e0d1116d7e924d1df068a5d63d5.tar.xz plus-80bbbc4c18273e0d1116d7e924d1df068a5d63d5.zip |
Add chat command for print memory usage. For now only report about resources.
New chat command: /dumpmemoryusage
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r-- | src/actions/actions.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index 1f7df9c9d..1e7a9ad5b 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -96,6 +96,7 @@ #include "net/tradehandler.h" #include "resources/iteminfo.h" +#include "resources/memorymanager.h" #include "resources/resourcemanager.h" #include "const/resources/skill.h" @@ -1783,4 +1784,10 @@ impHandler(seen) return true; } +impHandler0(dumpMemoryUsage) +{ + memoryManager.printAllMemory(); + return true; +} + } // namespace Actions |