summaryrefslogtreecommitdiff
path: root/src/resources/memorymanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/memorymanager.cpp')
-rw-r--r--src/resources/memorymanager.cpp6
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);