WO2019072179A1 - 应用程序运行控制方法及装置 - Google Patents

应用程序运行控制方法及装置 Download PDF

Info

Publication number
WO2019072179A1
WO2019072179A1 PCT/CN2018/109533 CN2018109533W WO2019072179A1 WO 2019072179 A1 WO2019072179 A1 WO 2019072179A1 CN 2018109533 W CN2018109533 W CN 2018109533W WO 2019072179 A1 WO2019072179 A1 WO 2019072179A1
Authority
WO
WIPO (PCT)
Prior art keywords
computing resource
cpu
determining
target application
electronic device
Prior art date
Application number
PCT/CN2018/109533
Other languages
English (en)
French (fr)
Inventor
林志泳
刘美
莫瑞宏
张俊
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2019072179A1 publication Critical patent/WO2019072179A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Definitions

  • the present application relates to the field of electronic device technologies, and in particular, to an application running control method and apparatus.
  • the embodiment of the present application provides an application running control method and apparatus.
  • an embodiment of the present application provides an application running control method, including:
  • Determining that the application currently running on the electronic device includes the target application
  • the target application is run in accordance with the determined CPU performance improvement policy.
  • an embodiment of the present application provides an application running control apparatus, including: a determining unit and an operating unit, where
  • the determining unit is configured to determine that an application currently running by the electronic device includes a target application
  • the determining unit is further configured to determine a central processing unit CPU performance improvement policy of the target application
  • the running unit is configured to run the target application according to the determined CPU performance improvement policy.
  • an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and a communication bus, where the processor, the memory, and the communication interface are connected through the communication bus and complete each other.
  • the memory is stored with executable program code for wireless communication; the processor is configured to invoke the executable program code in the memory to perform the first aspect of the embodiment of the present application. Part or all of the steps.
  • the embodiment of the present application provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes the computer to execute the embodiment of the present application.
  • the computer includes an electronic device.
  • an embodiment of the present application provides a computer program product, where the computer program product includes a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform the implementation as in the present application.
  • the computer program product can be a software installation package, and the computer includes an electronic device.
  • FIG. 1 is a schematic flowchart of an application running control method disclosed in an embodiment of the present application
  • FIG. 2 is a schematic flowchart of another application running control method disclosed in an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of another application running control method disclosed in an embodiment of the present application.
  • FIG. 4 is a block diagram of a unit composition of an application running control apparatus disclosed in an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of another electronic device disclosed in an embodiment of the present application.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the present application.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • the electronic device described in the embodiments of the present invention may include a smart phone (such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.), a tablet computer, a palmtop computer, a notebook computer, a mobile Internet device (MID, Mobile Internet Devices), or a wearable device.
  • a smart phone such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.
  • a tablet computer such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.
  • a palmtop computer such as a notebook computer
  • MID Mobile Internet Devices
  • FIG. 1 is a schematic flowchart of an application running control method according to an embodiment of the present application. As shown in FIG. 1 , the application running control method in the embodiment of the present application includes the following steps:
  • the electronic device determines that an application currently running by the electronic device includes a target application.
  • the target application includes a third-party application or a system application installed by the electronic device, for example, a game application, an instant messaging application, a video application, and the like, and is not limited herein. .
  • the target application is an application running in the foreground of the electronic device, that is, an application having a real interface.
  • the electronic device determines a central processing unit CPU performance improvement policy of the target application.
  • the CPU performance promotion strategy is a strategy for configuring the CPU of the electronic device. Such as increasing the CPU to enable the number of cores, or increase the CPU's main frequency.
  • the CPU's main frequency which is the CPU clock speed of the CPU core operation.
  • the electronic device runs the target application according to the determined CPU performance improvement policy.
  • the picture quality, frame rate, fluency, etc. during the running of the target application are affected by the computing resources of the CPU.
  • the electronic device first determines that the application currently running by the electronic device includes the target application, and secondly, determines a central processing unit CPU performance improvement policy of the target application, and finally, according to the determined CPU performance improvement strategy. Run the target application. It can be seen that after detecting that the target application is running, the electronic device can perform specific performance improvement optimization for the target application, thereby improving the running performance of the target application.
  • the electronic device determines a central processing unit CPU performance improvement policy of the electronic device, including: the electronic device determining a reference computing resource required by the electronic device to run the target application; Determining, by the electronic device, an idle computing resource of a CPU currently enabled by the electronic device; the electronic device determining, according to the reference computing resource and the idle computing resource, a CPU that needs to be additionally enabled, and each enabled CPU is allocated to the a computing resource of the target application; the electronic device generates the CPU performance improvement policy according to the determined number of CPUs that need to be additionally enabled and the computing resources allocated by the CPU to the target application.
  • the computing resource refers to the number of times that the CPU needs to calculate in a unit time, that is, the working frequency.
  • the reference computing resource of an application may be 80 MHz, or 300 MHz, and the like.
  • the idle computing resource of one CPU can be subtracted from the allocated computing resource by the maximum computing resource of the CPU, for example, the maximum computing resource of one CPU is 1 GHz, and the computing resource used is 500 MHz, idle computing resources. It is 524MHZ.
  • the electronic device can allocate sufficient computing resources to the target application by increasing the number of running kernels and increasing the operating frequency of the currently running CPU, so as to prevent the currently running CPU from providing sufficient computing resources to run the target application.
  • the situation of the program occurs, which is beneficial to improve the running performance of the target application.
  • the electronic device determines a reference computing resource required by the electronic device to run the target application, including: the electronic device queries the electronic device to run the target application history computing resource consumption A record that determines the reference computing resources needed to run the target application.
  • the historical computing resource consumption record may be an average value or an interval value of the computing resource consumption record, and the historical computing resource consumption record may further include a performance evaluation value corresponding to the running target application, and the performance evaluation value may be electronically
  • the key performance parameters such as picture quality, fluency and frame rate of the device running target application are comprehensively calculated. The higher the performance evaluation value, the better the running performance (ie, higher fluency, better picture quality, larger frame rate). Therefore, the electronic device can filter the computing resource consumption record with high performance evaluation value from the plurality of computing resource consumption records, and determine the computing resource in the computing resource consumption record as the reference computing resource. This setting helps to accurately determine the computing resources required by the target application and improve accuracy.
  • the electronic device determines, according to the reference computing resource and the idle computing resource, a CPU that needs to be additionally enabled, and a computing resource allocated by each enabled CPU to the target application, including: The electronic device detects that the reference computing resource is greater than the idle computing resource, and determines a difference between the reference computing resource and the idle computing resource, and a computing resource that can be provided by each CPU in the unenabled CPU. An additional enabled CPU is required; the electronic device determines that a computing resource allocated by the currently enabled CPU to the target application is the idle computing resource; and allocates remaining unallocated computing resources of the target application to the The extra enabled CPU.
  • the electronic device includes four CPUs, that is, CPU1, CPU2, CPU3, and CPU4, wherein the computing resource currently provided by the CPU1 is 1000 MHz, and the computing resource that the CPU 2 can provide is 800 MHz, which the CPU 3 can provide.
  • the computing resource is 600 MHz
  • the computing resource that the CPU 4 can provide is 400 MHz
  • the currently running CPU is CPU 1
  • the idle computing resource of the CPU 1 is 600 MHz
  • the reference computing resource of the target application is 800 MHz
  • the electronic device determines the reference computing resource and the CPU 1
  • the difference between the idle computing resources is 200 MHz
  • the CPUs that need to be additionally enabled are determined to be CPU 2 and CPU 3.
  • the computing resources allocated by the CPU 1 to the target application are 600 MHz for the idle computing resources, and the remaining unallocated
  • the 200 MHz is allocated to CPU 2 and CPU 3, that is, CPU 2 is allocated 100 MHz, and CPU 3 is assigned 100 MHz.
  • the electronic device first detects that the reference computing resource is greater than the idle computing resource, and determines the required according to the difference between the reference computing resource and the idle computing resource, and the computing resource that each CPU in the unenabled CPU can provide.
  • the additionally enabled CPU determines that the currently enabled CPU allocates computing resources to the target application as idle computing resources, and finally, distributes the remaining unallocated computing resources of the target application to the additionally enabled CPU. It can be seen that when the electronic device expands the number of enabled cores, it is preferred to let the original running CPU allocate more computing resources to the target application, and then control the additionally enabled CPU to evenly allocate resources. Since the original CPU tends to the main core in the electronic device multi-core, it runs. The reliability is high, so the running reliability can be improved, and the additionally enabled CPU has less computing resources to be allocated, so the completion time is also reduced accordingly, which can shorten the running time and reduce the resource overhead caused by multi-core operation.
  • the electronic device determines a central processing unit CPU performance improvement policy of the electronic device, including: the electronic device determining a reference computing resource required by the electronic device to run the target application; Determining, by the electronic device, a maximum operating frequency of the currently enabled CPU and a current operating frequency; the electronic device determining a frequency boosting value of the currently enabled CPU according to the reference computing resource and the current working frequency; The electronic device determines a CPU performance improvement strategy of the electronic device according to the frequency boost value.
  • the electronic device determines, according to the reference computing resource and the current working frequency, that the frequency boosting value of the currently enabled CPU is implemented: the electronic device is first configured according to a currently enabled CPU.
  • the current working frequency determines the idle computing resource, and further determines that the idle computing resource is smaller than the reference computing resource, and the sum of the idle computing resource and the reference frequency-verifying value is greater than the reference computing resource, determining that the reference frequency-raising value is currently enabled.
  • the frequency boost value of the CPU is determined by the adjustable operating frequency of the currently enabled CPU and the current operating frequency.
  • the idle computing resource is 300 MHz.
  • the electronic device can allocate more computing resources to the target application based on the strategy of increasing the frequency, avoiding the occurrence of a large multi-core power consumption, which is beneficial to improving resource utilization and endurance.
  • FIG. 2 is a schematic flowchart of another application running control method according to an embodiment of the present application.
  • the application running control method in the embodiment of the present invention includes the following steps:
  • the electronic device determines that the application currently running by the electronic device includes a target application.
  • the electronic device determines a reference computing resource required by the electronic device to run the target application.
  • the electronic device determines an idle computing resource of a CPU currently enabled by the electronic device.
  • the electronic device determines, according to the reference computing resource and the idle computing resource, a CPU that needs to be additionally enabled, and a computing resource allocated by each enabled CPU to the target application.
  • the electronic device generates the CPU performance improvement policy according to the determined number of CPUs that need to be additionally enabled and the computing resources allocated by each CPU to the target application.
  • the electronic device first determines that the application currently running by the electronic device includes the target application, and secondly, determines a central processing unit CPU performance improvement policy of the target application, and finally, according to the determined CPU performance improvement strategy. Run the target application. It can be seen that after detecting that the target application is running, the electronic device can perform specific performance improvement optimization for the target application, thereby improving the running performance of the target application.
  • the electronic device can allocate sufficient computing resources to the target application from the perspective of increasing the number of running kernels, thereby preventing the currently running CPU from providing sufficient computing resources to run the target application, which is beneficial to improving the running of the target application. performance.
  • FIG. 3 is a schematic flowchart of another application running control method according to an embodiment of the present application.
  • the application running control method in the embodiment of the present invention includes the following steps:
  • the electronic device determines that an application currently running by the electronic device includes a target application.
  • the electronic device determines a reference computing resource required by the electronic device to run the target application.
  • the electronic device acquires a maximum operating frequency of the currently enabled CPU and a current working frequency.
  • the electronic device determines, according to the reference computing resource and the current working frequency, a frequency boosting value of the currently enabled CPU.
  • the electronic device determines, according to the frequency boosting value, a CPU performance improvement policy of the electronic device.
  • the electronic device runs the target application according to the determined CPU performance improvement policy.
  • the electronic device first determines that the application currently running by the electronic device includes the target application, and secondly, determines a central processing unit CPU performance improvement policy of the target application, and finally, according to the determined CPU performance improvement strategy. Run the target application. It can be seen that after detecting that the target application is running, the electronic device can perform specific performance improvement optimization for the target application, thereby improving the running performance of the target application.
  • the electronic device can allocate more computing resources to the target application based on the strategy of increasing the frequency, avoiding the occurrence of a large multi-core power consumption, which is beneficial to improving resource utilization and endurance.
  • FIG. 4 is a block diagram of a unit composition of an application running control apparatus according to an embodiment of the present application.
  • the application running control apparatus includes a determining unit 401 and an operating unit 402, where:
  • the determining unit 401 is configured to determine that an application currently running by the electronic device includes a target application
  • the determining unit 401 is further configured to determine a central processing unit CPU performance improvement policy of the target application
  • the running unit 402 is configured to run the target application according to the determined CPU performance improvement policy.
  • the electronic device first determines that the application currently running by the electronic device includes the target application, and secondly, determines a central processing unit CPU performance improvement policy of the target application, and finally, according to the determined CPU performance improvement strategy. Run the target application. It can be seen that after detecting that the target application is running, the electronic device can perform specific performance improvement optimization for the target application, thereby improving the running performance of the target application.
  • the determining unit 401 is specifically configured to: determine a reference calculation required by the electronic device to run the target application And determining an idle computing resource of a CPU currently enabled by the electronic device; and determining, based on the reference computing resource and the idle computing resource, a CPU that requires additional activation, and assigning each enabled CPU to the target application And calculating the CPU performance improvement policy according to the determined number of CPUs that need to be additionally enabled and the computing resources allocated by each of the CPUs to the target application.
  • the determining unit 401 is specifically configured to: query the electronic device to run the target application history, in the determining the reference computing resource required for the electronic device to run the target application.
  • a resource consumption record is calculated to determine the reference computing resources needed to run the target application.
  • the determining, in accordance with the reference computing resource and the idle computing resource, determining a CPU that requires additional activation, and computing resources allocated by each enabled CPU to the target application the determining The unit 401 is specifically configured to: detect that the reference computing resource is greater than the idle computing resource, calculate a difference between the reference computing resource and the idle computing resource, and calculate a CPU that is not enabled by each CPU. a resource, determining a CPU that requires additional activation; and determining that a currently enabled CPU allocates computing resources to the target application as the idle computing resource; and equally distributing remaining unallocated computing resources of the target application to The additionally enabled CPU.
  • the determining unit 401 is specifically configured to: determine a reference calculation required by the electronic device to run the target application And obtaining a maximum operating frequency of the currently enabled CPU and a current operating frequency; and determining a frequency boosting value of the currently enabled CPU according to the reference computing resource and the current operating frequency; and according to the frequency The boost value determines a CPU performance improvement strategy of the electronic device.
  • the electronic device described in the device embodiment of the present application is presented in the form of a functional unit.
  • the term "unit” as used herein shall be understood to mean the broadest possible meaning, and the object for implementing the functions described for each "unit” may be, for example, an integrated circuit ASIC, a single circuit for executing one or more software or firmware.
  • a processor shared, dedicated or chipset
  • memory of the program combinatorial logic, and/or other suitable components that perform the functions described above.
  • the determining unit 401 may be a processor, and the running unit may be a processor.
  • the embodiment of the present application further provides another electronic device, as shown in FIG. 5, including: a processor 101, a memory 102, a communication interface 103, and a communication bus 104; wherein the processor 101, the memory 102, and the communication interface 103 communicate
  • the bus 104 connects and completes communication with each other;
  • the processor 101 controls wireless communication with the external cellular network through the communication interface 103;
  • the communication interface 103 includes but is not limited to an antenna, an amplifier, a transceiver, a coupler, and an LNA (Low Noise Amplifier, Low noise amplifier), duplexer, etc.
  • LNA Low Noise Amplifier, Low noise amplifier
  • the memory 102 includes at least one of: a random access memory, a nonvolatile memory, and an external memory, and the memory 102 stores executable program code capable of guiding the processor 101 to execute the method embodiment of the present application.
  • the processor 101 is configured to determine that an application currently running by the electronic device includes a target application; and determine a central processing unit CPU performance improvement policy of the target application; and run the according to the determined CPU performance improvement policy.
  • Target application is configured to determine that an application currently running by the electronic device includes a target application; and determine a central processing unit CPU performance improvement policy of the target application; and run the according to the determined CPU performance improvement policy.
  • the electronic device first determines that the application currently running by the electronic device includes the target application, and secondly, determines a central processing unit CPU performance improvement policy of the target application, and finally, according to the determined CPU performance improvement strategy. Run the target application. It can be seen that after detecting that the target application is running, the electronic device can perform specific performance improvement optimization for the target application, thereby improving the running performance of the target application.
  • the processor 101 is specifically configured to: determine a reference calculation required by the electronic device to run the target application And determining an idle computing resource of a CPU currently enabled by the electronic device; and determining, based on the reference computing resource and the idle computing resource, a CPU that requires additional activation, and assigning each enabled CPU to the target application And calculating the CPU performance improvement policy according to the determined number of CPUs that need to be additionally enabled and the computing resources allocated by each of the CPUs to the target application.
  • the processor 101 in the determining the reference computing resource required by the electronic device to run the target application, is specifically configured to: query the electronic device to run the target application history A resource consumption record is calculated to determine the reference computing resources needed to run the target application.
  • the processing is determined in terms of the CPU that requires additional activation according to the reference computing resource and the idle computing resource, and the computing resources allocated to the target application by each enabled CPU.
  • the device 101 is specifically configured to: detect that the reference computing resource is greater than the idle computing resource, and calculate a difference between the reference computing resource and the idle computing resource, and a calculation that each CPU in the unenabled CPU can provide a resource, determining a CPU that requires additional activation; and determining that a currently enabled CPU allocates computing resources to the target application as the idle computing resource; and equally distributing remaining unallocated computing resources of the target application to The additionally enabled CPU.
  • the processor 101 is specifically configured to: determine a reference calculation required by the electronic device to run the target application And obtaining a maximum operating frequency of the currently enabled CPU and a current operating frequency; and determining a frequency boosting value of the currently enabled CPU according to the reference computing resource and the current operating frequency; and according to the frequency The boost value determines a CPU performance improvement strategy of the electronic device.
  • the embodiment of the present application further provides another electronic device.
  • the electronic device may be any terminal device including a mobile phone, a tablet computer, a PDA (personal digital assistant), a point of sales (POS), a car computer, and the like, and the electronic device is used as a mobile phone as an example:
  • FIG. 6 is a block diagram showing a partial structure of a mobile phone related to an electronic device provided by an embodiment of the present application.
  • the mobile phone includes: a radio frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (Wi-Fi) module 970, and processing.
  • Device 980 and components such as power supply 990.
  • the structure of the handset shown in FIG. 6 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.
  • the components of the mobile phone will be specifically described below with reference to FIG.
  • the RF circuit 910 can be used for receiving and transmitting information.
  • RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like.
  • LNA low noise amplifier
  • RF circuitry 910 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (code division) Multiple access (CDMA), wideband code division multiple access (WCDMA), Long Term Evolution (LTE), e-mail, short messaging service (SMS), and the like.
  • GSM global system of mobile communication
  • GPRS general packet radio service
  • CDMA code division multiple access
  • WCDMA wideband code division multiple access
  • LTE Long Term Evolution
  • SMS short messaging service
  • the memory 920 can be used to store software programs and modules, and the processor 980 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 920.
  • the memory 920 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (control instruction acquisition function, audio stream playback function, etc.), and the like; the storage data area may be stored. Data created according to the use of the mobile phone (such as global sound effects, global sound parameters, application level sound effects examples, application level sound parameters, etc.).
  • memory 920 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 930 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset.
  • the input unit 930 can include a fingerprint identification module 931 and other input devices 932.
  • the fingerprint identification module 931 can collect fingerprint data of the user.
  • the fingerprint identification module 931 can include an optical fingerprint module, a capacitive fingerprint module, and a radio frequency fingerprint module.
  • the fingerprint identification module 931 is an example of a capacitive fingerprint recognition module, and specifically includes a sensing electrode (an abnormal sensing electrode and a normal sensing electrode) and a signal processing circuit (such as an amplifying circuit, a noise suppression circuit, and a mode) connected to the sensing electrode. Number conversion circuit, etc.).
  • the input unit 930 may also include other input devices 932.
  • other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 940 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
  • the display unit 940 can include a display screen 941.
  • the display screen 941 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the fingerprint recognition module 931 and the display screen 941 function as two separate components to implement the input and input functions of the mobile phone, in some embodiments, the fingerprint recognition module 931 and the display screen 941 can be Integrated to achieve the input and output functions of the phone.
  • the handset may also include at least one type of sensor 950, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen 941 according to the brightness of the ambient light, and the proximity sensor may turn off the display screen 941 and/or when the mobile phone moves to the ear. Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the mobile phone can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration
  • vibration recognition related functions such as pedometer, tapping
  • the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • An audio circuit 960, a speaker 961, and a microphone 962 can provide an audio interface between the user and the handset.
  • the audio circuit 960 can transmit the converted electrical data of the received audio data to the speaker 961, and convert it into a sound signal output by the speaker 961.
  • the microphone 962 converts the collected sound signal into an electrical signal, and the audio circuit 960 After receiving, it is converted into audio data, and then processed by the audio data output processor 980, sent to the other mobile phone via the RF circuit 910, or outputted to the memory 920 for further processing.
  • WiFi is a short-range wireless transmission technology
  • the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 970, which provides users with wireless broadband Internet access.
  • FIG. 6 shows the WiFi module 970, it can be understood that it does not belong to the essential configuration of the mobile phone, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 980 is the control center of the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 920, and invoking data stored in the memory 920, executing The phone's various functions and processing data, so that the overall monitoring of the phone.
  • the processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 980.
  • the handset also includes a power source 990 (such as a battery) that supplies power to the various components.
  • a power source 990 such as a battery
  • the power source can be logically coupled to the processor 980 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • each step method flow can be implemented based on the structure of the mobile phone.
  • each unit function can be implemented based on the structure of the mobile phone.
  • the embodiment of the present application further provides a computer program product, comprising: a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform the operations as recited in the foregoing method embodiments Any one or all of the steps of any application running control device method.
  • the embodiment of the present application further provides a computer storage medium, wherein the computer storage medium may store a program, and the program includes some or all of the steps of any one of the application operation control device methods described in the foregoing method embodiments.
  • the disclosed apparatus may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable memory.
  • a computer readable memory A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing memory includes: a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

