When it comes to the Windows platform, we quickly think of Visual Studio 2012, but Visual Studio 2012 doesn't have a good tool for that. We can use the Windows Task manager if we just want to know that in general memory, CPU, etc. change before and after an event.
Windows Task Manager is no stranger to many users, and since the Windows operating system, this tool accompanied with Windows. There are also many ways to open the Task Manager method, which can be recalled using the CTRL+SHIFT+ESC key combination in the Windows7 and WINDOWS8 platforms, or through the Ctrl+alt+delete key combination to enter the lock interface and then select the manager in the lock screen. In addition, we can also access through the menu. Open the Task Manager dialog box.
Task Manager Dialog box
We can find the game now launched from the list of apps in Task Manager. In general, we can be identified by the icon, the Testcpp is our launch of the Cocosd-x Game Simulator window program name, from which we can see the CPU, memory and other indicators. We can also click on the Performance tab to open the Performance window of Task Manager, where there is a graph table of indicator changes such as CPU and memory.
Performance dialog box for Task Manager
If you think the chart is still not detailed enough, you can open the following "Open Resource Monitor" button, after opening it as shown in the interface.
Resource Monitor dialog box
We can tick the relevant Win32 game execution program (for example: HelloWorld.exe), then more convenient to view the performance indicators, the right is the chart of the indicator changes.
It is important to note that using Windows Task Manager does not accurately tell us which objects consume memory and which threads are time consuming. Using it can help us evaluate the changes of these metrics before and after an operation or event processing to facilitate analysis and decision making. For example, we can use it to see the memory and CPU usage of two scenarios before and after the transition, to help us determine if the cache was cleared before the scene exited. Again, in the process of XML and JSON data decoding, it is also possible to see the memory and CPU change curves in the process to understand the execution efficiency.
Also, the Windows Task Manager cannot detect memory leaks, and we need to use other tools.
For more information, please pay attention to the first Cocos2d-x 3.2 Edition book "Cocos2d-x: C + + volume"
Book Exchange Discussion website: http://www.cocoagame.net
For more exciting video courses, please follow Cocos class: Http://v.51work6.com
Welcome to join Cocos2d-x Technical discussion group: 257760386
Welcome to Luxgen iOS Classroom public Platform
Introduction to performance optimization tools in Cocos Development using Windows Task Manager