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

Dex pre-compiling method and device, computer equipment and storage medium

A pre-compiled and grouped technology, applied in the computer field, can solve problems such as application freezes, multiple computing resources, etc.

Active Publication Date: 2021-01-01
OPPO CHONGQING INTELLIGENT TECH CO LTD
View PDF9 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004]However, in the above method, because the process of calling the dex2oat compilation tool to precompile the dex file requires more computing resources, it may cause the The application freezes while running

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
  • Dex pre-compiling method and device, computer equipment and storage medium
  • Dex pre-compiling method and device, computer equipment and storage medium
  • Dex pre-compiling method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0027] In order to improve the performance of the Android system, after the Android 4.4 version, the Android system uses the Android Runtime (Android Runtime, ART) virtual machine to run the application program, wherein the ART virtual machine runs the application program by reading the oat file.

[0028] In the prior art, the application program will generate a dex file after installation, and the dex file is an executable file of the Android system, and the dex2oat compilation tool is called to establish a compilation process, and the dex file is precompiled (also called dex optimization) based on the compilation process. To get the oat file. The ART virtual machine runs the oat file to make the running process of the applicati...

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 dex pre-compiling method and device, computer equipment and a storage medium, and belongs to the technical field of computers. The dex pre-compiling method comprises the steps of: detecting a current CPU occupancy rate and a current frame rate in a process of pre-compiling a dex file of a target application program; if the current CPU occupancy rate is greater than a first threshold and the current frame rate is less than a preset frame rate, determining a first self-control group from a target self-control group pool according to the current CPU occupancy rate; and binding the first self-control group with a pre-compiled compiling process, and adjusting operation resources occupied by the compiling process by utilizing the first self-control group. According to the dex pre-compiling method of the invention, the operation resources occupied by the compiling process are dynamically adjusted according to the current CPU occupancy rate and a frame loss state, andthe problem of jamming of an application program in a foreground running state is improved.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a dex precompilation method, device, computer equipment and storage medium. Background technique [0002] In order to improve the performance of the Android system, after the Android 4.4 version, the Android system uses the Android Runtime (Android Runtime, ART) virtual machine to run the application program. Specifically, the ART virtual machine runs the application program by running the oat file. [0003] In the prior art, the acquisition process of the oat file is: the application program will generate a dex file after installation, the dex file is an executable file of the Android system, and the dex2oat compilation tool is called to precompile the dex file to obtain the oat file. [0004] However, in the above method, because the process of calling the dex2oat compilation tool to precompile the dex file requires more computing resources, it may cause the applica...

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): G06F9/50G06F8/41
CPCG06F9/5027G06F8/41
Inventor 李军潘腾蛟
Owner OPPO CHONGQING INTELLIGENT 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