本申请实施例公开了一种应用程序控制方法及装置,方法包括:确定电子设备当前运行的应用程序包括目标应用程序;确定所述目标应用程序的中央处理单元CPU性能提升策略;按照确定的所述CPU性能提升策略运行所述目标应用程序。

Description

应用程序运行控制方法及装置
本发明要求2017年10月11日递交的发明名称为“应用程序运行控制方法及装置”的申请号201710941447.2的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。
技术领域
本申请涉及电子设备技术领域,具体涉及一种应用程序运行控制方法及装置。
背景技术
随着智能手机相关技术的快速发展,越来越多的应用被安装在用户手机中,如阅读类应用、支付类应用、游戏类应用、音乐类应用等,人们的衣食住行已经与手机密不可分。
发明内容
本申请实施例提供了应用程序运行控制方法及装置。
第一方面,本申请实施例提供一种应用程序运行控制方法,包括:
确定电子设备当前运行的应用程序包括目标应用程序;
确定所述目标应用程序的中央处理单元CPU性能提升策略;
按照确定的所述CPU性能提升策略运行所述目标应用程序。
第二方面,本申请实施例提供了一种应用程序运行控制装置,其特征在于,包括确定单元和运行单元,其中,
所述确定单元,用于确定电子设备当前运行的应用程序包括目标应用程序;
所述确定单元,还用于确定所述目标应用程序的中央处理单元CPU性能提升策略;
所述运行单元,用于按照确定的所述CPU性能提升策略运行所述目标应用程序。
第三方面,本申请实施例提供了一种电子设备,包括处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总 线连接并完成相互间的通信;所述存储器存储有可执行程序代码,所述通信接口用于无线通信;所述处理器用于调用所述存储器中的所述可执行程序代码,执行本申请实施例第一方面所描述的部分或全部步骤。
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第一方面所描述的部分或全部步骤,上述计算机包括电子设备。
第五方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第一方面所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括电子设备。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例公开的一种应用程序运行控制方法的流程示意图;
图2是本申请实施例公开的另一种应用程序运行控制方法的流程示意图;
图3是本申请实施例公开的另一种应用程序运行控制方法的流程示意图;
图4是本申请实施例公开的一种应用程序运行控制装置的单元组成框图;
图5是本申请实施例公开的一种电子设备的结构示意图;
图6是本申请实施例公开的另一种电子设备的结构示意图。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
本发明实施例所描述的电子设备可以包括智能手机(如Android手机、iOS手机、Windows Phone手机等)、平板电脑、掌上电脑、笔记本电脑、移动互联网设备(MID,Mobile Internet Devices)或穿戴式设备等,上述电子设备仅是举例,而非穷举,包含但不限于上述电子设备。
为了更好理解本申请实施例公开的一种应用程序运行控制方法及装置,下面对本申请实施例进行详细介绍。
请参阅图1,图1是本申请实施例提供的一种应用程序运行控制方法的流程示意图,如图1所示,本申请实施例中的应用程序运行控制方法包括以下步骤:
S101,电子设备确定电子设备当前运行的应用程序包括目标应用程序。
其中,目标应用程序包括所述电子设备安装的第三方应用程序或者系统应用程序,例如可以是游戏类应用程序、即时通讯类应用程序、视频应用程序等各类应用程序,此处不做唯一限定。
其中,所述目标应用程序为电子设备前台运行的应用程序,即存在现实界面的应用程序。
S102,所述电子设备确定所述目标应用程序的中央处理单元CPU性能提升策略。
其中,CPU性能提策略是指针对电子设备的CPU进行配置的策略。如增加CPU启用核数,或者提高CPU的主频等。其中,CPU的主频,即CPU内核工 作的时钟频率(CPU Clock Speed)。
S103,所述电子设备按照确定的所述CPU性能提升策略运行所述目标应用程序。
其中,目标应用程序运行过程中的画面质量、帧率、流畅度等均受到CPU的计算资源的影响。
可以看出,本申请实施例中,电子设备首先确定电子设备当前运行的应用程序包括目标应用程序,其次,确定目标应用程序的中央处理单元CPU性能提升策略,最后,按照确定的CPU性能提升策略运行目标应用程序。可见电子设备在检测到目标应用程序运行后,能够针对该目标应用程序进行专门的性能提升优化,从而有利于提高目标应用程序的运行性能。
在一个可能的示例中,所述电子设备确定所述电子设备的中央处理单元CPU性能提升策略,包括:所述电子设备确定所述电子设备运行所述目标应用程序所需要的参考计算资源;所述电子设备确定所述电子设备当前启用的CPU的空闲计算资源;所述电子设备根据所述参考计算资源和所述空闲计算资源确定需要额外启用的CPU,以及每个启用的CPU分配给所述目标应用程序的计算资源;所述电子设备根据确定的所述需要额外启用的CPU的个数和所述每个CPU分配给所述目标应用程序的计算资源,生成所述CPU性能提升策略。
其中,计算资源是指在单位时间内需要CPU进行计算的次数,即工作频率。
以参考计算资源为例,如一个应用程序的参考计算资源可以是80MHZ,或者300MHZ等。
以空闲计算资源为例,一个CPU的空闲计算资源可由该CPU的最大计算资源减去已分配使用的计算资源,如一个CPU的最大计算资源为1GHZ,已使用计算资源为500MHZ,则空闲计算资源为524MHZ。
可见,本示例中,电子设备能够通过提高运行内核的数量和提高当前运行的CPU的工作频率的角度为目标应用程序分配足够的计算资源,避免当前运行的CPU难以提供足够计算资源来运行目标应用程序的情况发生,有利于提高目标应用程序的运行性能。
在本可能的示例中,所述电子设备确定所述电子设备运行所述目标应用程序所需要的参考计算资源,包括:所述电子设备查询所述电子设备运行所述目 标应用程序历史计算资源消耗记录,确定运行所述目标应用程序所需要的参考计算资源。
其中,所述历史计算资源消耗记录可以为计算资源消耗记录的平均值或者区间值,且该历史计算资源消耗记录进一步还可以包括对应运行目标应用程序的性能评价值,该性能评价值可以由电子设备运行目标应用程序的画面质量、流畅度以及帧率等关键性能参数综合计算得到,性能评价值越高代表运行性能越好(即更高流畅度、更优画面质量、更大帧率),从而电子设备能够从多个计算资源消耗记录中筛选出性能评价值较高的计算资源消耗记录,并将该计算资源消耗记录中的计算资源确定为参考计算资源。如此设置有利于准确确定目标应用程序所需要的计算资源,提高准确度。
可见,本示例中,由于电子设备能够基于历史计算资源消耗记录中准确确定目标应用程序的参考计算资源,有利于提高CPU计算资源配置的准确度。
在一个可能的示例中,所述电子设备根据所述参考计算资源和所述空闲计算资源确定需要额外启用的CPU,以及每个启用的CPU分配给所述目标应用程序的计算资源,包括:所述电子设备检测到所述参考计算资源大于所述空闲计算资源,根据所述参考计算资源和所述空闲计算资源的差值,以及未启用的CPU中每个CPU所能够提供的计算资源,确定需要额外启用的CPU;所述电子设备确定当前启用的CPU分配给所述目标应用程序的计算资源为所述空闲计算资源;将所述目标应用程序的剩余的未分配的计算资源平均分配给所述额外启用的CPU。
举例来说,假设电子设备包括4个CPU,即CPU1、CPU2、CPU3、CPU4,其中CPU1当前设置的所能够提供的计算资源为1000MHZ,CPU2所能够提供的计算资源为800MHZ,CPU3所能够提供的计算资源为600MHZ,CPU4所能够提供的计算资源为400MHZ,当前运行的CPU为CPU1,CPU1的空闲计算资源为600MHZ,目标应用程序的参考计算资源为800MHZ,则电子设备确定参考计算资源和CPU1的空闲计算资源的差值为200MHZ,确定需要额外启用的CPU为CPU2和CPU3,进一步地,确定CPU1分配给所述目标应用程序的计算资源为所述空闲计算资源为600MHZ,并将剩余的未分配的200MHZ分配给CPU2和CPU3,即CPU2分配100MHZ,CPU3分配100MHZ。
可见,本示例中,电子设备首先检测到参考计算资源大于空闲计算资源,则根据参考计算资源和空闲计算资源的差值,以及未启用的CPU中每个CPU所能够提供的计算资源,确定需要额外启用的CPU,其次,电子设备确定当前启用的CPU分配给目标应用程序的计算资源为空闲计算资源,最后,将目标应用程序的剩余的未分配的计算资源平均分配给额外启用的CPU。可见电子设备扩展启用的内核数量时,首选让原运行CPU分配较多计算资源给目标应用程序,然后控制额外启用的CPU平均分配资源,由于原CPU往往至电子设备多核中的主核,其运行可靠性较高,故而可以提高运行可靠性,且额外启用的CPU由于需要分配的计算资源较少,故而完成时长也相应减少,可以缩短运行时长,减少多核运行带来的资源开销。
在一个可能的示例中,所述电子设备确定所述电子设备的中央处理单元CPU性能提升策略,包括:所述电子设备确定所述电子设备运行所述目标应用程序所需要的参考计算资源;所述电子设备获取当前启用的CPU的最大工作频率以及当前的工作频率;所述电子设备根据所述参考计算资源和所述当前的工作频率,确定所述当前启用的CPU的频率提升值;所述电子设备根据所述频率提升值确定所述电子设备的CPU性能提升策略。
具体实现中,所述电子设备根据所述参考计算资源和所述当前的工作频率,确定所述当前启用的CPU的频率提升值的实现方式可以是:所述电子设备首先根据当前启用的CPU的当前的工作频率确定空闲计算资源,进一步确定该空闲计算资源小于所述参考计算资源,且空闲计算资源和参考提频值的和大于所述参考计算资源,则确定该参考提频值为当前启用的CPU的频率提升值,参考提频值由所述当前启用的CPU的可调工作频率和所述当前的工作频率确定。
举例来说,假设电子设备的CPU1的工作频率为800MHZ,其中500MHZ计算资源用于计算具体业务,则空闲计算资源为300MHZ。
可见,本示例中,由于电子设备能够基于提高频率的策略为目标应用程序分配更多计算资源,避免启用多核功率消耗较大的情况发生,有利于提高资源使用率和续航能力。
与上述图1所示的实施例一致的,请参阅图2,图2是本申请实施例提供的 另一种应用程序运行控制方法的流程示意图。如图2所示,本发明实施例中的应用程序运行控制方法包括以下步骤:
S201,电子设备确定电子设备当前运行的应用程序包括目标应用程序。
S202,所述电子设备确定所述电子设备运行所述目标应用程序所需要的参考计算资源。
S203,所述电子设备确定所述电子设备当前启用的CPU的空闲计算资源。
S204,所述电子设备根据所述参考计算资源和所述空闲计算资源确定需要额外启用的CPU,以及每个启用的CPU分配给所述目标应用程序的计算资源。
S205,所述电子设备根据确定的所述需要额外启用的CPU的个数和所述每个CPU分配给所述目标应用程序的计算资源,生成所述CPU性能提升策略。
可以看出,本申请实施例中,电子设备首先确定电子设备当前运行的应用程序包括目标应用程序,其次,确定目标应用程序的中央处理单元CPU性能提升策略,最后,按照确定的CPU性能提升策略运行目标应用程序。可见电子设备在检测到目标应用程序运行后,能够针对该目标应用程序进行专门的性能提升优化,从而有利于提高目标应用程序的运行性能。
此外,电子设备能够从提高运行内核的数量的角度为目标应用程序分配足够的计算资源,避免当前运行的CPU难以提供足够计算资源来运行目标应用程序的情况发生,有利于提高目标应用程序的运行性能。
与上述图1和图2所示的实施例一致的,请参阅图3,图3是本申请实施例提供的另一种应用程序运行控制方法的流程示意图。如图3所示,本发明实施例中的应用程序运行控制方法包括以下步骤:
S301,电子设备确定电子设备当前运行的应用程序包括目标应用程序。
S302,所述电子设备确定所述电子设备运行所述目标应用程序所需要的参考计算资源。
S303,所述电子设备获取当前启用的CPU的最大工作频率以及当前的工作频率。
S304,所述电子设备根据所述参考计算资源和所述当前的工作频率,确定所述当前启用的CPU的频率提升值。
S305,所述电子设备根据所述频率提升值确定所述电子设备的CPU性能提升策略。
S306,所述电子设备按照确定的所述CPU性能提升策略运行所述目标应用程序。
可以看出,本申请实施例中,电子设备首先确定电子设备当前运行的应用程序包括目标应用程序,其次,确定目标应用程序的中央处理单元CPU性能提升策略,最后,按照确定的CPU性能提升策略运行目标应用程序。可见电子设备在检测到目标应用程序运行后,能够针对该目标应用程序进行专门的性能提升优化,从而有利于提高目标应用程序的运行性能。
此外,由于电子设备能够基于提高频率的策略为目标应用程序分配更多计算资源,避免启用多核功率消耗较大的情况发生,有利于提高资源使用率和续航能力。
下面为本申请装置实施例,本申请装置实施例用于执行本申请方法实施例所实现的方法。请参阅图4,图4是本申请实施例公开的一种应用程序运行控制装置的单元组成框图,如图4所示,该应用程序运行控制装置包括确定单元401和运行单元402,其中:
所述确定单元401,用于确定电子设备当前运行的应用程序包括目标应用程序;
所述确定单元401,还用于确定所述目标应用程序的中央处理单元CPU性能提升策略;
所述运行单元402,用于按照确定的所述CPU性能提升策略运行所述目标应用程序。
可以看出,本申请实施例中,电子设备首先确定电子设备当前运行的应用程序包括目标应用程序,其次,确定目标应用程序的中央处理单元CPU性能提升策略,最后,按照确定的CPU性能提升策略运行目标应用程序。可见电子设备在检测到目标应用程序运行后,能够针对该目标应用程序进行专门的性能提升优化,从而有利于提高目标应用程序的运行性能。
在一个可能的示例中,在所述确定所述电子设备的中央处理单元CPU性能 提升策略方面,所述确定单元401具体用于:确定所述电子设备运行所述目标应用程序所需要的参考计算资源;以及确定所述电子设备当前启用的CPU的空闲计算资源;以及根据所述参考计算资源和所述空闲计算资源确定需要额外启用的CPU,以及每个启用的CPU分配给所述目标应用程序的计算资源;以及根据确定的所述需要额外启用的CPU的个数和所述每个CPU分配给所述目标应用程序的计算资源,生成所述CPU性能提升策略。
在一个可能的示例中,在所述确定所述电子设备运行所述目标应用程序所需要的参考计算资源方面,所述确定单元401具体用于:查询所述电子设备运行所述目标应用程序历史计算资源消耗记录,确定运行所述目标应用程序所需要的参考计算资源。
在一个可能的示例中,在所述根据所述参考计算资源和所述空闲计算资源确定需要额外启用的CPU,以及每个启用的CPU分配给所述目标应用程序的计算资源方面,所述确定单元401具体用于:检测到所述参考计算资源大于所述空闲计算资源,根据所述参考计算资源和所述空闲计算资源的差值,以及未启用的CPU中每个CPU所能够提供的计算资源,确定需要额外启用的CPU;以及确定当前启用的CPU分配给所述目标应用程序的计算资源为所述空闲计算资源;以及将所述目标应用程序的剩余的未分配的计算资源平均分配给所述额外启用的CPU。
在一个可能的示例中,在所述确定所述电子设备的中央处理单元CPU性能提升策略方面,所述确定单元401具体用于:确定所述电子设备运行所述目标应用程序所需要的参考计算资源;以及获取当前启用的CPU的最大工作频率以及当前的工作频率;以及根据所述参考计算资源和所述当前的工作频率,确定所述当前启用的CPU的频率提升值;以及根据所述频率提升值确定所述电子设备的CPU性能提升策略。
需要注意的是,本申请装置实施例所描述的电子设备是以功能单元的形式呈现。这里所使用的术语“单元”应当理解为尽可能最宽的含义,用于实现各个“单元”所描述功能的对象例如可以是集成电路ASIC,单个电路,用于执行一个或多个软件或固件程序的处理器(共享的、专用的或芯片组)和存储器,组合逻辑电路,和/或提供实现上述功能的其他合适的组件。
其中,上述确定单元401可以是处理器,上述运行单元可以是处理器。
本申请实施例还提供了另一种电子设备,如图5所示,包括:处理器101,存储器102,通信接口103和通信总线104;其中,处理器101、存储器102和通信接口103通过通信总线104连接并完成相互间的通信;处理器101通过通信接口103控制与外部蜂窝网的无线通信;通信接口103包括但不限于天线、放大器、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。存储器102包括以下至少一种:随机存取存贮器、非易失性存储器以及外部存储器,存储器102中存储有可执行程序代码,该可执行程序代码能够引导处理器101执行本申请方法实施例中具体披露的应用程序运行控制方法法。
所述处理器101,用于确定电子设备当前运行的应用程序包括目标应用程序;以及确定所述目标应用程序的中央处理单元CPU性能提升策略;以及按照确定的所述CPU性能提升策略运行所述目标应用程序。
可以看出,本申请实施例中,电子设备首先确定电子设备当前运行的应用程序包括目标应用程序,其次,确定目标应用程序的中央处理单元CPU性能提升策略,最后,按照确定的CPU性能提升策略运行目标应用程序。可见电子设备在检测到目标应用程序运行后,能够针对该目标应用程序进行专门的性能提升优化,从而有利于提高目标应用程序的运行性能。
在一个可能的示例中,在所述确定所述电子设备的中央处理单元CPU性能提升策略方面,所述处理器101具体用于:确定所述电子设备运行所述目标应用程序所需要的参考计算资源;以及确定所述电子设备当前启用的CPU的空闲计算资源;以及根据所述参考计算资源和所述空闲计算资源确定需要额外启用的CPU,以及每个启用的CPU分配给所述目标应用程序的计算资源;以及根据确定的所述需要额外启用的CPU的个数和所述每个CPU分配给所述目标应用程序的计算资源,生成所述CPU性能提升策略。
在一个可能的示例中,在所述确定所述电子设备运行所述目标应用程序所需要的参考计算资源方面,所述处理器101具体用于:查询所述电子设备运行所述目标应用程序历史计算资源消耗记录,确定运行所述目标应用程序所需要的参考计算资源。
在一个可能的示例中,在所述根据所述参考计算资源和所述空闲计算资源确定需要额外启用的CPU,以及每个启用的CPU分配给所述目标应用程序的计算资源方面,所述处理器101具体用于:检测到所述参考计算资源大于所述空闲计算资源,根据所述参考计算资源和所述空闲计算资源的差值,以及未启用的CPU中每个CPU所能够提供的计算资源,确定需要额外启用的CPU;以及确定当前启用的CPU分配给所述目标应用程序的计算资源为所述空闲计算资源;以及将所述目标应用程序的剩余的未分配的计算资源平均分配给所述额外启用的CPU。
在一个可能的示例中,在所述确定所述电子设备的中央处理单元CPU性能提升策略方面,所述处理器101具体用于:确定所述电子设备运行所述目标应用程序所需要的参考计算资源;以及获取当前启用的CPU的最大工作频率以及当前的工作频率;以及根据所述参考计算资源和所述当前的工作频率,确定所述当前启用的CPU的频率提升值;以及根据所述频率提升值确定所述电子设备的CPU性能提升策略。
本申请实施例还提供了另一种电子设备,如图6所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该电子设备可以为包括手机、平板电脑、PDA(personal digital assistant,个人数字助理)、销售终端(point of sales,POS)、车载电脑等任意终端设备,以电子设备为手机为例:
图6示出的是与本申请实施例提供的电子设备相关的手机的部分结构的框图。参考图6,手机包括:射频(radio frequency,RF)电路910、存储器920、输入单元930、显示单元940、传感器950、音频电路960、无线保真(wireless fidelity,Wi-Fi)模块970、处理器980、以及电源990等部件。本领域技术人员可以理解,图6中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。下面结合图6对手机的各个构成部件进行具体的介绍。
RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(low noise amplifier, LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(global system of mobile communication,GSM)、通用分组无线服务(general packet radio service,GPRS)、码分多址(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(short Messaging Service,SMS)等。
存储器920可用于存储软件程序以及模块,处理器980通过运行存储在存储器920的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器920可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(控制指令获取功能、音频流播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如全局音效实例、全局音效参数、应用层级音效实例、应用层级音效参数等)等。此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元930可用于接收输入的数字或字符信息,以及生成与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括指纹识别模组931以及其他输入设备932。指纹识别模组931,可采集用户在其上的指纹数据。可选的,指纹识别模组931可包括光学式指纹模块、电容式指纹模块以及射频式指纹模块。以指纹识别模组931为电容式指纹识别模组为例,具体包括感应电极(异常感应电极和正常感应电极)和与所述感应电极连接的信号处理电路(如放大电路、噪声抑制电路、模数转化电路,等等)。除了指纹识别模组931,输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元940可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元940可包括显示屏941,可选的,可以采用液晶显示器(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)等形式来配置显示屏941。虽然在图6中,指纹识别模组931与显示屏 941是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将指纹识别模组931与显示屏941集成而实现手机的输入和输出功能。
手机还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏941的亮度,接近传感器可在手机移动到耳边时,关闭显示屏941和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号输出;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据输出处理器980处理后,经RF电路910以发送给比如另一手机,或者将音频数据输出至存储器920以便进一步处理。
WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了WiFi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器980可包括一个或多个处理单元;优选的,处理器980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器980中。
手机还包括给各个部件供电的电源990(比如电池),优选的,电源可以通过电源管理系统与处理器980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。
前述图1、图2和图3所示的实施例中,各步骤方法流程可以基于该手机的结构实现。
前述图4所示的实施例中,各单元功能可以基于该手机的结构实现。
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种应用程序运行控制装置方法的部分或全部步骤。
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种应用程序运行控制装置方法的部分或全部步骤。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(read-only memory,ROM)、随机存取器(random access memory,RAM)、磁盘或光盘等。
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种应用程序运行控制方法,其特征在于,包括:
    确定电子设备当前运行的应用程序包括目标应用程序;
    确定所述目标应用程序的中央处理单元CPU性能提升策略;
    按照确定的所述CPU性能提升策略运行所述目标应用程序。
  2. 如权利要求1所述的方法,其特征在于,所述目标应用程序为电子设备前台运行的应用程序。
  3. 如权利要求1所述的方法,其特征在于,所述确定所述电子设备的中央处理单元CPU性能提升策略,包括:
    确定所述电子设备运行所述目标应用程序所需要的参考计算资源;
    确定所述电子设备当前启用的CPU的空闲计算资源;
    根据所述参考计算资源和所述空闲计算资源确定需要额外启用的CPU,以及每个启用的CPU分配给所述目标应用程序的计算资源;
    根据确定的所述需要额外启用的CPU的个数和所述每个CPU分配给所述目标应用程序的计算资源,生成所述CPU性能提升策略。
  4. 如权利要求3所述的方法,其特征在于,所述确定所述电子设备运行所述目标应用程序所需要的参考计算资源,包括:
    查询所述电子设备运行所述目标应用程序历史计算资源消耗记录,确定运行所述目标应用程序所需要的参考计算资源。
  5. 如权利要求4所述的方法,其特征在于,所述历史计算资源消耗记录包括计算资源消耗记录的平均值以及对应的运行目标应用程序的性能评价值,所述确定运行所述目标应用程序所需要的参考计算资源,包括:
    从多个计算资源消耗记录中筛选出性能评价值较高的计算资源消耗记录,并将该计算资源消耗记录中的计算资源确定为所述参考计算资源。
  6. 如权利要求3至5项中任一项所述的方法,其特征在于,所述根据所述参考计算资源和所述空闲计算资源确定需要额外启用的CPU,以及每个启用的CPU分配给所述目标应用程序的计算资源,包括:
    检测到所述参考计算资源大于所述空闲计算资源,根据所述参考计算资源和所述空闲计算资源的差值,以及未启用的CPU中每个CPU所能够提供的计算 资源,确定需要额外启用的CPU;
    确定当前启用的CPU分配给所述目标应用程序的计算资源为所述空闲计算资源;
    将所述目标应用程序的剩余的未分配的计算资源平均分配给所述额外启用的CPU。
  7. 如权利要求1或2所述的方法,其特征在于,所述确定所述电子设备的中央处理单元CPU性能提升策略,包括:
    确定所述电子设备运行所述目标应用程序所需要的参考计算资源;
    获取当前启用的CPU的最大工作频率以及当前的工作频率;
    根据所述参考计算资源和所述当前的工作频率,确定所述当前启用的CPU的频率提升值;
    根据所述频率提升值确定所述电子设备的CPU性能提升策略。
  8. 如权利要求7所述的方法,其特征在于,所述根据所述参考计算资源和所述当前的工作频率,确定所述当前启用的CPU的频率提升值包括:
    根据当前启用的CPU的当前的工作频率确定空闲计算资源;
    若所述空闲计算资源小于所述参考计算资源且所述空闲计算资源和参考提频值的和大于所述参考计算资源,确定所述参考提频值为当前启用的CPU的频率提升值。
  9. 一种应用程序运行控制装置,其特征在于,包括确定单元和运行单元,其中,
    所述确定单元,用于确定电子设备当前运行的应用程序包括目标应用程序;
    所述确定单元,还用于确定所述目标应用程序的中央处理单元CPU性能提升策略;
    所述运行单元,用于按照确定的所述CPU性能提升策略运行所述目标应用程序。
  10. 根据权利要求9所述的装置,其特征在于,所述目标应用程序为电子设备前台运行的应用程序。
  11. 根据权利要求9所述的装置,其特征在于,在所述确定所述电子设备 的中央处理单元CPU性能提升策略方面,所述确定单元具体用于:确定所述电子设备运行所述目标应用程序所需要的参考计算资源;以及确定所述电子设备当前启用的CPU的空闲计算资源;以及根据所述参考计算资源和所述空闲计算资源确定需要额外启用的CPU,以及每个启用的CPU分配给所述目标应用程序的计算资源;以及根据确定的所述需要额外启用的CPU的个数和所述每个CPU分配给所述目标应用程序的计算资源,生成所述CPU性能提升策略。
  12. 根据权利要求11所述的装置,其特征在于,在所述确定所述电子设备运行所述目标应用程序所需要的参考计算资源方面,所述确定单元具体用于:查询所述电子设备运行所述目标应用程序历史计算资源消耗记录,确定运行所述目标应用程序所需要的参考计算资源。
  13. 根据权利要求12所述的装置,其特征在于,所述历史计算资源消耗记录包括计算资源消耗记录的平均值以及对应的运行目标应用程序的性能评价值,在用于确定运行所述目标应用程序所需要的参考计算资源,所述确定单元具体用于:
    从多个计算资源消耗记录中筛选出性能评价值较高的计算资源消耗记录,并将该计算资源消耗记录中的计算资源确定为所述参考计算资源。
  14. 根据权利要求11至13项中任一项所述的装置,其特征在于,在用于根据所述参考计算资源和所述空闲计算资源确定需要额外启用的CPU,以及每个启用的CPU分配给所述目标应用程序的计算资源,所述确定单元具体用于:
    检测到所述参考计算资源大于所述空闲计算资源,根据所述参考计算资源和所述空闲计算资源的差值,以及未启用的CPU中每个CPU所能够提供的计算资源,确定需要额外启用的CPU;
    确定当前启用的CPU分配给所述目标应用程序的计算资源为所述空闲计算资源;
    将所述目标应用程序的剩余的未分配的计算资源平均分配给所述额外启用的CPU。
  15. 根据权利要求9或10所述的装置,其特征在于,在所述确定所述电子设备的中央处理单元CPU性能提升策略方面,所述确定单元具体用于:
    确定所述电子设备运行所述目标应用程序所需要的参考计算资源;
    获取当前启用的CPU的最大工作频率以及当前的工作频率;
    根据所述参考计算资源和所述当前的工作频率,确定所述当前启用的CPU的频率提升值;
    根据所述频率提升值确定所述电子设备的CPU性能提升策略。
  16. 根据权利要求,15所述的装置,其特征在于,在用于根据所述参考计算资源和所述当前的工作频率,确定所述当前启用的CPU的频率提升值,所述确定单元具体用于:
    根据当前启用的CPU的当前的工作频率确定空闲计算资源;
    若所述空闲计算资源小于所述参考计算资源且所述空闲计算资源和参考提频值的和大于所述参考计算资源,确定所述参考提频值为当前启用的CPU的频率提升值。
  17. 一种计算机可读存储介质,其特征在于,其存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行以下操作:
    确定电子设备当前运行的应用程序包括目标应用程序;
    确定所述目标应用程序的中央处理单元CPU性能提升策略;
    按照确定的所述CPU性能提升策略运行所述目标应用程序。
  18. 如权利要求17所述的计算机可读存储介质,其特征在于,在确定所述电子设备的中央处理单元CPU性能提升策略方面,所述计算机程序使得计算机执行以下操作:
    确定所述电子设备运行所述目标应用程序所需要的参考计算资源;
    确定所述电子设备当前启用的CPU的空闲计算资源;
    根据所述参考计算资源和所述空闲计算资源确定需要额外启用的CPU,以及每个启用的CPU分配给所述目标应用程序的计算资源;
    根据确定的所述需要额外启用的CPU的个数和所述每个CPU分配给所述目标应用程序的计算资源,生成所述CPU性能提升策略。
  19. 如权利要求18所述的计算机可读存储介质,其特征在于,在确定所述电子设备运行所述目标应用程序所需要的参考计算资源方面,所述计算机程序使得计算机执行以下操作:
    查询所述电子设备运行所述目标应用程序历史计算资源消耗记录,确定运行所述目标应用程序所需要的参考计算资源。
  20. 如权利要求17或18所述的计算机可读存储介质,其特征在于,在根据所述参考计算资源和所述空闲计算资源确定需要额外启用的CPU,以及每个启用的CPU分配给所述目标应用程序的计算资源方面,所述计算机程序使得计算机执行以下操作:
    检测到所述参考计算资源大于所述空闲计算资源,根据所述参考计算资源和所述空闲计算资源的差值,以及未启用的CPU中每个CPU所能够提供的计算资源,确定需要额外启用的CPU;
    确定当前启用的CPU分配给所述目标应用程序的计算资源为所述空闲计算资源;
    将所述目标应用程序的剩余的未分配的计算资源平均分配给所述额外启用的CPU。
PCT/CN2018/109533 2017-10-11 2018-10-09 应用程序运行控制方法及装置 WO2019072179A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710941447.2 2017-10-11
CN201710941447.2A CN107729145A (zh) 2017-10-11 2017-10-11 应用程序运行控制方法及装置

Publications (1)

Publication Number Publication Date
WO2019072179A1 true WO2019072179A1 (zh) 2019-04-18

Family

ID=61210590

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/109533 WO2019072179A1 (zh) 2017-10-11 2018-10-09 应用程序运行控制方法及装置

Country Status (2)

Country Link
CN (1) CN107729145A (zh)
WO (1) WO2019072179A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729145A (zh) * 2017-10-11 2018-02-23 广东欧珀移动通信有限公司 应用程序运行控制方法及装置
CN110681155A (zh) * 2019-09-29 2020-01-14 Oppo广东移动通信有限公司 一种游戏优化方法、游戏优化装置及移动终端
CN114120616B (zh) * 2021-11-24 2023-03-28 深圳市欧瑞博科技股份有限公司 红外信号发送方法、装置、电子设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130046955A1 (en) * 2011-08-17 2013-02-21 International Business Machines Corporation Local Computation Logic Embedded in a Register File to Accelerate Programs
CN103279391A (zh) * 2013-06-09 2013-09-04 浪潮电子信息产业股份有限公司 一种基于cpu与mic架构处理器协同计算的负载均衡优化方法
CN105955827A (zh) * 2016-05-31 2016-09-21 广东欧珀移动通信有限公司 处理器计算资源的分配方法及装置
CN107729145A (zh) * 2017-10-11 2018-02-23 广东欧珀移动通信有限公司 应用程序运行控制方法及装置

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105988871B (zh) * 2015-01-27 2020-06-02 华为技术有限公司 一种远端内存分配方法、装置和系统
CN106155870B (zh) * 2015-04-27 2020-02-28 腾讯科技(深圳)有限公司 一种终端的优化处理方法、装置及终端
CN106293924B (zh) * 2015-05-20 2019-09-17 Tcl集团股份有限公司 安卓系统的内存管理方法及装置
CN106055070B (zh) * 2016-05-24 2019-08-09 青岛海信移动通信技术股份有限公司 终端功耗控制方法及装置
CN106095489B (zh) * 2016-05-31 2017-11-07 广东欧珀移动通信有限公司 一种应用控制方法及移动终端
CN106844050A (zh) * 2017-01-19 2017-06-13 郑州云海信息技术有限公司 一种内存分配方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130046955A1 (en) * 2011-08-17 2013-02-21 International Business Machines Corporation Local Computation Logic Embedded in a Register File to Accelerate Programs
CN103279391A (zh) * 2013-06-09 2013-09-04 浪潮电子信息产业股份有限公司 一种基于cpu与mic架构处理器协同计算的负载均衡优化方法
CN105955827A (zh) * 2016-05-31 2016-09-21 广东欧珀移动通信有限公司 处理器计算资源的分配方法及装置
CN107729145A (zh) * 2017-10-11 2018-02-23 广东欧珀移动通信有限公司 应用程序运行控制方法及装置

Also Published As

Publication number Publication date
CN107729145A (zh) 2018-02-23

Similar Documents

Publication Publication Date Title
US11849399B2 (en) Method for reducing power consumption of terminal, and terminal
US10496445B2 (en) Method for controlling application and related devices
EP3432136B1 (en) Sound effect configuration method and related device
US10552178B2 (en) Method for controlling startup of application and terminal device
WO2018219119A1 (zh) 应用功能的控制方法及相关产品
WO2018214734A1 (zh) 拍照控制方法及相关产品
WO2015035870A1 (zh) 多cpu调度方法及装置
US11099898B2 (en) Method for allocating memory resources and terminal device
WO2017206856A1 (zh) 处理器资源的分配方法及移动终端
WO2019041280A1 (zh) 应用资源推荐方法及相关设备
WO2017206901A1 (zh) 进程控制方法及相关设备
WO2019072179A1 (zh) 应用程序运行控制方法及装置
CN111651030B (zh) 传感器检测方法、装置、存储介质及移动终端
CN110874128A (zh) 可视化数据处理方法和电子设备
CN108965042B (zh) 网络延迟的获取方法、装置、终端设备及存储介质
CN110837343A (zh) 处理快照的方法、装置及终端
WO2017206903A1 (zh) 应用控制方法及相关设备
WO2018214745A1 (zh) 应用控制方法及相关产品
WO2017206851A1 (zh) 安装任务的分配方法及移动终端
WO2017206857A1 (zh) 响应控制方法及移动终端
WO2019041283A1 (zh) 信息推荐方法及相关设备
WO2018219117A1 (zh) 组件显示方法及相关产品
WO2018219118A1 (zh) 界面显示方法及相关产品
WO2019128553A1 (zh) 应用程序处理方法、电子设备、计算机可读存储介质
US10455411B2 (en) Communication method and mobile terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18866277

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18866277

Country of ref document: EP

Kind code of ref document: A1