Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device for acquiring mobile phone application memory based on lua

A mobile phone application and memory technology, which is applied to multi-program devices, sub-office equipment, resource allocation, etc., can solve problems such as inability to obtain memory call information, and achieve the effect of reducing PSS occupation

Active Publication Date: 2021-02-02
ZHUHAI KINGSOFT ONLINE GAME TECH CO LTD +1
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in mobile games developed with the Unity engine, the Lua code part and the C# code part generally call each other according to specific applications, so if only the Lua call stack is output, developers often cannot obtain a comprehensive memory call information

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
  • A method and device for acquiring mobile phone application memory based on lua
  • A method and device for acquiring mobile phone application memory based on lua
  • A method and device for acquiring mobile phone application memory based on lua

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0059] The concept, specific structure and technical effects of the present application will be clearly and completely described below in conjunction with the embodiments and drawings, so as to fully understand the purpose, scheme and effect of the present application. 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.

[0060] It should be noted that, unless otherwise specified, when a feature is called "fixed" or "connected" to another feature, it can be directly fixed and connected to another feature, or indirectly fixed and connected to another feature. on a feature. In addition, descriptions such as up, down, left, and right used in the application are only relative to the mutual positional relationship of the components of the application in the drawings. As used in this application and the appended claims, the singular forms "a", "the", and "said" are inten...

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

A method for obtaining mobile application memory based on Lua, suitable for applications developed by Unity engine, including: initializing the Lua virtual machine to pass in a custom memory allocator to the memory allocation function; calling the memory allocation function in Lua to allocate memory blocks , the memory allocator traverses the current C# call stack and the Lua call stack to grab the memory information; records the memory information into the call path table according to the call path, and removes the pointer that holds the corresponding call path when releasing the memory block ; Export the call path table and sort each call path by the total size of the unreleased memory block. The present application also correspondingly discloses a device for acquiring mobile phone application memory based on Lua. The intended effect of this application is: by mixing and outputting the C# call stack and the Lua call stack, the calling paths of C# and Lua codes that occupy a lot of memory can be obtained, which is convenient for developers to optimize.

Description

technical field [0001] The invention relates to the field of mobile devices, in particular to a method and a device for acquiring mobile phone application memory based on Lua. Background technique [0002] In the smart phone industry, as an important category of mobile phone applications, mobile games have an increasing market share. 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 adopts 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 Patents(China)
IPC IPC(8): G06F9/50H04M1/725H04M1/72427
Inventor 刘马良马力刘鼎三黎健钧
Owner ZHUHAI KINGSOFT ONLINE GAME TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More