Introduction to performance optimization tools in Cocos development using Windows Task Manager and cocos Performance Optimization

Source: Internet
Author: User

Introduction to performance optimization tools in Cocos development using Windows Task Manager and cocos Performance Optimization
Speaking of the Windows platform, we soon came up with Visual Studio 2012. However, Visual Studio 2012 does not have a good tool in this regard. If we only want to know the general changes of memory, CPU, and so on before and after an event, we can use Windows Task Manager.
Windows Task Manager is familiar to many users. Since the Windows operating system is available, this tool has been integrated with Windows. There are also many ways to open the task manager. On Windows7 and Windows8 platforms, you can use Ctrl + Shift + Esc to bring up the call, or press Ctrl + Alt + Delete to enter the lock interface, on the lock page, select think manager. In addition, you can go to the menu. Open the Task Manager dialog box.

In the Task Manager dialog box, we can find the started game from the Application List of task manager. In general, we can tell through the icon that TestCPP is the name of the Cocosd-x game simulator window program we started, from which we can see indicators such as CPU and memory. You can also click the performance tab to open the performance window of the task manager. Here, there is a chart of metric changes such as CPU and memory.

In the Task Manager performance dialog box, if you think the chart in the figure is still not detailed enough, you can open the "open Resource Monitor" button below, as shown in the interface after opening it.

In the resource monitor dialog box, you can select the relevant Win32 game execution Program (for example, HelloWorld.exe), and then you can view the performance metrics more conveniently. The right side is the metric change chart.
Note that the use of Windows Task Manager does not accurately tell us which objects occupy the memory and which threads are very time-consuming. Using it can help us evaluate the changes to these indicators before and after an operation or event is handled for analysis and decision-making. For example, we can use it to view the memory and CPU usage before and after the transition in two scenarios to help us determine whether the cache is cleared after the previous scenario exits. In addition, we can also use this tool to view the memory and CPU variation curves during XML and JSON data decoding to understand the execution efficiency.

In addition, Windows Task Manager cannot detect memory leaks. We need to use other tools.



More content please pay attention to the first domestic Cocos2d-x 3.2 version of the book "Cocos2d-x practice: C ++ volume" book exchange discussion site: http://www.c Ocoagame.net
For more exciting video courses, please follow the Cocos course in Zhijie class: http: // v.51w Ork6.com
Welcome to the Cocos2d-x Technology Discussion Group: 257760386 welcome to the knowledge of the iOS classroom public platform


What can be used by the windows Task Manager?

The lower the CPU usage, the better. If some programs are shut down abnormally, the CPU usage will remain in use, and the CPU usage will be displayed as 100%, in this case, you need to manually end the process that takes up 100% cup of time.

PF usage of 326 MB indicates that the current memory usage is MB, and the bottom right corner of the system shows the total memory and available memory.

The process page displays all processes running in the current system. Some processes are associated with the application. ending them will cause application shutdown or exceptions, some processes are operating systems, and some key processes cannot be terminated.

The performance page displays the current system resource usage, including CPU and memory.

Windows Task Manager Problems

It depends on what software you have installed. I will give you a standard pair.
(1) [system Idle Process]

Process file: [system process] or [system process]

Process name: Windows Memory Processing System Process

Description: Windows page memory management process, with a priority of 0.

Introduction: This process runs on each processor as a single thread and does not process other

The time when the processor is assigned during the thread. The larger the cpu usage, the more CPU resources available for allocation.

The more the source, the smaller the number, the CPU resources are insufficient.

(2)[alg.exe]

Process file: alg or alg.exe

Process name: Application Layer Gateway Service

Description: This is an Application Layer Gateway Service used for network sharing.

Introduction: the manager of a gateway communication plug-in is "Internet Connection Sharing service"

And "Internet Connection Firewall Service" to provide support for third-party protocol plug-ins.

(3)[csrss.exe]

Process file: csrss or csrss.exe

Process name: Client/Server Runtime Server Subsystem

Description: Client Service subsystem used to control Windows Graphics subsystems.

Introduction: This is part of the user mode Win32 subsystem. Csrss representative customer/service

It is also a basic sub-system that must always run. Csrss for maintenance

Windows controls, creating or strikethrough threads and some 16-bit virtual MS-DOS environments.

(4)mongoddhelp.exe]

Process file: ddhelp or ddhelp.exe

Process name: DirectDraw Helper

Description: DirectDraw Helper is an integral part of the graphics service DirectX.

Points.

Introduction: Directx help program

(5)[dllhost.exe]

Process file: dllhost or dllhost.exe

Process name: dcom dll Host process

Description: The dcom dll Host process supports DLL running on Windows programs based on COM objects.

.

Introduction: com proxy. The more dll components attached to the system, the cpu resources occupied by dllhost

The more memory resources, the more familiar the "Shock Wave killer" in August.

(6)[explorer.exe]

Process file: explorer or assumer.exe

Process name: Program Management

Description: Windows Program Manager or Windows Explorer is used to control

Windows Graphical Shell, including the Start Menu, taskbar, desktop and file management.

Introduction: This is a user's shell. It looks like a task bar, desktop, etc.

. Or it is the resource manager. I don't believe you are running it. It applies to windows

The stability of the system is still important, and the red code is the trouble to find it.

Create assumer.exe.

(7)[inetinfo.exe]

Process file: inetinfo or inetinfo.exe

Process name: IIS Admin Service Helper

Description: InetInfo is Microsoft Internet Infomation Services (IIS)

For debugging and debugging.

Description: iisservice process. The blue code is the buffer overflow vulnerability of inetinfo.exe.

.

(8) [in... the remaining full text>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.