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

Lua-based method and a Lua-based device for obtaining a mobile phone application memory

A mobile phone application and memory technology, applied in multi-program devices, branch equipment, resource allocation, etc., can solve the problem of not being able to obtain memory call information, and achieve the effect of reducing PSS occupation

Active Publication Date: 2019-06-11
ZHUHAI KINGSOFT ONLINE GAME TECH CO LTD +1
View PDF6 Cites 2 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
  • Lua-based method and a Lua-based device for obtaining a mobile phone application memory
  • Lua-based method and a Lua-based device for obtaining a mobile phone application memory
  • Lua-based method and a Lua-based device for obtaining a mobile phone application memory

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 Lua-based method and a Lua-based device for obtaining a mobile phone application memory is suitable for an application program developed by a Unity engine, and comprises the following steps: initializing a Lua virtual machine to transmit a custom memory distributor to a memory distribution function; when a Lua calls a memory allocation function to allocate a memory block, the memory frequency divider traverses a current C # call stack and a Lua call stack to capture memory information; recording the memory information into a calling path table according to the calling path, and removing a pointer stored with a corresponding calling path when the memory block is released; and exporting the call path table, and sorting each call path according to the total size of the unreleased memory blocks. The invention further discloses a device for obtaining the mobile phone application memory based on Lua. The method has the advantages that the C # calling stack and the Lua calling stack are output in a mixed mode, so that a C # and Lua code calling path occupying more memory can be obtained, and convenience is brought to developers to optimize the C # and Lua code calling path.

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
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