Browse Source

no message

Hongtae Kim 7 years ago
parent
commit
164d822ea9
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      TestApp1/TestApp1.cpp

+ 6
- 6
TestApp1/TestApp1.cpp View File

@@ -54,13 +54,13 @@ public:
54 54
 
55 55
 	void OnInitialize(void) override
56 56
 	{
57
-		DKLog("%s", DKGL_FUNCTION_NAME);
57
+		DKLogD("%s", DKGL_FUNCTION_NAME);
58 58
 		try {
59 59
 			window = DKWindow::Create("DefaultWindow");
60 60
 		}
61 61
 		catch (DKError& e)
62 62
 		{
63
-			DKLog("error? :%ls", (const wchar_t*)e.Description());
63
+			DKLogE("error? :%ls", (const wchar_t*)e.Description());
64 64
 		}
65 65
 		window->Activate();
66 66
 
@@ -76,14 +76,14 @@ public:
76 76
 	}
77 77
 	void OnTerminate(void) override
78 78
 	{
79
-		DKLog("%s", DKGL_FUNCTION_NAME);
79
+		DKLogD("%s", DKGL_FUNCTION_NAME);
80 80
 
81 81
 		runningRenderThread = 0;
82 82
 		renderThread->WaitTerminate();
83 83
 		renderThread = NULL;
84 84
 		window = NULL;
85 85
 
86
-		DKLog("Memory Pool Statistics");
86
+		DKLogI("Memory Pool Statistics");
87 87
 		size_t numBuckets = DKMemoryPoolNumberOfBuckets();
88 88
 		DKMemoryPoolBucketStatus* buckets = new DKMemoryPoolBucketStatus[numBuckets];
89 89
 		DKMemoryPoolQueryAllocationStatus(buckets, numBuckets);
@@ -92,7 +92,7 @@ public:
92 92
 		{
93 93
 			if (buckets[i].totalChunks > 0)
94 94
 			{
95
-				DKLog("--> %5lu:  %5lu/%5lu, usage: %.1f%%, used: %.1fKB, total: %.1fKB",
95
+				DKLogI("--> %5lu:  %5lu/%5lu, usage: %.1f%%, used: %.1fKB, total: %.1fKB",
96 96
 					buckets[i].chunkSize,
97 97
 					buckets[i].usedChunks, buckets[i].totalChunks,
98 98
 					double(buckets[i].usedChunks) / double(buckets[i].totalChunks) * 100.0,
@@ -102,7 +102,7 @@ public:
102 102
 				usedBytes += buckets[i].chunkSize * buckets[i].usedChunks;
103 103
 			}
104 104
 		}
105
-		DKLog("MemoryPool Usage: %.1fMB / %.1fMB", double(usedBytes) / (1024 * 1024), double(DKMemoryPoolSize()) / (1024 * 1024));
105
+		DKLogI("MemoryPool Usage: %.1fMB / %.1fMB", double(usedBytes) / (1024 * 1024), double(DKMemoryPoolSize()) / (1024 * 1024));
106 106
 		delete[] buckets;
107 107
 	}
108 108
 };