Application startup method, device and storage medium
By collecting data on the terminal and using the training model to calculate the startup probability, the CPU frequency is dynamically adjusted to adapt to the startup requirements of the application, which solves the battery consumption and user experience problems caused by improper CPU frequency adjustment in the existing technology, and improves the smoothness of the terminal. and battery life.
Patent Information
- Application Number
- CN202210234483.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-10
- Publication Date
- 2024-09-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology accelerates the startup by increasing the CPU working frequency when the target application starts. However, due to different startup times, CPU acceleration is wasted, affecting the battery life and user experience of the terminal.
By collecting the terminal's CPU load data and memory usage data, combined with the application type and preset startup time, the general model obtained through training is used to calculate the startup probability to determine the appropriate CPU working frequency, and control the CPU operation within the target startup time.
It can dynamically adjust the CPU frequency according to the specific needs of the application, improve the smoothness and battery life of the terminal, and reduce power consumption and performance waste.
Smart Images

Figure CN114595003B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of terminal technology, and in particular to an application startup method, device and storage medium. Background Art
[0002] The central processing unit (CPU) is the computing and control core of a computer. The higher the operating frequency, the faster the data processing speed, but it also speeds up the battery consumption. For mobile terminal devices, in order to ensure the battery life, the CPU processing speed is generally set to a lower frequency to ensure the normal operation of the system, but some target application scenarios require a higher CPU processing speed, such as when the target application is started.
[0003] In order to improve the user experience, many terminal manufacturers use a higher CPU operating frequency when the target application is started to achieve its quick startup. The current solution is to increase the CPU operating frequency and keep it for a fixed time when the target application is started. However, different target applications have different startup times. The acceleration method of increasing the CPU operating frequency and keeping it for a fixed time will cause a waste of CPU acceleration when the target application startup time is less than the fixed time, thereby increasing unnecessary battery consumption and affecting the user experience.
[0004] Therefore, how to make appropriate adjustments to the CPU frequency within the appropriate time is of great significance to the terminal's fluency, power consumption, user satisfaction, etc. Summary of the invention
[0005] In order to overcome the problems existing in the related art, the present disclosure provides an application startup method, device and storage medium.
[0006] According to a first aspect of an embodiment of the present disclosure, there is provided an application startup method, which is applied to a terminal and includes:
[0007] In response to the target application being started, collecting the current CPU load data and memory usage data of the target terminal;
[0008] Determine a target startup duration of the target application;
[0009] Determine, according to the CPU load data, the memory usage data, the target application type of the target application and the target startup duration, a startup probability corresponding to the target application being started within the target startup duration, and determine, according to the startup probability, a target operating frequency of the CPU;
[0010] The CPU is controlled to operate at the target operating frequency within the target startup duration.
[0011] Optionally, the CPU load data, the memory usage data, the target application type of the target application and the target startup duration are input into a pre-set general model, and the startup probability corresponding to the target application being started within the target startup duration is determined by the general model, and the target operating frequency of the CPU is determined and output according to the startup probability;
[0012] Among them, the general model is sent by the server to the target terminal and is trained based on training sample data uploaded by at least one terminal device. The training sample data includes sample applications, application types of the sample applications, startup duration of the sample applications, and CPU sample load data and sample memory usage data of the corresponding terminal when starting the sample application.
[0013] Optionally, the general model determines the startup probability of starting the target application within the target startup duration in the following manner, and determines the target operating frequency of the CPU according to the startup probability:
[0014]
[0015] Wherein, F is the target operating frequency of the CPU, L is the current CPU load data of the target terminal, M is the current memory occupancy data of the target terminal, T is the target startup duration of the target application, A is the target application type of the target application, E is the event that the target terminal successfully starts the target application A within T time under the current CPU load data L and memory occupancy data M, and F min is the preset minimum CPU operating frequency, and P(E|L,M,T,A) is the startup probability of the target application being started within the time T.
[0016] Optionally, the method further comprises:
[0017] Acquire a usage sample set of the target terminal within a preset time period, each usage sample in the usage sample set including a usage sample application, an application type of the usage sample application, a startup duration of the usage sample application, and CPU usage sample load data and usage sample memory occupancy data of the target terminal when the usage sample application is started;
[0018] The usage sample set is sent to the server, so that the server optimizes the general model according to the usage sample set to obtain a modified general model.
[0019] Optionally, the method further comprises:
[0020] Obtaining the modified general model sent by the server;
[0021] The general model is updated to the modified general model.
[0022] Optionally, determining a target startup duration of the target application includes:
[0023] Acquire a target startup mode selected by a user for the target application, wherein the target startup mode includes at least one of a fast startup mode, a medium startup mode, and a slow startup mode;
[0024] According to the startup duration corresponding to the startup mode, the target startup duration corresponding to the target startup mode is obtained.
[0025] According to a second aspect of an embodiment of the present disclosure, there is provided an application startup device, applied to a terminal, comprising:
[0026] An acquisition module, used for collecting the current CPU load data and memory usage data of the target terminal in response to the target application being started;
[0027] A first determination module, used to determine a target startup duration of the target application;
[0028] A second determination module is used to determine the startup probability corresponding to the target application being started within the target startup duration according to the CPU load data, the memory usage data, the target application type of the target application and the target startup duration, and determine the target operating frequency of the CPU according to the startup probability;
[0029] The processing module is used to control the CPU to run at the target operating frequency within the target startup duration.
[0030] Optionally, the CPU load data, the memory usage data, the target application type of the target application and the target startup duration are input into a pre-set general model, and the startup probability corresponding to the target application being started within the target startup duration is determined by the general model, and the target operating frequency of the CPU is determined and output according to the startup probability;
[0031] Among them, the general model is sent by the server to the target terminal and is trained based on training sample data uploaded by at least one terminal device. The training sample data includes sample applications, application types of the sample applications, startup duration of the sample applications, and CPU sample load data and sample memory usage data of the corresponding terminal when starting the sample application.
[0032] Optionally, the general model determines the startup probability of starting the target application within the target startup duration in the following manner, and determines the target operating frequency of the CPU according to the startup probability:
[0033]
[0034] Wherein, F is the target operating frequency of the CPU, L is the current CPU load data of the target terminal, M is the current memory occupancy data of the target terminal, T is the target startup duration of the target application, A is the target application type of the target application, E is the event that the target terminal successfully starts the target application A within T time under the current CPU load data L and memory occupancy data M, and F min is the preset minimum CPU operating frequency, and P(E|L,M,T,A) is the startup probability of the target application being started within the time T.
[0035] Optionally, the acquisition module is further used for:
[0036] Acquire a usage sample set of the target terminal within a preset time period, each usage sample in the usage sample set including a usage sample application, an application type of the usage sample application, a startup duration of the usage sample application, and CPU usage sample load data and usage sample memory occupancy data of the target terminal when the usage sample application is started;
[0037] The usage sample set is sent to the server, so that the server optimizes the general model according to the usage sample set to obtain a modified general model.
[0038] Optionally, the acquisition module is further used for:
[0039] Obtaining the modified general model sent by the server;
[0040] The general model is updated to the modified general model.
[0041] Optionally, the first determining module determines the target startup duration of the target application in the following manner:
[0042] Acquire a target startup mode selected by a user for the target application, wherein the target startup mode includes at least one of a fast startup mode, a medium startup mode, and a slow startup mode;
[0043] According to the startup duration corresponding to the startup mode, the target startup duration corresponding to the target startup mode is obtained.
[0044] According to a third aspect of an embodiment of the present disclosure, there is provided an application startup device, including:
[0045] processor;
[0046] a memory for storing processor-executable instructions;
[0047] The processor is configured to: implement the steps of the application startup method provided in the first aspect of the present disclosure.
[0048] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the application startup method provided in the first aspect of the present disclosure are implemented.
[0049] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: in response to the start of the target application, the current CPU load data and memory occupancy data of the target terminal are collected; the target start-up duration of the target application is determined; then, based on the CPU load data, memory occupancy data, the target application type of the target application and the target start-up duration, the start-up probability corresponding to the target application start-up within the target start-up duration is determined, and the target operating frequency of the CPU is determined based on the start-up probability. Thus, the CPU can be controlled to run at the target operating frequency within the target start-up duration, and when the application is started, the CPU operating frequency can be adaptively adjusted according to the target start-up duration corresponding to the application, so that when the terminal starts the application, the CPU can work at an appropriate operating frequency, thereby improving the terminal fluency and reducing the terminal power consumption and performance waste.
[0050] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0052] Figure 1 The figure is a flowchart of a method for starting an application according to an exemplary embodiment.
[0053] Figure 2 The figure is a block diagram of a device for launching an application according to an exemplary embodiment.
[0054] Figure 3 The invention is a block diagram showing a device for starting an application according to an exemplary embodiment. DETAILED DESCRIPTION
[0055] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0056] It should be noted that all actions of acquiring signals, information or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where they are located, and with the authorization given by the owner of the corresponding device.
[0057] Figure 1 is a flow chart of a method for starting an application according to an exemplary embodiment. Figure 1 As shown, the application startup method is used in a terminal and includes the following steps.
[0058] In step S11, in response to the target application being started, the current CPU load data and memory usage data of the target terminal are collected.
[0059] The target application in the present disclosure may be any application installed in the terminal. In the present disclosure, the CPU load data may be, for example, the CPU load rate, and the memory occupancy data may be, for example, the memory occupancy rate.
[0060] In step S12, a target startup duration of the target application is determined.
[0061] In one implementation, for example, the target startup duration of the target application may be determined in the following manner:
[0062] The user can select a target startup mode for the target application in advance based on the setting items of the application in the terminal, for example, the target startup mode includes a fast startup mode, a medium startup mode and a slow startup mode. Afterwards, in response to the target application starting, the target startup mode selected by the user for the target application can be obtained.
[0063] Among them, the present disclosure can pre-set the startup duration corresponding to the startup mode, and then obtain the target startup duration corresponding to the target startup mode according to the startup duration corresponding to the startup mode.
[0064] In one implementation, if the user does not set a target startup time for the target application, a default startup mode can be set for the target application, such as a medium-speed startup mode, and then the target startup time corresponding to the default startup mode is obtained based on the startup time corresponding to the startup mode.
[0065] In step S13, the startup probability corresponding to the target application being started within the target startup duration is determined based on the CPU load data, memory usage data, target application type and target startup duration of the target application, and the target operating frequency of the CPU is determined based on the startup probability.
[0066] In step S14, the CPU is controlled to run at a target operating frequency within a target startup duration.
[0067] In one implementation, for example, the target operating frequency of the CPU corresponding to starting the target application may be determined according to the CPU load data, the memory usage data, and the target startup duration in the following manner:
[0068] Since Bayesian networks can perform evidential reasoning on input random variables and obtain graphical patterns that represent the probability of connections between variables, Bayesian networks provide a natural way to represent causal information and discover potential relationships between random variables. Bayesian networks can form a directed acyclic graph, where each random variable represents a node that may affect the inference result, and the directed edges between nodes represent the dependency relationship between different nodes.
[0069] Furthermore, in the present disclosure, the CPU load data, memory usage data, the target application type of the target application and the target startup duration are input into a pre-set general model, and the startup probability corresponding to the completion of starting the target application within the target startup duration is determined by the general model. Based on the startup probability, the target operating frequency of the CPU is determined and output.
[0070] The general model may be a Bayesian network structure model.
[0071] In one implementation, the general model determines the startup probability of starting the target application within the target startup duration in the following manner, and determines the target operating frequency of the CPU according to the startup probability:
[0072]
[0073] Among them, F is the target operating frequency of the CPU, L is the current CPU load data of the target terminal, M is the current memory usage data of the target terminal, T is the target startup time of the target application, A is the target application type of the target application, and E is the event that the target terminal successfully starts the target application A within T time under the current CPU load data L and memory usage data M. min is the preset minimum CPU operating frequency. P(E|L,M,T,A) is the startup probability of the target application being started within the time T.
[0074] For example, test terminal 1 starts application A with the lowest CPU operating frequency F min is 0.9GHz. When starting application A, if the CPU load data L is low at 30% and the memory occupancy data M is low at 40%, test terminal 1 is expected to complete the startup of the application within 4 seconds T, and the P(E|L,M,T,A) obtained at this time is 0.8, then it can be calculated that the required CPU frequency is 1.125GHz. If the CPU load data L of test terminal 1 is high at 90%, and the M memory occupancy data is high at 80%, the system is expected to complete the startup of application A within 3 seconds, and the P(E|L,M,T,A) obtained by the Bayesian network is 0.5, then it can be calculated that the required CPU frequency is 1.8GHz.
[0075] Among them, the general model is trained by the server based on training sample data uploaded by at least one terminal device. The training sample data includes sample applications, application types of sample applications, startup time of sample applications, and CPU sample load data and sample memory usage data of the corresponding terminal when starting the sample application.
[0076] Among them, for example, before the terminal leaves the factory, some of the most popular applications in the application store are pre-installed in a certain number of test terminals, and the operating system of the test terminal pre-sets a sufficient length of CPU operating frequency adjustment, such as maintaining a fixed CPU frequency for 10 seconds when the application starts, to ensure that the application startup stage is covered. Through a period of automated testing, the user's usage behavior is simulated, and the time it takes to start the application during this period of time, as well as the terminal's CPU load data, memory usage data, CPU operating frequency, etc. when the application starts, are recorded. The above data can be obtained by printing logs in the operating system of the terminal and saved in a file. Afterwards, the collected training data is summarized to obtain training sample data.
[0077] In addition, in order to continuously improve the accuracy of the target operating frequency of the CPU predicted by the general model, in the present disclosure, more realistic usage data such as the start-up time of the target application, the CPU operating frequency, and memory usage data can be recorded multiple times when the target application is started during the user's use of the target terminal. Based on the user usage data within a preset time period, a usage sample set of the target terminal is obtained.
[0078] Each usage sample in the usage sample set includes the usage sample application, the application type of the usage sample application, the startup time of the usage sample application, and the CPU usage sample load data and the usage sample memory usage data of the target terminal when the usage sample application is started. The usage sample set is sent to the server so that the server optimizes the general model according to the usage sample set to obtain a corrected general model. This can gradually improve the accuracy of the general model prediction and improve the user experience.
[0079] After the server obtains the revised universal model, it may send the revised universal model to the target terminal. The target terminal may obtain the revised universal model sent by the server and update the universal model to the revised universal model.
[0080] In an exemplary embodiment of the present disclosure, in response to the start of a target application, the current CPU load data and memory occupancy data of the target terminal are collected; the target start-up duration of the target application is determined; then, based on the CPU load data, memory occupancy data, target application type of the target application and the target start-up duration, the start-up probability corresponding to the target application start-up within the target start-up duration is determined, and the target operating frequency of the CPU is determined based on the start-up probability. Thus, the CPU can be controlled to run at the target operating frequency within the target start-up duration, and when the application is started, the CPU operating frequency can be adaptively adjusted according to the target start-up duration corresponding to the application, so that when the terminal starts the application, the CPU can work at an appropriate operating frequency, thereby improving the terminal fluency and reducing the terminal power consumption and performance waste.
[0081] Figure 2 2 is a block diagram of an application launching device 200 according to an exemplary embodiment. Figure 2 , the device comprises:
[0082] The acquisition module 201 is used to collect the current CPU load data and memory usage data of the target terminal in response to the target application being started;
[0083] A first determination module 202, used to determine a target startup duration of the target application;
[0084] A second determination module 203 is used to determine the startup probability corresponding to the target application being started within the target startup duration according to the CPU load data, the memory usage data, the target application type of the target application and the target startup duration, and determine the target operating frequency of the CPU according to the startup probability;
[0085] The processing module 204 is used to control the CPU to run at the target operating frequency within the target startup duration.
[0086] Optionally, the CPU load data, the memory usage data, the target application type of the target application and the target startup duration are input into a pre-set general model, and the startup probability corresponding to the target application being started within the target startup duration is determined by the general model, and the target operating frequency of the CPU is determined and output according to the startup probability;
[0087] Among them, the general model is sent by the server to the target terminal and is trained based on training sample data uploaded by at least one terminal device. The training sample data includes sample applications, application types of the sample applications, startup duration of the sample applications, and CPU sample load data and sample memory usage data of the corresponding terminal when starting the sample application.
[0088] Optionally, the general model determines the startup probability of starting the target application within the target startup duration in the following manner, and determines the target operating frequency of the CPU according to the startup probability:
[0089]
[0090] Wherein, F is the target operating frequency of the CPU, L is the current CPU load data of the target terminal, M is the current memory occupancy data of the target terminal, T is the target startup duration of the target application, A is the target application type of the target application, E is the event that the target terminal successfully starts the target application A within T time under the current CPU load data L and memory occupancy data M, and F min is the preset minimum CPU operating frequency, and P(E|L,M,T,A) is the startup probability of the target application being started within the time T.
[0091] Optionally, the acquisition module 201 is further used for:
[0092] Acquire a usage sample set of the target terminal within a preset time period, each usage sample in the usage sample set including a usage sample application, an application type of the usage sample application, a startup duration of the usage sample application, and CPU usage sample load data and usage sample memory occupancy data of the target terminal when the usage sample application is started;
[0093] The usage sample set is sent to the server, so that the server optimizes the general model according to the usage sample set to obtain a modified general model.
[0094] Optionally, the acquisition module 201 is further used for:
[0095] Obtaining the modified general model sent by the server;
[0096] The general model is updated to the modified general model.
[0097] Optionally, the first determining module 202 determines the target startup duration of the target application in the following manner:
[0098] Acquire a target startup mode selected by a user for the target application, wherein the target startup mode includes at least one of a fast startup mode, a medium startup mode, and a slow startup mode;
[0099] According to the startup duration corresponding to the startup mode, the target startup duration corresponding to the target startup mode is obtained.
[0100] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0101] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, and when the program instructions are executed by a processor, the steps of the application startup method provided by the present disclosure are implemented.
[0102] Figure 3 8 is a block diagram of a device 800 for application startup according to an exemplary embodiment. For example, the device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0103] Reference Figure 3 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0104] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned application startup method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0105] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any target application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0106] The power component 806 provides power to the various components of the device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
[0107] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0108] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0109] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0110] The sensor assembly 814 includes one or more sensors for providing various aspects of the status assessment of the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging target applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0111] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0112] In an exemplary embodiment, the apparatus 800 may be implemented by one or more target application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned application startup method.
[0113] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to complete the above-mentioned application startup method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0114] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program executable by a programmable device, and the computer program has a code portion for executing the above-mentioned application startup method when executed by the programmable device.
[0115] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0116] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for starting an application, characterized in that: Applied to terminals, including: In response to the target application being started, collecting the current CPU load data and memory usage data of the target terminal; Determine a target startup duration of the target application; Determine, according to the CPU load data, the memory usage data, the target application type of the target application and the target startup duration, a startup probability corresponding to the target application being started within the target startup duration, and determine, according to the startup probability, a target operating frequency of the CPU; Controlling the CPU to operate at the target operating frequency within the target startup duration; The CPU load data, the memory usage data, the target application type of the target application and the target startup duration are input into a pre-set general model, and the startup probability corresponding to the target application being started within the target startup duration is determined by the general model, and the target operating frequency of the CPU is determined and output according to the startup probability; The general model is sent by the server to the target terminal and is obtained by training based on training sample data uploaded by at least one terminal device, and the training sample data includes a sample application, an application type of the sample application, a startup time of the sample application, and CPU sample load data and sample memory usage data of the corresponding terminal when the sample application is started; The general model determines the startup probability of starting the target application within the target startup duration in the following manner, and determines the target operating frequency of the CPU according to the startup probability: Wherein, F is the target operating frequency of the CPU, L is the current CPU load data of the target terminal, M is the current memory occupancy data of the target terminal, T is the target startup duration of the target application, A is the target application type of the target application, and E is the event that the target terminal successfully starts the target application A within T time under the current CPU load data L and memory occupancy data M. The preset minimum CPU operating frequency. The startup probability of the target application being started within the time T.
2. The method according to claim 1, characterized in that: The method further comprises: Acquire a usage sample set of the target terminal within a preset time period, each usage sample in the usage sample set including a usage sample application, an application type of the usage sample application, a startup duration of the usage sample application, and CPU usage sample load data and usage sample memory occupancy data of the target terminal when the usage sample application is started; The usage sample set is sent to the server, so that the server optimizes the general model according to the usage sample set to obtain a modified general model.
3. The method according to claim 2, characterized in that The method further comprises: Obtaining the modified general model sent by the server; The general model is updated to the modified general model.
4. The method according to claim 1, characterized in that: The determining the target startup duration of the target application includes: Acquire a target startup mode selected by a user for the target application, wherein the target startup mode includes at least one of a fast startup mode, a medium startup mode, and a slow startup mode; According to the startup duration corresponding to the startup mode, the target startup duration corresponding to the target startup mode is obtained.
5. An application startup device, characterized in that: Applied to terminals, including: An acquisition module, used for collecting the current CPU load data and memory usage data of the target terminal in response to the target application being started; A first determination module, used to determine a target startup duration of the target application; A second determination module is used to determine the startup probability corresponding to the target application being started within the target startup duration according to the CPU load data, the memory usage data, the target application type of the target application and the target startup duration, and determine the target operating frequency of the CPU according to the startup probability; A processing module, used for controlling the CPU to operate at the target operating frequency within the target startup duration; The CPU load data, the memory usage data, the target application type of the target application and the target startup duration are input into a pre-set general model, and the startup probability corresponding to the target application being started within the target startup duration is determined by the general model, and the target operating frequency of the CPU is determined and output according to the startup probability; The general model is sent by the server to the target terminal and is obtained by training based on training sample data uploaded by at least one terminal device, and the training sample data includes a sample application, an application type of the sample application, a startup time of the sample application, and CPU sample load data and sample memory usage data of the corresponding terminal when the sample application is started; The general model determines the startup probability of starting the target application within the target startup duration in the following manner, and determines the target operating frequency of the CPU according to the startup probability: Wherein, F is the target operating frequency of the CPU, L is the current CPU load data of the target terminal, M is the current memory occupancy data of the target terminal, T is the target startup duration of the target application, A is the target application type of the target application, and E is the event that the target terminal successfully starts the target application A within T time under the current CPU load data L and memory occupancy data M. The preset minimum CPU operating frequency. The startup probability of the target application being started within the time T.
6. An application startup device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: implement the steps of the method described in any one of claims 1 to 4.
7. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 4 are implemented.
