Browse Source

no message

Hongtae Kim 7 years ago
parent
commit
edf3fbebb3
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      TestApp1/TestApp1.cpp

+ 5
- 5
TestApp1/TestApp1.cpp View File

14
 public:
14
 public:
15
 	void OnInitialize(void) override
15
 	void OnInitialize(void) override
16
 	{
16
 	{
17
-		DKLog("%s", DKGL_FUNCTION_NAME);
17
+		DKLogD("%s", DKGL_FUNCTION_NAME);
18
 		window = DKWindow::Create("DefaultWindow");
18
 		window = DKWindow::Create("DefaultWindow");
19
 		window->Activate();
19
 		window->Activate();
20
 
20
 
28
 	}
28
 	}
29
 	void OnTerminate(void) override
29
 	void OnTerminate(void) override
30
 	{
30
 	{
31
-		DKLog("%s", DKGL_FUNCTION_NAME);
32
-		DKLog("Memory Pool Statistics");
31
+		DKLogD("%s", DKGL_FUNCTION_NAME);
32
+		DKLogI("Memory Pool Statistics");
33
 		size_t numBuckets = DKMemoryPoolNumberOfBuckets();
33
 		size_t numBuckets = DKMemoryPoolNumberOfBuckets();
34
 		DKMemoryPoolBucketStatus* buckets = new DKMemoryPoolBucketStatus[numBuckets];
34
 		DKMemoryPoolBucketStatus* buckets = new DKMemoryPoolBucketStatus[numBuckets];
35
 		DKMemoryPoolQueryAllocationStatus(buckets, numBuckets);
35
 		DKMemoryPoolQueryAllocationStatus(buckets, numBuckets);
38
 		{
38
 		{
39
 			if (buckets[i].totalChunks > 0)
39
 			if (buckets[i].totalChunks > 0)
40
 			{
40
 			{
41
-				DKLog("--> %lu: allocated:%lu, reserved:%.1fKB. (usage:%.1f%%)",
41
+				DKLogI("--> %lu: allocated:%lu, reserved:%.1fKB. (usage:%.1f%%)",
42
 					buckets[i].chunkSize,
42
 					buckets[i].chunkSize,
43
 					buckets[i].chunkSize * buckets[i].usedChunks,
43
 					buckets[i].chunkSize * buckets[i].usedChunks,
44
 					double(buckets[i].chunkSize * (buckets[i].totalChunks - buckets[i].usedChunks)) / 1024.0,
44
 					double(buckets[i].chunkSize * (buckets[i].totalChunks - buckets[i].usedChunks)) / 1024.0,
46
 				usedBytes += buckets[i].chunkSize * buckets[i].usedChunks;
46
 				usedBytes += buckets[i].chunkSize * buckets[i].usedChunks;
47
 			}
47
 			}
48
 		}
48
 		}
49
-		DKLog("MemoryPool Usage: %.1fMB / %.1fMB", double(usedBytes) / (1024 * 1024), double(DKMemoryPoolSize()) / (1024 * 1024));
49
+		DKLogI("MemoryPool Usage: %.1fMB / %.1fMB", double(usedBytes) / (1024 * 1024), double(DKMemoryPoolSize()) / (1024 * 1024));
50
 		delete[] buckets;
50
 		delete[] buckets;
51
 	}
51
 	}
52
 };
52
 };