Hongtae Kim 7 gadus atpakaļ
vecāks
revīzija
edf3fbebb3
1 mainītis faili ar 5 papildinājumiem un 5 dzēšanām
  1. 5
    5
      TestApp1/TestApp1.cpp

+ 5
- 5
TestApp1/TestApp1.cpp Parādīt failu

@@ -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
 
@@ -28,8 +28,8 @@ public:
28 28
 	}
29 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 33
 		size_t numBuckets = DKMemoryPoolNumberOfBuckets();
34 34
 		DKMemoryPoolBucketStatus* buckets = new DKMemoryPoolBucketStatus[numBuckets];
35 35
 		DKMemoryPoolQueryAllocationStatus(buckets, numBuckets);
@@ -38,7 +38,7 @@ public:
38 38
 		{
39 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 42
 					buckets[i].chunkSize,
43 43
 					buckets[i].chunkSize * buckets[i].usedChunks,
44 44
 					double(buckets[i].chunkSize * (buckets[i].totalChunks - buckets[i].usedChunks)) / 1024.0,
@@ -46,7 +46,7 @@ public:
46 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 50
 		delete[] buckets;
51 51
 	}
52 52
 };