Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 116 vs 117 for /trunk/Source Code/Core/Resources/Resource.cpp

Diff revisions: vs.
  @@ -1,5 +1,5 @@
1 1 #include "Headers/Resource.h"
2 - #include "Utility/Headers/Kernel.h"
2 + #include "Core/Headers/Application.h"
3 3
4 4 U32 maxAlloc = 0;
5 5 char* zMaxFile = "";
  @@ -12,13 +12,12 @@
12 12 nMaxLine = nLine;
13 13 }
14 14
15 - if(Kernel::getInstance().myfile.is_open())
16 - Kernel::getInstance().myfile << "[ "<< GETTIME()
17 - << " ] : New allocation: " << t << " IN: \""
18 - << zFile << "\" at line: " << nLine << "." << std::endl
19 - << "\t Max Allocation: [" << maxAlloc << "] in file: \""
20 - << zMaxFile << "\" at line: " << nMaxLine
21 - << std::endl << std::endl;
15 + std::stringstream ss;
16 + ss << "[ "<< GETTIME() << " ] : New allocation: " << t << " IN: \""
17 + << zFile << "\" at line: " << nLine << "." << std::endl
18 + << "\t Max Allocation: [" << maxAlloc << "] in file: \""
19 + << zMaxFile << "\" at line: " << nMaxLine << std::endl << std::endl;
20 + Application::getInstance().logMemoryAllocation(ss);
22 21 return malloc(t);
23 22 }
24 23