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
 
54
 
55
 	void OnInitialize(void) override
55
 	void OnInitialize(void) override
56
 	{
56
 	{
57
-		DKLog("%s", DKGL_FUNCTION_NAME);
57
+		DKLogD("%s", DKGL_FUNCTION_NAME);
58
 		try {
58
 		try {
59
 			window = DKWindow::Create("DefaultWindow");
59
 			window = DKWindow::Create("DefaultWindow");
60
 		}
60
 		}
61
 		catch (DKError& e)
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
 		window->Activate();
65
 		window->Activate();
66
 
66
 
76
 	}
76
 	}
77
 	void OnTerminate(void) override
77
 	void OnTerminate(void) override
78
 	{
78
 	{
79
-		DKLog("%s", DKGL_FUNCTION_NAME);
79
+		DKLogD("%s", DKGL_FUNCTION_NAME);
80
 
80
 
81
 		runningRenderThread = 0;
81
 		runningRenderThread = 0;
82
 		renderThread->WaitTerminate();
82
 		renderThread->WaitTerminate();
83
 		renderThread = NULL;
83
 		renderThread = NULL;
84
 		window = NULL;
84
 		window = NULL;
85
 
85
 
86
-		DKLog("Memory Pool Statistics");
86
+		DKLogI("Memory Pool Statistics");
87
 		size_t numBuckets = DKMemoryPoolNumberOfBuckets();
87
 		size_t numBuckets = DKMemoryPoolNumberOfBuckets();
88
 		DKMemoryPoolBucketStatus* buckets = new DKMemoryPoolBucketStatus[numBuckets];
88
 		DKMemoryPoolBucketStatus* buckets = new DKMemoryPoolBucketStatus[numBuckets];
89
 		DKMemoryPoolQueryAllocationStatus(buckets, numBuckets);
89
 		DKMemoryPoolQueryAllocationStatus(buckets, numBuckets);
92
 		{
92
 		{
93
 			if (buckets[i].totalChunks > 0)
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
 					buckets[i].chunkSize,
96
 					buckets[i].chunkSize,
97
 					buckets[i].usedChunks, buckets[i].totalChunks,
97
 					buckets[i].usedChunks, buckets[i].totalChunks,
98
 					double(buckets[i].usedChunks) / double(buckets[i].totalChunks) * 100.0,
98
 					double(buckets[i].usedChunks) / double(buckets[i].totalChunks) * 100.0,
102
 				usedBytes += buckets[i].chunkSize * buckets[i].usedChunks;
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
 		delete[] buckets;
106
 		delete[] buckets;
107
 	}
107
 	}
108
 };
108
 };