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
 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
 
30
 	}
30
 	}
31
 	void OnTerminate(void) override
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
 		size_t numBuckets = DKMemoryPoolNumberOfBuckets();
35
 		size_t numBuckets = DKMemoryPoolNumberOfBuckets();
36
 		DKMemoryPoolBucketStatus* buckets = new DKMemoryPoolBucketStatus[numBuckets];
36
 		DKMemoryPoolBucketStatus* buckets = new DKMemoryPoolBucketStatus[numBuckets];
37
 		DKMemoryPoolQueryAllocationStatus(buckets, numBuckets);
37
 		DKMemoryPoolQueryAllocationStatus(buckets, numBuckets);
40
 		{
40
 		{
41
 			if (buckets[i].totalChunks > 0)
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
 					buckets[i].chunkSize,
44
 					buckets[i].chunkSize,
45
 					buckets[i].chunkSize * buckets[i].usedChunks,
45
 					buckets[i].chunkSize * buckets[i].usedChunks,
46
 					double(buckets[i].chunkSize * (buckets[i].totalChunks - buckets[i].usedChunks)) / 1024.0,
46
 					double(buckets[i].chunkSize * (buckets[i].totalChunks - buckets[i].usedChunks)) / 1024.0,
48
 				usedBytes += buckets[i].chunkSize * buckets[i].usedChunks;
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
 		delete[] buckets;
52
 		delete[] buckets;
53
 	}
53
 	}
54
 };
54
 };