diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-28 17:30:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-28 17:30:18 +0300 |
commit | 37c4338e84265705ec41c5da03e325255a9bce63 (patch) | |
tree | d159e2db539aaf0f8e0d25c9d7ecde5fb37d8a98 /src/resources/memorymanager.cpp | |
parent | 2c93aa0a1e25f39ab351a4f12c5fd7f188a528a2 (diff) | |
download | plus-37c4338e84265705ec41c5da03e325255a9bce63.tar.gz plus-37c4338e84265705ec41c5da03e325255a9bce63.tar.bz2 plus-37c4338e84265705ec41c5da03e325255a9bce63.tar.xz plus-37c4338e84265705ec41c5da03e325255a9bce63.zip |
Show object name/source in memory counting tree.
Diffstat (limited to 'src/resources/memorymanager.cpp')
-rw-r--r-- | src/resources/memorymanager.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/memorymanager.cpp b/src/resources/memorymanager.cpp index 9d4befd30..2da7c0908 100644 --- a/src/resources/memorymanager.cpp +++ b/src/resources/memorymanager.cpp @@ -55,13 +55,15 @@ int MemoryManager::getSurfaceSize(const SDL_Surface *const surface) 10; } -void MemoryManager::printMemory(const int level, +void MemoryManager::printMemory(const std::string &name, + const int level, const int localSum, const int childsSum) { std::string str(level, ' '); - logger->log("%s%d = %d + %d", + logger->log("%s%s: %d = %d + %d", str.c_str(), + name.c_str(), localSum + childsSum, localSum, childsSum); |