32 PRAGMA48(GCC diagnostic ignored
"-Wshadow")
33 #include <SDL_video.h>
47 if (surface ==
nullptr)
49 return CAST_S32(
sizeof(SDL_Surface)) +
54 surface->w * surface->h * 4 +
64 std::string str(level,
' ');
96 tab->chatLog(
strprintf(
_(
"Calculated memory usage: %d"), sz),
void log(const char *const log_text,...)
static int getSurfaceSize(const SDL_Surface *const surface)
static void printAllMemory(ChatTab *const tab)
static void printMemory(const std::string &name, const int level, const int localSum, const int childsSum)
const bool IgnoreRecord_false
MemoryManager memoryManager
int calcMemory(const int level)
std::string strprintf(const char *const format,...)
const bool TryRemoveColors_true