Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for obtaining memory snapshot and memory allocation stack of mobile phone application

A memory allocation and memory snapshot technology, applied in memory address/allocation/relocation, branch equipment, memory system, etc., can solve the problem that mobile phone application developers cannot directly obtain the information of Mono platform memory, so as to reduce memory usage. Effect

Inactive Publication Date: 2017-10-20
ZHUHAI KINGSOFT ONLINE GAME TECH CO LTD +1
View PDF5 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Since the Mono platform encapsulates the process of allocating memory from the operating system, mobile application developers cannot directly obtain information about the memory allocated by the Mono platform

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for obtaining memory snapshot and memory allocation stack of mobile phone application
  • Method and device for obtaining memory snapshot and memory allocation stack of mobile phone application
  • Method and device for obtaining memory snapshot and memory allocation stack of mobile phone application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The idea, specific structure and technical effects of the present invention will be clearly and completely described below in conjunction with the embodiments and accompanying drawings, so as to fully understand the purpose, scheme and effect of the present invention. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The same reference numbers are used throughout the drawings to indicate the same or similar parts.

[0034] figure 1 Shown is the flow chart of the method for obtaining the mobile phone application memory snapshot and memory allocation stack proposed by the present invention. refer to figure 1 , an exemplary method embodiment for developing programs based on the Unity engine in an Android smart phone, comprising the steps of:

[0035] S100) Start the detected mobile phone application, and initialize the memory information metadata table and ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and device for obtaining memory snapshot and memory allocation stack of a mobile phone application. The method comprises the following steps of starting a detected mobile phone application and initializing a memory information metadata table and a memory allocation stack statistical table; searching and monitoring application programming interfaces related to memory allocation and recycle in a Unity engine; performing corresponding operation, triggering and calling the application programming interfaces, and capturing current memory allocation and recycle information; updating the memory information metadata table and the memory allocation stack statistical table according to the current memory allocation and recycle information; and if detection is finished, storing the memory information metadata table and the memory allocation stack statistical table as a memory snapshot file and a memory allocation stack statistical file and exporting the files as external files. The method and the device have the advantages that a function of timely generating the memory snapshot file and the memory allocation stack statistical file is provided, and a mobile phone application developer can conveniently monitor the change condition of the memory allocated from an operating system in an operation period of the application.

Description

technical field [0001] The invention relates to the field of mobile phone application optimization, in particular to a method and device for acquiring a mobile phone application memory snapshot and a memory allocation stack. Background technique [0002] In the smart phone industry, with the increasing market share of mobile games, most well-known game development companies have invested more in technology research and development in mobile game development. In the development process of mobile games, reducing the memory usage of mobile games has always been one of the most concerned points of mobile application developers. If the game takes up too much memory during the running process, it may be identified as an abnormal process by the operating system and shut down directly, or it may cause system memory due to excessive use, which will reduce system performance and reduce the game experience. [0003] As a widely used mobile game development engine, Unity uses the Mono ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04M1/725G06F12/02
CPCG06F12/0223H04M1/72403
Inventor 刘马良张强赖炳新杨明邦李星李邦戈
Owner ZHUHAI KINGSOFT ONLINE GAME TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products