Browse Source

no message

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

+ 5
- 5
TestApp1/TestApp1.cpp View File

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