Method for regulating device performance, and related apparatus

By dynamically adjusting the system parameter configuration of electronic devices to match the load of key applications, performance and power consumption are optimized, solving the problem of unsmooth operation of key applications and improving the user experience.

WO2026067573A1PCT designated stage Publication Date: 2026-04-02HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-09-25
Publication Date
2026-04-02

AI Technical Summary

Technical Problem

Users may experience sluggish performance when using the main applications on their electronic devices, which can negatively impact the user experience.

Method used

By acquiring the load of the focused application, the system parameter configuration of electronic devices can be dynamically adjusted to match the optimal system parameter configuration for the current load, thereby improving performance and reducing power consumption.

Benefits of technology

It improves the smoothness of key applications, enhances the user experience, and avoids unnecessary power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025124168_02042026_PF_FP_ABST
    Figure CN2025124168_02042026_PF_FP_ABST
Patent Text Reader

Abstract

The present application discloses a method for regulating device performance, and a related apparatus. In the present method, an electronic device may run a focus application, and acquire an application load of the focus application. Then, the electronic device may use different system parameter configurations on the basis of the acquired application load. Thus, the electronic device can adjust the performance of the electronic device on the basis of the application load, so that a user can feel that the focus application runs relatively smoothly, and the user experience is good.
Need to check novelty before this filing date? Find Prior Art

Description

Method for adjusting performance of device and related apparatus

[0001] The present application claims priority to the Chinese patent application No. 202411369459.9, filed on September 27, 2024, and titled "Method for adjusting performance of device and related apparatus", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0002] The present application relates to the technical field of terminal, and in particular, to a method for adjusting performance of device and related apparatus. BACKGROUND

[0003] After receiving a user operation, the electronic device can display a user interface of a focus application in a screen. However, the user may feel that the focus application does not run smoothly when using the focus application. In this way, the user experience is affected. How to improve the performance of the electronic device is a problem that needs to be solved in the field. SUMMARY

[0004] The present application provides a method for adjusting performance of device and related apparatus, which can use different system parameter configurations according to the obtained application load. In this way, the electronic device can adjust the performance of the electronic device based on the application load, so that the user can feel that the focus application runs more smoothly, and the user experience is good.

[0005] In a first aspect, the present application provides a method for adjusting performance of device, which is applied to an electronic device, and the method comprises: running a first application by using a first system parameter configuration, the first application being a focus application of the electronic device; obtaining a first load of the first application; and running the first application by using a second system parameter configuration in a case where the first load is greater than a first threshold, the performance of the electronic device when using the second system parameter configuration being better than the performance of the electronic device when using the first system parameter configuration.

[0006] In some implementations, the electronic device can obtain and store optimal system parameter configurations corresponding to different application loads in the first application. Specifically, reference can be made to the content shown in Table 3 below. The above-mentioned first load being greater than the first threshold indicates that the first system parameter configuration is not the optimal system parameter configuration corresponding to the current application load of the first application, and the second system parameter configuration is the optimal system parameter configuration corresponding to the current application threshold of the first application.

[0007] By implementing the above-mentioned method, the electronic device can obtain the application load of the focus application. The electronic device can also replace the system parameter configuration currently used by the electronic device in a case where the application load of the focus application exceeds a preset threshold, thereby improving the performance of the electronic device.

[0008] In some implementations, in a case that the first load is less than a second threshold, the method further includes running the first application using a third system parameter configuration, the performance of the electronic device using the third system parameter configuration is worse than the performance of the electronic device using the first system parameter configuration; and in a case that the first load is less than the first threshold and greater than the second threshold, the method further includes continuing to run the first application using the first system parameter configuration.

[0009] In some implementations, the first load being less than the second threshold indicates that the first system parameter is not the optimal system parameter configuration corresponding to the application load of the first application, and if the first system parameter configuration is still used, power consumption can be wasted, and the third system parameter configuration is the optimal system parameter configuration corresponding to the application threshold of the first application. The first load being less than the first threshold and greater than the second threshold indicates that the first system parameter is still the optimal system parameter configuration corresponding to the application load of the first application.

[0010] In this way, the electronic device can dynamically adjust the system parameter configuration used according to the application load, which can improve performance and avoid wasting power consumption.

[0011] In some implementations, the electronic device stores a correspondence between a first load range and the first system parameter configuration, a maximum value of the first load range is the first threshold, and a minimum value of the first load range is the second threshold. When the load of the first application is in the first load range, the first system parameter configuration is a system parameter configuration whose performance exceeds a third threshold and whose power consumption is the lowest among the multiple system parameter configurations used by the electronic device to run the first application.

[0012] Further, the first load range also corresponds to a load gear. Specifically, the correspondence can be as shown in Table 3 below. The performance of the electronic device being relatively high and the power consumption being relatively low can be understood as follows: in a case that the performance exceeds a performance threshold set by a developer, the power consumption is the lowest. The performance threshold can be obtained based on the AC-DC performance difference of the electronic device running the application. For example, the performance threshold can be obtained in a case that the AC-DC performance difference is less than 10%. For example, the AC-DC performance difference of the electronic device running the application can be obtained based on the DC completion time delay and the AC completion time delay of the electronic device running the application.

[0013] In this way, the electronic device can obtain the optimal system parameter configuration corresponding to the application load of the first application that can occur. When the application load of the first application is in a certain range, the electronic device can determine and use the optimal system parameter configuration corresponding thereto, which can improve performance and reduce power consumption.

[0014] With reference to the first aspect, in some implementations, before running the first application with the first system parameter configuration, the method further includes: running the first application with a fourth system parameter configuration; and receiving a first operation acting on the first application, the first operation being used to trigger running the first application with the first system parameter configuration, the performance of the electronic device when adopting the first system parameter configuration being better than the performance when adopting the fourth system parameter configuration.

[0015] In some implementations, the electronic device can run the first application with the optimal system parameter configuration corresponding to the lowest load level of the first application, regardless of whether the first operation triggers the corresponding function.

[0016] In this way, each operation of the user on the first application triggers the electronic device to improve a part of the performance, so that the user can perceive that the currently used application runs smoothly, and the user experience is improved. That is, in this way, the speed of adjusting the performance can be improved, and the electronic device does not need to wait for the application load to be determined before starting to improve the performance of the electronic device.

[0017] With reference to the first aspect, in some implementations, the obtaining the first load of the first application specifically includes: obtaining the load of the first application periodically with a first time length as a period; and the method further includes: when the obtained load of the first application is less than a fourth threshold, stopping obtaining the load of the first application.

[0018] In some implementations, the electronic device can periodically obtain the application load of the focus application. The periodicity can refer to obtaining the application load once every interval of a time length (for example, 500 ms). Specifically, in the case where the first operation is an operation of triggering the execution of a function related to the user operation, the electronic device can end the periodic obtaining of the application load when the response to the user operation is completed, or end the periodic obtaining of the application load when the obtained load is less than the lower threshold of the lowest load level of the first application. In the case where the first operation does not trigger the execution of any function of the first application, the electronic device can end the periodic obtaining of the first load when the obtained application load is less than the lower threshold of the lowest load level of the first application. In this way, it can be determined when the electronic device can exit the method flow, and the power consumption is saved.

[0019] With reference to the first aspect, in some implementations, the system parameter configuration in the electronic device is used to adjust a system parameter in the electronic device, and the system parameter includes one or more of the following: an energy efficiency parameter, a turbo power consumption parameter, a processor performance improvement strategy parameter, a processor heterogeneity strategy parameter, and a processor wake-up strategy parameter.

[0020] In the embodiments of the present application, the system parameters can further include more performance-related parameters, which are not limited. The system parameter configuration refers to the values or instructions set for various parameters included in the system parameters. The electronic device can adjust the system parameters in the electronic device based on the system parameter configuration.

[0021] With reference to the first aspect, in some implementations, after running the first application using the second system parameter configuration, the method further includes: switching the first application to run in the background; and running the first application using the fourth system parameter configuration.

[0022] In some implementations, when the first application is switched to run in the background, i.e., the first application is no longer the focus application, the user's focus is no longer on the first application, and the user does not overly care whether the first application runs smoothly. Therefore, the electronic device can run the first application using the fourth system parameter configuration to reduce power consumption.

[0023] With reference to the first aspect, in some implementations, after stopping obtaining the load of the first application, the method further includes: running the first application using the fourth system parameter configuration.

[0024] In some implementations, after the electronic device stops obtaining the application load of the first application, the method flow can end. The electronic device can run the first application using the fourth system parameter configuration used before the method flow is executed. In this way, the normal running of the first application can be ensured.

[0025] With reference to the first aspect, in some implementations, after running the first application using the second system parameter configuration, the method further includes: switching the first application to run in the background; and running the first application using the first system parameter configuration.

[0026] In this way, the electronic device can run the first application using the optimal system parameter configuration corresponding to the lowest load gear, so that the electronic device can respond to user operations more quickly.

[0027] With reference to the first aspect, in some implementations, after running the first application using the second system parameter configuration, the method further includes: turning on the power supply; and running the first application using a fifth system parameter configuration, the fifth system parameter configuration being the system parameter configuration with the highest performance when the electronic device uses multiple system parameter configurations.

[0028] In some implementations, in the AC state, the electronic device can directly use an external power supply for power supply, without considering the endurance of the battery. In this way, the electronic device can provide the best performance.

[0029] With reference to the first aspect, in some implementations, before the first load of the first application is acquired, the method further includes: determining that the electronic device is not powered on. In this way, the method provided by the embodiments of the present application can be applied to the electronic device in the DC state.

[0030] In a second aspect, the present application provides an electronic device, which includes a memory, a processor, and computer instructions stored in the memory, and the processor executes the computer program to implement the method of the first aspect or any of the implementations of the first aspect.

[0031] In a third aspect, the embodiments of the present application provide a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the method of the first aspect or any of the implementations of the first aspect.

[0032] In a fourth aspect, the embodiments of the present application provide a computer program product, which includes computer instructions, and the computer instructions are executed by a processor to implement the method of the first aspect or any of the implementations of the first aspect.

[0033] The beneficial effects of the second aspect to the fourth aspect can refer to the beneficial effects of the first aspect. BRIEF DESCRIPTION OF DRAWINGS

[0034] FIG. 1 is an application scenario related to the embodiments of the present application;

[0035] FIG. 2 is a flowchart of a method for adjusting device performance provided by the embodiments of the present application;

[0036] FIG. 3 is an EPP change line graph provided by the embodiments of the present application;

[0037] FIG. 4 is a DC completion delay bar graph provided by the embodiments of the present application;

[0038] FIG. 5 is a structural diagram of an electronic device provided by the embodiments of the present application;

[0039] FIG. 6 is a software structure block diagram of an electronic device provided by the embodiments of the present application. DETAILED DESCRIPTION

[0040] The technical solutions in the embodiments of the present application will be described clearly and exhaustively below with reference to the drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " represents the meaning of or, for example, A / B can represent A or B; the "and / or" in the text only describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent the three cases of A alone, A and B together, and B alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0041] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first" and "second" can explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" is two or more than two.

[0042] Some terms related to the present application will be introduced below.

[0043] Alternating Current (AC) refers to a current whose magnitude and direction change periodically with time. AC is generally used in power transmission and household electricity based on its characteristics of easy voltage transformation and low transmission loss. For example, the AC provided by the power supply is used by the electronic device when the power is turned on, that is, the electronic device is in an AC state at this time.

[0044] Direct Current (DC) refers to a current whose direction does not change with time. DC is generally used in electronic device power supply and charging equipment based on its characteristics of stability and easy control. For example, the DC provided by the battery is used by the electronic device when the power is not turned on, that is, the electronic device is in a DC state at this time.

[0045] Performance refers to the ability of an electronic device to process tasks and run application programs, which is generally determined by multiple core hardware components in the electronic device. Among them, the core hardware can include but is not limited to: central processing unit (CPU), graphics card (GPU), memory (RAM), storage device (hard disk / solid state disk), and motherboard, etc.

[0046] High-performance electronic devices can process computing tasks and run complex applications faster. Low-performance electronic devices can process slowly or even fail to run normally when processing high-load applications. For example, performance can be reflected in computing speed, multitasking ability, graphics processing ability, data storage, reading speed, and the like. For example, performance can be reflected by the time delay in completing a task. The shorter the time delay, the higher the performance; the longer the time delay, the lower the performance. For another example, performance can be reflected by the refresh frame rate of the screen. The higher the frame rate, the higher the performance; the lower the frame rate, the lower the performance. The performance of an electronic device affects the smoothness and experience of a user when using the electronic device.

[0047] System load refers to the workload that a system (e.g., a server or an operating system) bears in a period of time. For example, system load can be measured by CPU usage, GPU usage, disk I / O, network traffic, and the like. System load is used to reflect the overall workload of a system. For example, high CPU usage can mean that the system is processing a large number of computing tasks. High system load can cause the performance of an electronic device to decrease, the response to slow down, or even the system to crash.

[0048] Application load refers to the workload that an application bears in a period of time. For example, application load can also be measured by CPU usage, GPU usage, disk I / O, network traffic, and the like. For example, high CPU usage indicates high application load. In the case where a user uses an application, high application load can cause the application to respond slowly or even fail to respond. In addition, in the case where the system load is not high, the application load of a certain application can also be high.

[0049] A focus application refers to an application that has newly received a user operation, and includes a focus process. A focus process has a focus window. At any time, there can be only one focus window in the system. A focus window is a window that is currently being interacted with by a user, and can obtain the latest user operation. That is, a focus application, a focus process, and a focus window correspond one-to-one.

[0050] In some implementations, in the AC state, the electronic device can directly use an external power supply for power supply without considering the endurance of the battery, at this time, the electronic device can provide the best or highest performance. In the DC state, the electronic device uses a built-in battery for power supply, and needs to consider the endurance of the battery, at this time, the electronic device needs to sacrifice some performance to prolong the use time of the battery. Therefore, the performance of the electronic device in the DC state is poorer than that of the electronic device in the AC state. In this way, the user can obviously perceive that the electronic device runs not smooth enough in the DC state, and even appears to be stuck, which affects the user experience.

[0051] Two ways of adjusting the performance of the electronic device are introduced as follows:

[0052] Way one: the electronic device can automatically adjust the performance of the electronic device through a dynamic tuning technology (DDT). The DDT can optimize the performance to a certain extent and prolong the battery endurance time. Specifically, the DDT adjusts the performance by judging the system load of the electronic device. For example, the performance of the electronic device is increased when the system load is high. However, after using the DDT, the performance of the electronic device in the DC state is still poorer than that of the electronic device in the AC state.

[0053] The performance difference between the electronic device in the DC state and the electronic device in the AC state when using way one is exemplarily illustrated below in combination with Table 1.

[0054] Table 1

[0055] Referring to Table 1, Table 1 exemplarily shows the time delay of the electronic device in completing a plurality of operation items in an A application in the AC state and in the DC state, and the performance difference (referred to as AC and DC performance difference) between the electronic device in the AC state and the electronic device in the DC state when using way one. Among them, the time delay of the electronic device in completing a certain function in the AC state can be referred to as AC completion time delay, and the time delay of the electronic device in completing a certain function in the DC state can be referred to as DC completion time delay. The AC and DC performance difference reflects the degree of weakness of the performance of the electronic device in the DC state compared with the performance of the electronic device in the AC state. Exemplarily, the AC and DC performance difference is equal to: the value after the difference between the DC completion time delay and the AC completion time delay is divided by the AC completion time delay. That is, the performance of the electronic device in the AC state and the performance of the electronic device in the DC state are related to the type, model, currently running application, and executed function of the electronic device.

[0056] In some implementations, the A application is one of the applications installed in the electronic device, for example, the A application can be an EXCEL application. The operation items can indicate functions that the A application can implement. For example, the A application can implement the following functions: insertion operation, undo insertion row and column, delete row and column, delete duplicate values, Vlookup formula calculation, filtering, sorting, copy and paste, pivot table, merge and center, save as / save.

[0057] As can be seen from Table 1, when the electronic device implements the functions corresponding to the above-mentioned operation items in the AC state and in the DC state respectively, the minimum AC-DC performance difference is 31.05%, and the maximum AC-DC performance difference is 73.76%. This shows that even if the electronic device uses the DDT, the performance of the electronic device in the DC state is still quite different from the performance of the electronic device in the AC state.

[0058] Method two: The electronic device can adjust the performance of the electronic device according to different user scenarios and system loads. Specifically, the electronic device presets the performance size that needs to be adjusted corresponding to different system loads, and the performance size that needs to be adjusted is different for different user scenarios. For example, high system load corresponds to high performance. Then, the electronic device can adjust the performance of the electronic device based on the size of the current system load when detecting a certain user scenario.

[0059] In this adjustment method, the electronic device also needs to consider the endurance of the battery, and the adjusted parameters are also relatively single. The performance of the electronic device in the DC state is still relatively poor compared with the performance of the electronic device in the AC state.

[0060] The following will be described in conjunction with Table 2 to illustrate the performance difference between the electronic device in the DC state and the electronic device in the AC state when using method two.

[0061] Table 2

[0062] Referring to Table 2, Table 2 exemplarily shows the AC completion time, DC completion time and AC-DC performance difference of the electronic device for completing the operation items corresponding to the A application when using method two.

[0063] As can be seen from Table 2, when the electronic device implements the functions corresponding to the above-mentioned operation items in the AC state and in the DC state respectively, the minimum AC-DC performance difference is 34.91%, and the maximum AC-DC performance difference is 78.87%. This shows that even if the electronic device uses method two to adjust the performance, the performance of the electronic device in the DC state is still quite different from the performance of the electronic device in the AC state.

[0064] It is worth noting that there can be slight differences between the multiple AC completion times corresponding to the same operation item.

[0065] In the embodiments of the present application, the data in the above Table 1 and Table 2 are only exemplary, and the completion time delay of the same function implemented by different types of electronic devices can be different, and the completion time delay of the same function implemented by the same type of electronic devices of different models can also be different, which is not limited.

[0066] The following introduces an application scenario related to the embodiments of the present application.

[0067] FIG. 1 exemplarily shows a scenario in which the electronic device is running application A.

[0068] Referring to FIG. 1, the user interface 200 is a user interface in which the electronic device is running application A and viewing the task manager. The focus application currently running by the electronic device is application A, and the cursor acts on application A. The user interface 200 displays the CPU usage of the current system and various applications. Exemplarily, the CPU usage of the current system is 20%, the CPU usage of application A is 15%, the CPU usage of application B is 1%, and the CPU usage of application C is 1%.

[0069] This indicates that the system load of the current electronic device is not high, and the application load of the focus application of the electronic device is relatively high. Even if the electronic device adjusts the performance in the above manner one or manner two, since the above manner one and manner two are based on the system load to adjust the performance, and the system load of the electronic device is not high, the electronic device will not have obvious performance improvement. However, the application load of the current focus application is high, and if the performance of the electronic device is not improved, the user will still obviously perceive that the focus application runs not smoothly enough, and the user experience is poor. That is, the electronic device adjusts the device performance in the above manner one and manner two, which will also affect the user experience of the user.

[0070] In order to reduce the above problem, the following introduces a method for adjusting the device performance provided by the embodiments of the present application. In the method, the electronic device can obtain the application load of the focus application, and adjust the performance of the electronic device based on the application load. In this way, even in the case of low system load, the user can perceive that the focus application runs relatively smoothly, and the user experience is good.

[0071] FIG. 2 exemplarily shows a flowchart of a method for adjusting the device performance provided by the embodiments of the present application. The method comprises:

[0072] Before performing the following procedure, the electronic device can pre-acquire and store optimal system parameter configurations corresponding to different application loads of an application. When the application load of the application of the electronic device is a certain value, the electronic device runs the application using the optimal system parameter configuration corresponding to the application load. This is because, compared with the electronic device running the application using other system parameter configurations, the electronic device running the application using the optimal system parameter configuration corresponding to the application load has higher performance and lower power consumption. The higher performance and lower power consumption of the electronic device can be understood as: in the case of performance exceeding the performance threshold set by the developer, the power consumption is the minimum. The performance threshold can be obtained based on the AC-DC performance difference when the electronic device runs the application. For example, the performance threshold can be obtained in the case that the AC-DC performance difference is less than 10%. For example, the AC-DC performance difference when the electronic device runs the application can be obtained based on the DC completion time delay and the AC completion time delay when the electronic device runs the application. The performance threshold can be referred to as a third threshold.

[0073] In the embodiments of the present application, the system parameters can include: energy efficiency ratio, turbo power consumption, processor performance improvement strategy, processor heterogeneity strategy, and processor wake-up strategy. In the embodiments of the present application, the system parameters can also include more performance-related parameters, which are not limited. The system parameter configuration refers to the numerical value or instruction set for the various parameters included in the above system parameters. The electronic device can adjust the system parameters in the electronic device based on the system parameter configuration.

[0074] The energy efficiency ratio, also known as energy proportional performance (EPP), can be used to reflect the computing power that the electronic device can provide under the condition of consuming the same amount of power. The larger the EPP, the more the electronic device tends to low power consumption; the smaller the EPP, the more the electronic device tends to high performance. The adjustment range of the EPP is different according to the type of processor used by the electronic device. For example, the adjustment range of the EPP can be 0 to 255, and can also be 0 to 100%.

[0075] Turbo power consumption refers to the power consumption of increasing the processing speed by automatically increasing the working frequency of the CPU when the electronic device needs higher performance during operation. The parameters of turbo power consumption can include: basic power consumption, maximum turbo power consumption, and continuous turbo power consumption, and the like.

[0076] The processor performance boosting policy (PERFBOOSTPOL) is used to improve the performance of the electronic device by adjusting the power management settings of the processor. For example, the PERFBOOSTPOL can include a processor performance core placement policy, a processor performance boosting mode, and a processor idle threshold. The parameters of the processor performance core placement policy include a minimum core number, a maximum core number, and a core hibernation parameter. The parameters of the processor performance boosting mode include a frequency bias parameter and a responsiveness optimization parameter. The parameters of the processor idle threshold include a processor busy level and a performance boosting time. The above-mentioned parameters of the PERFBOOSTPOL are only exemplary, and more or fewer parameters can also be included.

[0077] The processor heterogeneity policy (HeteroPolicy) is a kind of CPU core parking policy, which can balance the performance and power consumption of the electronic device as much as possible. The core parking policy can be used to determine whether to turn off some CPU cores to reduce the power consumption of the electronic device. The HeteroPolicy is a scheduling policy for processors with heterogeneous architecture (such as processors including performance cores and energy-efficient cores), which is used to manage and optimize the use of different types of CPU cores. The electronic device can configure the HeteroPolicy to set how to use the performance cores and energy-efficient cores.

[0078] The processor wake-up policy (ModuleUnparkPolicy) is a kind of L2 cache policy of the CPU, which can improve the speed of the CPU accessing the memory. The L2 cache policy can be used to optimize the cache utilization and improve the performance by using cache replacement algorithms, prefetching strategies, etc. The parameters of the processor wake-up policy can include a power option, a device idle policy, a leave mode policy, and a wake-up timer.

[0079] In the embodiments of the present application, the system parameters can further include more parameters of the core parking policy and the cache policy, which are not limited.

[0080] The following describes how the electronic device obtains the optimal system parameter configuration corresponding to different application loads.

[0081] In the development stage of the electronic device, the electronic device can run an application and implement various functions provided by the application. The electronic device obtains the application load during the running of the application, and determines the load values that can occur during the running of the application. Then, the possible loads are divided into a plurality of load ranges, and the application load generated by the electronic device when running the application is the middle value of each load range. Next, the electronic device adjusts the system parameters to determine that the system parameter configuration used when the performance of the electronic device exceeds the performance threshold and the power consumption is the minimum is the optimal system parameter configuration corresponding to each load range.

[0082] For example, the electronic device can run the application A and implement various functions that the application A can provide. The electronic device obtains the application load of the application A during the running process of the application A, and determines that the load value that can occur during the running process of the application A is 10-50. For example, the load value is measured by CPU usage. Then, the load value of 10-50 is divided into 4 load ranges: 10-20, 20-30, 30-40, and 40-50. The middle values of the above 4 load ranges are 15, 25, 35, and 45, respectively. Next, the electronic device runs the application A to make the application load of the application A be 15, 25, 35, and 45, respectively. The electronic device adjusts the system parameters, and determines that when the application load is 15, the optimal system parameter configuration is parameter configuration 1; when the application load is 25, the optimal system parameter configuration is parameter configuration 2; when the application load is 35, the optimal system parameter configuration is parameter configuration 3; and when the application load is 45, the optimal system parameter configuration is parameter configuration 4. Finally, the electronic device can determine that the optimal system parameter configuration corresponding to the load range of 10-20 is parameter configuration 1, the optimal system parameter configuration corresponding to the load range of 20-30 is parameter configuration 2, the optimal system parameter configuration corresponding to the load range of 30-40 is parameter configuration 3, and the optimal system parameter configuration corresponding to the load range of 40-50 is parameter configuration 4. Further, the electronic device can also set each load range that can occur in the application A as a corresponding load gear. That is, the load gear of the application A, the load range that can occur in the application A, and the optimal system parameter configuration have a corresponding relationship.

[0083] Table 3

[0084] Referring to Table 3, Table 3 exemplarily shows that the load gear of the application A, the load range of the application A, and the optimal system parameter configuration have a corresponding relationship. The upper threshold value can be the maximum value of a certain load range, and the lower threshold value can be the minimum value of a certain load range. For example, the load range and the optimal system parameter configuration corresponding to gear 1 are 10-20 and parameter set 1, respectively. The load range and the optimal system parameter configuration corresponding to gear 2 are 20-30 and parameter configuration 2, respectively. The load range and the optimal system parameter configuration corresponding to gear 3 are 30-40 and parameter set 3, respectively. The load range and the optimal system parameter configuration corresponding to gear 4 are 40-50 and parameter configuration 4, respectively.

[0085] In some implementations, the electronic device can store a correspondence between the load range of the application A and the optimal system parameter configuration, and further, the electronic device can also store a correspondence between the load level of the application A, the load range that the application A can have, and the optimal system parameter configuration. Wherein, the higher the load level, the better the performance of the electronic device using the optimal system parameter configuration corresponding to the level.

[0086] In the embodiments of the present application, the data in the above table 1 is only exemplary, and the application load is not limited to being measured by CPU usage, but can also be measured by other data. The load level of the application A is not limited to the above several ranges, and the load range corresponding to each load level is also not limited to the above several load ranges. The above correspondence can be determined according to actual conditions, and is not limited.

[0087] In the embodiments of the present application, the specific steps in the above-mentioned manner of obtaining the optimal system parameter configuration corresponding to different application loads are only exemplary, and the specific steps in the manner can also include other steps, for example, the electronic device determines the optimal system parameter configuration corresponding to each load value. For another example, the electronic device can first set a plurality of intermediate values, and then determine a plurality of load ranges based on the plurality of intermediate values, one intermediate value corresponding to one load range. Specifically, 90% of an intermediate value is determined as the minimum value of the corresponding load range, and 110% of the intermediate value is determined as the maximum value of the corresponding load range. Wherein, the above-mentioned 90% and 110% are not absolute values for determining the load range, and other values can also be used to determine the load range, as long as the intermediate value belongs to the load range. In the embodiments of the present application, this is not limited.

[0088] In the embodiments of the present application, the above-mentioned manner of obtaining the optimal system parameter configuration corresponding to different application loads is only exemplary, and the electronic device can also obtain the optimal system parameter configuration corresponding to different application loads through other more ways, for example, the electronic device obtains the optimal system parameter configuration corresponding to different application loads that has been set from the server, and this is not limited.

[0089] In the embodiments of the present application, the factors affecting the optimal system parameter configuration corresponding to the application load obtained by the electronic device include one or more of the following: the type and version of the application to which the above-mentioned application load belongs, the type of the electronic device, the model of the electronic device, the type of the CPU, the version type of the system in the electronic device, and the like.

[0090] In some implementations, the electronic device needs to provide different levels of performance due to different functions implemented by different types of applications; the electronic device needs to provide approximately the same level of performance due to approximately the same functions implemented by the same type of applications. Exemplarily, the application types can include, but are not limited to, video, social, game, office, news, and the like. Therefore, the load ranges of different types of applications acquired by the electronic device can be different, and the optimal system parameter configurations corresponding to the load ranges of different types of applications can also be different. Further, the load ranges corresponding to the load gears of different types of applications can also be different. The load ranges of the same type of applications acquired by the electronic device can be the same or similar, and the optimal system parameter configurations corresponding to the load ranges of the same type of applications can also be the same or similar. Further, the load ranges corresponding to the load gears of different types of applications can also be the same or similar.

[0091] In a possible implementation, in order to more accurately acquire the optimal system parameter configuration corresponding to the application load, the electronic device can store different load ranges of different applications. The optimal system parameter configurations corresponding to the load ranges of different applications can also be different. Further, the load ranges corresponding to the load gears of different applications can also be different.

[0092] In the embodiments of the present application, the electronic device can acquire the correspondence between the load range and the optimal system parameter configuration of each application type, and can also acquire the correspondence between the load range and the optimal system parameter configuration of each application, without limitation. Moreover, the correspondence shown in Table 1 acquired by the electronic device can represent the optimal system parameter configuration corresponding to the application load of all applications belonging to a certain application type (for example, all applications belonging to the application type of application A), or can represent the optimal system parameter configuration corresponding to the application load of a single application, without limitation.

[0093] In some implementations, the load ranges of the same application acquired by different types of electronic devices can be different, and the optimal system parameter configurations corresponding to the load ranges of the same application can also be different. That is, further, the correspondence shown in Table 1 acquired by the electronic device can also represent the optimal system parameter corresponding to the application load of all applications belonging to a certain application type or a single application in a certain type of electronic device.

[0094] After the electronic device acquires and stores the optimal system parameter configurations corresponding to different application loads, the electronic device can perform S201.

[0095] S201, the electronic device is not powered on.

[0096] Since the electronic device does not need to consider the battery endurance when it is connected to the power supply, i.e., in the AC state, the electronic device can directly adopt the highest performance to run. The method for adjusting the performance of the electronic device provided in the present application is applied when the electronic device is in the DC state. Therefore, the electronic device needs to detect the current power supply state and determine that the electronic device is not connected to the power supply, i.e., in the DC state.

[0097] In a possible implementation, S201 is an optional execution step.

[0098] S202, the electronic device runs the application A by using the system parameter configuration a.

[0099] In some implementations, as long as the electronic device is in the running state, the electronic device needs to set the system parameter with a corresponding system parameter configuration. After the electronic device starts the application A, before receiving the user operation for the application A, the application A is run by using the default system parameter configuration a, or part of the system parameters is set with the default parameter configuration, and the other part of the parameters is set with the parameter configuration obtained by the electronic device based on the current system load. In the embodiment of the present application, the system parameter configuration a is not limited.

[0100] S203, the electronic device receives the user operation acting on the application A, and the application A is the focus application.

[0101] In some implementations, the user operation makes the current application A the focus application. Exemplarily, the user operation includes one or more of the following: a click operation, a double-click operation, a sliding operation, an operation of pressing a key, a voice instruction, a gesture instruction, and the like. When the electronic device includes a mouse and a keyboard, the user operation can include the following: an operation of clicking the left mouse button, an operation of double-clicking the left mouse button, an operation of clicking the right mouse button, an operation of scrolling the mouse, an operation of dragging the mouse, and an operation of pressing a key on the keyboard.

[0102] The user operation can include an operation that does not trigger the execution of any function of the application A, or an operation that triggers the execution of a function related to the user operation. For example, the electronic device receives the user operation of clicking the left mouse button on the blank of the user interface of the application A, which does not trigger the electronic device to execute any function provided by the application A. For another example, the electronic device receives the user operation of clicking the left mouse button on the save control of the user interface of the application A, which triggers the electronic device to execute the function of saving the current document related to the user operation. In the embodiment of the present application, the user operation is only exemplarily described, and the electronic device can receive more user operations, which are not limited.

[0103] S204, the electronic device runs the application A by using the system parameter configuration b, wherein the performance of the electronic device by using the system parameter b is better than the performance of the electronic device by using the system parameter a.

[0104] In some implementations, after performing S203, the electronic device runs the application A by using the optimal system parameter configuration corresponding to the lowest load level (e.g., level 1) of the application A, i.e., the parameter configuration b, regardless of whether the above-mentioned user operation triggers the corresponding function. The performance of the electronic device by using the system parameter b is better than the performance of the electronic device by using the system parameter a. In this way, the user's operation on the application A triggers the electronic device to improve a part of the performance every time, so that the user can perceive that the currently used application runs smoothly, and the user experience is improved. That is, the electronic device can improve the speed of adjusting the performance when performing S204, without waiting for the electronic device to determine the application load before starting to improve the performance.

[0105] In some implementations, the execution sequence of S201 above can also be before the electronic device changes the system parameter used to run the application A. For example, after performing S203, before the electronic device performs S204, the electronic device determines that the current power state is not powered on.

[0106] S205, the electronic device obtains the load X of the application A, and the system parameter configuration used by the electronic device is the system parameter configuration e.

[0107] In some implementations, the electronic device can perform S205 after performing S204. Specifically, the electronic device can periodically obtain the application load of the application A, i.e., the load X. The above-mentioned periodicity can refer to obtaining the load X once every interval (e.g., 500 ms).

[0108] In some implementations, the electronic device can end the periodic acquisition of the load X. Specifically, in the case that the first operation is an operation of triggering the execution of the function related to the user operation, the electronic device can end the periodic acquisition of the load X when responding to the user operation is completed, or end the periodic acquisition of the load X when the obtained load X is less than the lower threshold of the lowest load level of the application A. In the case that the first operation does not trigger the execution of any function of the application A, the electronic device can end the periodic acquisition of the load X when the obtained load X is less than the lower threshold of the lowest load level of the application A.

[0109] In some implementations, the electronic device can determine the system parameter configuration used subsequently after determining the upper threshold and the lower threshold corresponding to the load level of the application A after obtaining the load X of the application A each time.

[0110] In some implementations, the electronic device can perform S206, S207, and S208 after the electronic device first acquires the load X, i.e., the electronic device first acquires the application load of the application A in the current method flow. It is worth noting that the system parameter configuration e is the system parameter configuration used by the electronic device when the electronic device acquires the load X of the application A each time. In this case, the system parameter configuration e is the system parameter configuration b used by the electronic device when the electronic device first acquires the load X of the application A.

[0111] S206, if the load X is greater than the threshold value m, the electronic device runs the application A using the system parameter configuration c, wherein the performance of the electronic device using the system parameter configuration c is better than the performance of the electronic device using the system parameter configuration e.

[0112] In some implementations, the threshold value m can refer to the upper threshold value of gear 1. The load X greater than the threshold value m indicates that the system parameter configuration e currently used by the electronic device is not the optimal system parameter configuration corresponding to the application load of the current application A. Therefore, the electronic device needs to run the application A using the system parameter configuration c. For example, the system parameter configuration c can be the optimal system parameter configuration corresponding to a higher gear, such as gear 2.

[0113] Further, if the load X belongs to a higher load gear, such as the load range corresponding to gear 3, the system parameter configuration c can also be the optimal system parameter configuration corresponding to a higher load gear, such as gear 3. That is, the system parameter configuration used by the electronic device can be adjusted in multiple gears in addition to being adjusted in a single gear according to the optimal system parameter configuration corresponding to the load gear.

[0114] S207, if the load X is less than the threshold value n, the electronic device runs the application A using the system parameter configuration d, wherein the performance of the electronic device using the system parameter configuration d is worse than the performance of the electronic device using the system parameter configuration e.

[0115] In some implementations, the threshold value n can refer to the lower threshold value of gear 1. The load X less than the threshold value n indicates that the system parameter configuration e currently used by the electronic device is not the optimal system parameter configuration corresponding to the application load of the current application A. Since the current gear 1 is already the lowest load gear of the application A. Therefore, the electronic device can exit the method flow for adjusting the performance of the device provided in the present application, that is, the electronic device does not need to periodically acquire the load X of the application A in the future. The electronic device can run the application A using the system parameter configuration d. At this time, the system parameter configuration d is consistent with the system parameter configuration a.

[0116] S208, if the load X is less than or equal to the threshold value m and greater than or equal to the threshold value n, the electronic device still runs the application A using the system parameter configuration e.

[0117] In some implementations, the threshold value m can refer to an upper threshold value of the gear 1, and the threshold value n can refer to a lower threshold value of the gear 1. The load X being less than or equal to the threshold value m and greater than or equal to the threshold value n indicates that the system parameter configuration e currently used by the electronic device is the optimal system parameter configuration corresponding to the application load of the current application A. Therefore, the electronic device can still run the application A using the system parameter configuration e.

[0118] In some implementations, the electronic device can also perform S206, S207, and S208 after the load X is acquired for the first time (e.g., the load X of the application A is acquired for the mth time, m is an integer greater than 1) in the current method flow, i.e., after the application load of the application A is acquired for the first time in the current method flow. In this case, the system parameter e is the system parameter configuration used by the electronic device when the load X of the application A is acquired for the mth time.

[0119] Specifically, after the load X of the application A is acquired for the mth time by the electronic device, in S206, the threshold value m can refer to an upper threshold value of the load gear corresponding to the system parameter configuration used by the electronic device when the load X is acquired for the mth time. The load X being greater than the threshold value m indicates that the system parameter configuration e currently used by the electronic device is not the optimal system parameter configuration corresponding to the application load of the current application A. If the system parameter configuration e is still used, the performance of the electronic device is low. Therefore, the electronic device needs to run the application A using the system parameter configuration c. For example, the system parameter configuration c can be the optimal system parameter configuration corresponding to a load gear higher than the load gear corresponding to the system parameter configuration e. Further, if the load X belongs to the load range corresponding to a higher load gear, the system parameter configuration c can also be the optimal system parameter configuration corresponding to the higher load gear. For example, the system parameter configuration c can be the optimal system parameter configuration corresponding to a load gear several gears higher than the load gear corresponding to the system parameter configuration e.

[0120] In S207, the threshold value n can refer to a lower threshold value of the load gear corresponding to the system parameter configuration used by the electronic device when the load X is acquired for the mth time. The load X being less than the threshold value n indicates that the system parameter configuration e currently used by the electronic device is not the optimal system parameter configuration corresponding to the application load of the current application A. If the system parameter configuration e is still used, power consumption can be wasted. Therefore, the electronic device needs to run the application A using the system parameter configuration d. For example, the system parameter configuration d can be the optimal system parameter configuration corresponding to a load gear lower than the load gear corresponding to the system parameter configuration e. Further, if the load X belongs to the load range corresponding to a lower load gear, the system parameter configuration c can also be the optimal system parameter configuration corresponding to the lower load gear. For example, the system parameter configuration d can be the optimal system parameter configuration corresponding to a load gear several gears lower than the load gear corresponding to the system parameter configuration e.

[0121] In S208, the load X is less than or equal to the threshold value m and greater than or equal to the threshold value n, which indicates that the system parameter configuration e currently used by the electronic device is the optimal system parameter configuration corresponding to the load of the current application A. Therefore, the electronic device can still run the application A by using the system parameter configuration e.

[0122] In a possible implementation, S204 is optional. After performing S203, the electronic device can directly perform S205. In addition, the system parameter configuration used by the electronic device when the electronic device acquires the load X of the application A for the first time is the system parameter configuration a. Similarly, after performing S205, the electronic device can determine the system parameter configuration used by the electronic device.

[0123] Specifically, after performing S205 for the first time, the electronic device can determine in which load range corresponding to the load gear of the application A the acquired load X is located, so as to determine the system parameter configuration used by the electronic device. For example, after performing S205 for the first time, the electronic device determines that the load X is in the load range corresponding to gear 2. At this time, the electronic device can use the optimal system parameter configuration corresponding to gear 2.

[0124] After performing S205 for the first time, the electronic device can perform S206, S207, and S208. Specifically, refer to the related content described above in the case of performing S204, which will not be repeated here.

[0125] In a possible implementation, in the case where S204 is optional, the electronic device can perform S201 and S205 again after performing S203. That is, the electronic device can determine the power state of the electronic device again after receiving the user operation acting on the application A, and then periodically acquire the load X of the application A.

[0126] In some implementations, the electronic device can end the method flow of adjusting the device performance provided in the embodiments of the present application when it is detected that the exit condition is met. The exit condition includes: the application A is switched to run in the background; the load X is less than the lower threshold of the lowest load gear of the application A; the power is turned on. The application A switched to run in the background indicates that the current focus application is no longer the application A, and the user's attention is no longer on the application A, so the method flow can be ended at this time. The load X being less than the lower threshold of the lowest load gear of the application A indicates that the load of the application A is low, and the electronic device does not need to provide high performance, and at this time, the electronic device can have completed the response to the user operation in S203, so the method flow can be ended at this time. The power being turned on indicates that there is no need to consider the battery endurance problem, and the electronic device can directly use the highest performance to run, so the method flow can be ended at this time.

[0127] The electronic device can determine whether the exit condition is met when performing any of the steps in the method flow shown in FIG. 2. For example, the electronic device can determine that the exit condition is met after performing S203, or after performing S204, or after performing S205.

[0128] For example, the electronic device determines that the first two of the exit conditions are met after receiving the user operation on the application A, and then the electronic device ends the flow. After ending the flow, the electronic device still uses the system parameter configuration a.

[0129] The electronic device can determine that the first two of the exit conditions are met after running the application A using the system parameter configuration b, or after periodically obtaining the load X of the application A, and then the electronic device ends the flow. After ending the flow, the electronic device still uses the system parameter configuration a. In the case that the application A is switched to the background running, the user's focus is no longer on the application A, and the electronic device can run the application A using the system parameter configuration a. In the case that the load X is less than the lower threshold of the lowest load level of the application A, the application load of the application A is low, and the current performance requirement can be met even if the system parameter configuration a is used. In this way, the power consumption of the electronic device can be reduced to a certain extent.

[0130] Optionally, in the case that the application A is switched to the background running, the electronic device can also use the system parameter configuration b after ending the flow. In this way, the electronic device can run the application A using the optimal system parameter configuration corresponding to the lowest load level, so that the electronic device can respond to the user operation more quickly.

[0131] The electronic device can also determine that the last of the exit conditions is met when performing any of the steps in the method flow, i.e., the power is turned on, and then the electronic device ends the flow. After ending the flow, the electronic device uses the system parameter configuration corresponding to the highest performance.

[0132] It is worth noting that the above-mentioned ending method flow refers to ending the method flow triggered by the current user operation. Each user operation on the application A will have a corresponding method flow for adjusting the device performance. If the electronic device receives the user operation on the application A again after ending the method flow, the above-mentioned method flow will be performed again.

[0133] By implementing the above-mentioned method, the focus application can also run faster in the case that the system load is not high. Moreover, the speed of triggering the performance adjustment is faster, i.e., the user operation can trigger the performance adjustment. Furthermore, the system parameters adjusted by the electronic device include multiple parameters, which can greatly improve the performance of the electronic device in the DC state.

[0134] In some implementations, the system parameter configuration a described above can be referred to as a fourth parameter configuration. The system parameter configuration b described above can be referred to as a first system parameter configuration. The system parameter configuration c described above can be referred to as a second system parameter configuration. The system parameter configuration d described above can be referred to as a third system parameter configuration. The application A described above can be referred to as a first application. The system parameter configuration used when the power is turned on described above can be referred to as a fifth system parameter configuration. The upper limit threshold of the load level corresponding to the system parameter configuration currently applied by the electronic device can be referred to as a first threshold, and the lower limit threshold of the load level corresponding to the system parameter configuration currently applied by the electronic device can be referred to as a second threshold. The period length of the load X of the application A obtained in S204 described above can be referred to as a first time length.

[0135] The method flow provided by the embodiments of the present application will be introduced below in combination with the EPP change line graph.

[0136] FIG. 3 exemplarily shows an EPP change line graph provided by the embodiments of the present application. Exemplarily, FIG. 3 takes the user operation as an example, that is, another save operation applied to the application A.

[0137] In FIG. 3, the abscissa of the line graph is time, and the ordinate is the size of EPP. Here, the range of EPP is 0 to 255. When the electronic device adopts the method for adjusting the device performance provided by the embodiments of the present application, the change trend of EPP in the electronic device corresponds to mode three shown in FIG. 3. When the electronic device adopts the above-mentioned mode one to adjust the performance, the change trend of EPP corresponds to mode one in FIG. 3. When the electronic device adopts the above-mentioned mode two to adjust the performance, the change trend of EPP corresponds to mode two in FIG. 3.

[0138] The three lines shown in FIG. 3 will be introduced in detail below.

[0139] The third mode: Before 0s, the EPP set by the electronic device by default is 153. That is, the size of the EPP in the system parameter configuration a described above can be 153. At 0s, the electronic device detects that the user performs a click operation on the save control, and can adjust the size of the EPP to 127 within 300ms. That is, the size of the EPP in the system parameter configuration b described above can be the size of the EPP corresponding to the first gear of the application A, that is, 127. Then, the electronic device periodically acquires the application load of the application A, and at 500ms after the EPP is adjusted to 127, detects that the application load of the application A exceeds the upper threshold corresponding to the first gear of the application A, and adjusts the size of the EPP to 84. That is, the size of the EPP in the system parameter configuration c described above can be the size of the EPP corresponding to the second gear of the application A, that is, 84. Next, before 30s, the electronic device detects that the application load of the application A acquired is within the load range corresponding to the second gear of the application A. At 30s, the electronic device completes the response to the save operation, at this time, the electronic device acquires that the application load of the application A is less than the lower load corresponding to the lowest load gear of the application A, at this time, the process is exited. Within 30s to 31s, the EPP of the electronic device is 153. That is, after the process is ended, the electronic device still uses the system parameter a. Optionally, after the process is exited, if the electronic device does not receive a user operation within 10s, the electronic device can enter an idle state. At 40s, the electronic device enters the idle state, and the electronic device adjusts the EPP to 204.

[0140] The first mode: Since the system load of the electronic device is not high, the electronic device does not adjust the size of the EPP. And during the process in which the electronic device completes the response to the save operation, the EPP is always 127. The time for the electronic device to complete the save function using the first mode is 49s.

[0141] The second mode: Similarly, the system load of the electronic device is not high, and the electronic device does not adjust the size of the EPP. However, the electronic device enters the idle state at 20s, and adjusts the EPP to 204. The time for the electronic device to complete the save function using the first mode is 52s.

[0142] As can be seen from the above FIG. 3, the time for the electronic device to complete the save function using the third mode is 30s, which is 19s faster than the time for the electronic device to complete the save function using the first mode, and 22s faster than the time for the electronic device to complete the save function using the second mode. And the power consumption consumed by the electronic device to complete the save function using the third mode is slightly higher than the power consumption consumed by the electronic device to complete the save function using the second mode, and is still smaller than the power consumption consumed by the electronic device to complete the save function using the first mode.

[0143] In this way, the user can obviously perceive that the focus application runs smoothly, and responds to the user operation quickly, giving the user a feeling that the electronic device has a very fast processing speed and good performance. Moreover, in this case, the electronic device has a small power consumption.

[0144] In the embodiments of the present application, the above-mentioned FIG. 3 is only illustrative, and the corresponding time points and EPP sizes in each broken line in FIG. 3 are only illustrative, and are not limited.

[0145] The following describes the performance difference between the DC state and the AC state of the electronic device before and after the method for adjusting the performance of the electronic device is used according to the embodiments of the present application, in combination with Table 4 and Table 5.

[0146] Table 4

[0147] Table 5

[0148] Referring to the above-mentioned Table 4 and Table 5, Table 4 illustratively shows the AC completion time delay, the DC completion time delay and the AC-DC performance difference corresponding to the completion of a plurality of operation items in application A of the electronic device before the method for adjusting the performance of the electronic device is used according to the present application. Table 5 illustratively shows the AC completion time delay, the DC completion time delay and the AC-DC performance difference corresponding to the completion of a plurality of operation items in application A of the electronic device after the method for adjusting the performance of the electronic device is used according to the present application.

[0149] As can be seen from Table 4 and Table 5, before the method for adjusting the performance of the electronic device is used according to the present application, the average AC-DC performance difference of application A of the electronic device is 44.45%, and after the method for adjusting the performance of the electronic device is used according to the present application, the average AC-DC performance difference of application A of the electronic device is 6.09%. That is, the method for adjusting the performance of the electronic device according to the embodiments of the present application can greatly reduce the performance difference between the DC state and the AC state of the electronic device.

[0150] In the embodiments of the present application, the data in the above-mentioned Table 4 and Table 5 are only illustrative, and the completion time delay of the same function of different types of electronic devices may be different, and the completion time delay of the same function of the same type but different models of electronic devices may be different, and are not limited.

[0151] The following describes the DC completion time delay of the electronic device after the performance is adjusted in various ways, in combination with FIG. 4.

[0152] FIG. 4 illustratively shows a DC completion time delay bar chart according to the embodiments of the present application. For example, FIG. 4 shows the DC completion time delay generated when the functions corresponding to the completion of various operations in application A are generated.

[0153] The horizontal coordinate of the bar chart shown in FIG. 4 is the function corresponding to each operation. For example, the function corresponding to the operation includes: insertion operation, undo insertion row and column, delete row and column, delete duplicate value, Vlookup formula calculation, filtering, sorting, copy and paste, pivot table, merge and center, save as / save. The vertical coordinate is the size of the DC completion delay. The diagonal filled bar represents the DC completion delay generated by the electronic device using the above-mentioned method one. The completely black filled bar represents the DC completion delay generated by the electronic device using the above-mentioned method two. The mesh filled bar represents the DC completion delay generated by the electronic device before using the method for adjusting the performance of the device provided in the present application. The horizontal line filled bar represents the DC completion delay generated by the electronic device after using the method for adjusting the performance of the device provided in the present application.

[0154] As can be seen from the above-mentioned FIG. 4, in the four bars corresponding to each type of operation, the fourth bar from left to right is the shortest. This shows that among the DC completion delays generated by the electronic device in completing the functions corresponding to each operation, the DC completion delay generated by the electronic device using the method for adjusting the performance of the device provided in the present application is the shortest.

[0155] In this way, the user can obviously perceive that the focus application runs smoothly and completes the response to the user operation quickly, giving the user a feeling that the electronic device has a very fast processing speed and good performance.

[0156] The following will be described in conjunction with Table 6 to illustrate the power consumption generated by the electronic device before and after using the method for adjusting the performance of the device provided in the present application.

[0157] Table 6

[0158] Referring to Table 6, Table 6 exemplarily shows the CPU power consumption, the whole machine power consumption and the power consumption change before and after the electronic device runs the application A using the method for adjusting the performance of the device provided in the present application. Among them, the power consumption change is equal to: the power consumption generated after using the method provided in the present application minus the power consumption generated before using the method provided in the present application, divided by the power consumption generated after using the method provided in the present application. Exemplarily, (11.37-10.95) / 11.37=3.7%.

[0159] As can be seen from Table 6, the CPU power consumption generated by the electronic device after using the method for adjusting the performance of the device provided in the present application is only 3.7% higher than the CPU power consumption generated by the electronic device before using the method for adjusting the performance of the device provided in the present application. The whole machine power consumption generated by the electronic device after using the method for adjusting the performance of the device provided in the present application is only 4.9% higher than the whole machine power consumption generated by the electronic device before using the method for adjusting the performance of the device provided in the present application.

[0160] In this way, the user can obviously perceive that the focus application runs smoothly, and the electronic device responds to the user operation quickly, and the power consumption of the electronic device is only slightly increased.

[0161] In the embodiments of the present application, the various data in Table 6 above are only exemplary, and the CPU power consumption and the overall power consumption generated by different types of electronic devices are different, and the CPU power consumption and the overall power consumption generated by the electronic device when running different applications are also different, which are not limited.

[0162] FIG. 5 shows a structural schematic diagram of the electronic device 100.

[0163] The embodiments will be described below with the electronic device 100 as an example. It should be understood that the electronic device 100 shown in FIG. 1 is only an example, and the electronic device 100 can have more or fewer components than those shown in FIG. 1, can combine two or more components, or can have a different component configuration. The various components shown in the figure can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.

[0164] For example, the electronic device 100 can be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, and a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, a vehicle-mounted device, a smart home device, and / or a smart city device, and the specific type of the electronic device 100 is not specially limited in the embodiments of the present application.

[0165] The electronic device 100 can include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 can include a pressure sensor 180A, a gyro sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0166] It can be understood that the structure shown in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can include more or fewer components than shown, or combine certain components, or split certain components, or different arrangement of components. The components shown can be implemented in hardware, software, or a combination of software and hardware.

[0167] The processor 110 can include one or more processing units, for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units can be independent devices, or can be integrated in one or more processors.

[0168] In some implementations, the processor 110 can be configured to determine a power state of the current electronic device. The processor 110 can be configured to determine a current focus application. The processor 110 can be configured to periodically obtain an application load of the focus application. The processor 110 can be configured to determine an optimal system parameter configuration based on the application load. The processor 110 can be further configured to determine whether a condition for exiting the method of adjusting the performance of the electronic device is met.

[0169] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching and executing instructions.

[0170] The processor 110 can further include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can store instructions or data that have just been used or are frequently used by the processor 110. If the processor 110 needs to use the instructions or data again, the processor 110 can directly call the instructions or data from the memory. This avoids repeated access and reduces the waiting time of the processor 110, thereby improving the efficiency of the system.

[0171] In some implementations, the memory can be configured to store a correspondence between load gears, load ranges, and optimal system parameter configurations. Further, the memory can be configured to store a correspondence between load gears, load ranges, and optimal system parameter configurations for each application. In one possible implementation, the memory can be configured to store a correspondence between load gears, load ranges, and optimal system parameter configurations for each type of application.

[0172] In some embodiments, the processor 110 can include one or more interfaces. The interfaces can include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0173] It can be understood that the interface connection relationship between the modules shown in the embodiments of the present application is only illustrative and does not constitute a limitation on the structure of the electronic device 100. In some other embodiments of the present application, the electronic device 100 can also use different interface connection modes or a combination of multiple interface connection modes in the above embodiments.

[0174] The charging management module 140 is configured to receive charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 can charge the battery 142 and also supply power to the electronic device through the power management module 141.

[0175] The power management module 141 is configured to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to supply power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be configured to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be arranged in the processor 110. In some other embodiments, the power management module 141 and the charging management module 140 can also be arranged in the same device.

[0176] In some implementations, the charging management module 140 is configured to determine the power supply state of the electronic device 100.

[0177] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.

[0178] The antenna 1 and the antenna 2 are configured to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in combination with a tuning switch.

[0179] The mobile communication module 150 can provide a solution for wireless communication including 2G / 3G / 4G / 5G, etc. applied to the electronic device 100. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive an electromagnetic wave by the antenna 1, and perform filtering, amplification, etc. on the received electromagnetic wave, and transfer the processed signal to the modem processor for demodulation. The mobile communication module 150 can also amplify a signal modulated by the modem processor, and radiate the signal as an electromagnetic wave through the antenna 1. In some embodiments, at least part of the function modules of the mobile communication module 150 can be disposed in the processor 110. In some embodiments, at least part of the function modules of the mobile communication module 150 can be disposed in the same device as at least part of the modules of the processor 110. The modem processor can include a modulator and a demodulator.

[0180] The wireless communication module 160 can provide a solution for wireless communication including wireless local area networks (WLAN) (e.g., wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc. applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrated with at least one communication processing module. The wireless communication module 160 receives an electromagnetic wave via the antenna 2, performs frequency modulation and filtering on the electromagnetic wave signal, and transmits the processed signal to the processor 110. The wireless communication module 160 can also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and radiate the signal as an electromagnetic wave through the antenna 2.

[0181] In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device 100 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device 100 can communicate with a network and other devices through wireless communication technology. The wireless communication technology can include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS can include a global positioning system (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and / or a satellite based augmentation systems (SBAS).

[0182] The electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor, etc. The GPU is a microprocessor for image processing, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs, which execute program instructions to generate or change display information.

[0183] The display screen 194 is configured to display images, videos, and the like. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD). The display screen panel can also be manufactured using an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flex light-emitting diode (FLED), a miniled, a microled, a micro-oled, a quantum dot light emitting diodes (QLED), and the like. In some embodiments, the electronic device 100 can include one or N display screens 194, where N is a positive integer greater than 1.

[0184] In some implementations, the display screen 194 is configured to display a user interface of a focus application.

[0185] The electronic device 100 can implement a photographing function through an ISP, the camera 193, a video codec, a GPU, the display screen 194, and an application processor, and the like.

[0186] The ISP is configured to process data fed back by the camera 193.

[0187] The camera 193 is configured to capture still images or videos.

[0188] The digital signal processor is configured to process digital signals. In addition to processing digital image signals, the digital signal processor can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is configured to perform Fourier transform on the frequency point energy, and the like.

[0189] The video codec is configured to compress or decompress digital videos.

[0190] The NPU is a neural-network (NN) computing processor. By drawing on the structure of a biological neural network, for example, by drawing on the transmission mode between human brain neurons, the NPU can quickly process input information and can also constantly self-learn. Through the NPU, the electronic device 100 can implement intelligent cognitive applications, such as image recognition, face recognition, speech recognition, text understanding, and the like.

[0191] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to extend the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, videos, and the like are stored in the external memory card.

[0192] The internal memory 121 can be used to store computer executable program code including instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application program required for a function (such as a sound playing function, an image playing function, and the like), and the like. The data storage area can store data created during use of the electronic device 100 (such as audio data, a phonebook, and the like), and the like. In addition, the internal memory 121 can include a high-speed random access memory, and can further include a non-volatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.

[0193] The electronic device 100 can implement an audio function through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, an application processor, and the like. For example, music playing, recording, and the like.

[0194] The audio module 170 is used to convert digital audio information into an analog audio signal output, and is also used to convert an analog audio input into a digital audio signal.

[0195] The speaker 170A, also referred to as a "loudspeaker", is used to convert an audio electrical signal into a sound signal.

[0196] The receiver 170B, also referred to as a "earpiece", is used to convert an audio electrical signal into a sound signal.

[0197] The microphone 170C, also referred to as a "microphone", "sound transducer", is used to convert a sound signal into an electrical signal.

[0198] The earphone interface 170D is used to connect a wired earphone. The earphone interface 170D can be a USB interface 130, or can be a 3.5 mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0199] The pressure sensor 180A is configured to sense a pressure signal and convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194.

[0200] The gyroscope sensor 180B can be configured to determine a motion posture of the electronic device 100.

[0201] The barometric sensor 180C is configured to measure air pressure. In some embodiments, the electronic device 100 calculates altitude, assists positioning and navigation based on the air pressure value measured by the barometric sensor 180C.

[0202] The magnetic sensor 180D includes a Hall sensor.

[0203] The acceleration sensor 180E can detect the magnitude of acceleration of the electronic device 100 in each direction (typically three axes). When the electronic device 100 is stationary, the acceleration sensor 180E can detect the magnitude and direction of gravity. The acceleration sensor 180E can also be used to identify the posture of the electronic device 100, and can be used in applications such as screen rotation, pedometers, and the like.

[0204] The distance sensor 180F is configured to measure distance. The electronic device 100 can measure distance using infrared or laser. In some embodiments, the electronic device 100 can use the distance sensor 180F to measure distance to achieve fast focusing when capturing a scene.

[0205] The proximity light sensor 180G can include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.

[0206] The ambient light sensor 180L is configured to sense ambient light intensity.

[0207] The fingerprint sensor 180H is configured to acquire a fingerprint. The electronic device 100 can use the acquired fingerprint characteristics to implement fingerprint unlocking, access application locking, fingerprint photographing, fingerprint call answering, and the like.

[0208] The temperature sensor 180J is configured to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature processing strategy.

[0209] The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 can form a touch screen, also referred to as a "touch panel".

[0210] The bone conduction sensor 180M can acquire a vibration signal. In some embodiments, the bone conduction sensor 180M can acquire a vibration signal of a bone block of a human vocal part.

[0211] The keys 190 include a power-on key, a volume key, and the like. The keys 190 can be mechanical keys. Alternatively, the keys 190 can be touch keys. The electronic device 100 can receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.

[0212] The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts and touch vibration feedback.

[0213] The indicator 192 can be an indicator light and can be used to indicate a charging state, a power change, a message, a missed call, a notification, and the like.

[0214] The SIM card interface 195 is used to connect a SIM card.

[0215] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of the present application takes an Android system with a layered architecture as an example to exemplarily illustrate the software structure of the electronic device 100.

[0216] FIG. 6 is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.

[0217] The layered architecture divides software into several layers, each of which has a clear role and division of labor. The layers communicate with each other through software interfaces. In some implementations, the software structure of the electronic device is divided into an application layer, a kernel layer, and a firmware layer from top to bottom.

[0218] The application layer can include a series of application packages. Exemplarily, as shown in FIG. 6, the application layer can include a function module, a policy library, and a probe. In some implementations, the application layer can further include a scene library.

[0219] The function module is used to implement some functions related to the embodiments of the present application. Exemplarily, the function module can include an application load judgment module, an adjustment system parameter module, and an exit condition judgment module. The application load judgment module can be used to determine a load range to which an application load belongs and an optimal system parameter configuration corresponding to the load range after the electronic device 100 acquires the application load of the focus application. Further, the application load judgment module will execute related functions only after determining that the power state of the current electronic device 100 is not powered on.

[0220] The adjustment system parameter module is used to receive the optimal system parameter configuration sent by the application load judgment module and issue the optimal system parameter configuration, so as to adjust the performance of the electronic device 100.

[0221] The exit condition judging module is configured to determine whether the application load judging module needs to continue to execute. When the exit condition judging module detects that the electronic device 100 meets any of the following conditions, the execution of the application load judging module is stopped: the current focus application is switched to the background running; the application load is less than the lower threshold of the lowest load gear of the current focus application; the power is turned on, and an instruction is sent to the system parameter adjusting module, which is configured to acquire the default system parameter configuration or the system parameter configuration used when the power is turned on and deliver.

[0222] The policy library includes data related to the embodiments of the present application stored by the electronic device 100. For example, the policy library includes rules and system parameter configurations. The rules include the correspondence between the load range and the optimal system parameter configuration. Further, the rules also include the correspondence between the load gear, the load range and the optimal system parameter configuration. For example, the rules can refer to the related content of Table 3 described above. In some implementations, in the above rules, each application has a corresponding set of correspondence between the load gear, the load range and the optimal system parameter configuration. In a possible implementation, in the above rules, each type of application has a corresponding set of correspondence between the load gear, the load range and the optimal system parameter configuration. The system parameter configuration includes the specific configuration content of the optimal system parameter configuration. For example, the system parameter configuration can include the specific configuration content of the following system parameters: energy efficiency ratio, turbo power consumption, processor performance improvement strategy, processor heterogeneity strategy, processor wake-up strategy. For example, the optimal system parameter configuration corresponding to the gear 1 of the application A is parameter configuration 1. The system parameter configuration of the policy library contains how the electronic device specifically sets various system parameters based on the system parameter configuration 1.

[0223] The scene library can include one or more scenes defined in advance. For example, the scene library can include a music scene, a conference scene, a game scene, a video scene, an office scene, and an idle scene. In the embodiments of the present application, the scenes included in the scene library can be obtained based on the application type. For example, the music scene can refer to a scene in which the current focus application belongs to a music application, and the game scene can refer to a scene in which the current focus application belongs to a game application. In the embodiments of the present application, if the CPU is in an idle state for a period of time (for example, 10s), the electronic device can enter the idle scene after the period of time. The idle scene can correspond to the idle state described in FIG. 3. In some implementations, the game scene and the video scene, and other scenes with high application load, can belong to heavy load scenes. In some implementations, in the above rules, each scene included in the scene library has a corresponding set of correspondence between the load gear, the load range and the optimal system parameter configuration.

[0224] The probes can acquire various data from the bottom layer. The data can reflect the running status of the electronic device 100, thereby providing basis and support for adjusting the performance of the electronic device 100. Exemplarily, the probes can include a process start probe, a focus switch probe, an input event probe, a system load probe, and an application load probe. The process start probe can be used to detect the currently started processes. The focus switch probe can be used to determine the current focus window, the focus process, and the focus application. The input event probe can be used to acquire the input operation. The system load probe can be used to acquire the current system load. The application load probe can be used to acquire the application load of the current focus application.

[0225] It can also be understood that the application layer can further include other applications, such as music, game, video, and the like.

[0226] The kernel layer can include device drivers, which can serve as an interface between the upper layer application and the hardware device. Exemplarily, the device drivers can include mouse drivers, keyboard drivers, touchpad drivers, and the like input / output drivers, wherein the mouse drivers can drive the mouse to run, the keyboard drivers can drive the keyboard to run, and the touchpad drivers can drive the touchpad to run. Exemplarily, the device drivers can include a power management driver (acpi.sys), which can be used to manage the power supply of the electronic device 100, such as configuring the power supply mode, sending system parameters to the processor, and the like.

[0227] The firmware layer can include a basic input / output system (BIOS), a register (model specific register, MSR), and an embedded controller (EC).

[0228] The BIOS is a set of programs that are fixed to the mainboard of the electronic device, which stores the most important basic input / output programs, self-check programs after booting, and system self-start programs, and can read and write specific information of system settings from the CMOS. The BIOS can provide the most bottom and most direct hardware settings and control for the electronic device 100.

[0229] The MSR can be used for communication between the hardware and the operating system. For example, the MSR can include an MSR address corresponding to the hardware, and when the BIOS sends data such as instructions to the hardware, the BIOS can write the data to the MSR address corresponding to the hardware through the serial management interface (SMI), thereby completing the configuration of the hardware. For example, the MSR can be used for communication between the processor and the operating system, such as the BIOS writing how to configure the system parameters described above to the MSR address corresponding to the processor, so that the processor adjusts each system parameter according to the configuration.

[0230] The EC can be used to assist in managing external devices of the electronic device 100. For example, the external devices can include input devices, output devices, external memories, and the like. Among them, the input device is a device that can input data and information to the electronic device 100, and is used for information exchange between the user and the electronic device 100. For example, the electronic device 100 is a PC device, and the input device can include a mouse, a keyboard, a camera 193, a touchpad, a microphone 170C, a wireless communication module 160, and various sensors, etc. For example, the electronic device 100 is a mobile phone, and the input device can include a key, a camera 193, a touchpad, a microphone 170C, a wireless communication module 160, and various sensors, etc. For example, the EC can communicate with the BIOS through a communication bus such as an enhanced serial peripheral interface (eSPI) / low pin count Bus (LPC), and communicate with the underlying hardware through a communication bus such as I2C / Platform Environment Control Interface (PECI).

[0231] It can be understood that the external device can also communicate with the BIOS or the kernel layer in the electronic device 100 through other ways. For example, the external device can also communicate with the BIOS in the electronic device 100 through a communication bus such as a USB interface 130, or the external device is provided with a microcontroller unit (MCU), so as to communicate with the BIOS in the electronic device 100 through the MCU.

[0232] The hardware layer can include a processor, a battery, a mouse, a keyboard, a network device, a Bluetooth device, a touchpad, a camera, a sensor, and the like.

[0233] The working process of the software and hardware of the electronic device 100 will be described below in conjunction with the scenario of adjusting the performance of the device.

[0234] When the touch sensor 180K receives a touch operation, a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, a timestamp of the touch operation, and the like). The input event probe of the application layer acquires the input event. And based on the process starting probe, it can be determined that the application A to which the input event acts contains the process that is currently running. That is, the focus switching probe can determine that the current focus application is the application A. Then, the application load judgment module can determine the corresponding relationship between a set of load gears, a load range, and an optimal system parameter configuration corresponding to the application A based on the scene to which the application A belongs or directly based on the application A. For example, the corresponding relationship can refer to Table 3 described above. The application load judgment module can trigger the application load probe to start acquiring the application load of the current focus application, that is, the application A, and send the parameter configuration 1 corresponding to the gear 1 of the application A to the adjustment system parameter module. Next, the application load probe can periodically acquire the application load of the application A. After receiving the parameter configuration 1, the adjustment system parameter module determines the specific configuration content corresponding to the parameter configuration 1 from the system parameter configuration in the policy library and delivers it to the firmware layer. Then, the application load judgment module determines the optimal system parameter configuration to be sent to the adjustment system parameter module based on the application load of the application A acquired. After receiving the optimal parameter configuration, the adjustment system parameter module determines the specific configuration content corresponding to the optimal parameter configuration from the system parameter configuration in the policy library and delivers it to the firmware layer. When the exit condition judgment module detects that the exit condition is met, the related functions of the application load judgment module are stopped, the adjustment system parameter module acquires the specific configuration content of the default system parameter from the system parameter configuration, or acquires the specific configuration content of the system parameter used when the power is turned on and delivers it.

[0235] The embodiment of the present application provides an electronic device, which comprises a memory, a processor and a computer program stored in the memory, and the processor executes the computer program to implement the method for displaying a notification.

[0236] The embodiment of the present application further provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the steps in the above-mentioned method embodiments.

[0237] The embodiment of the present application further provides a computer program product, which comprises a computer program, and when the computer program runs on a computer, the computer can implement the steps in the above-mentioned method embodiments.

[0238] The embodiment of the present application further provides a chip system, which comprises a processing circuit interface circuit, the interface circuit is used for receiving code instructions and transmitting to the processing circuit, and the processing circuit is used for running the code instructions so that the chip system implements the steps of any method embodiment of the present application. The chip system can be a single chip or a chip module composed of multiple chips.

[0239] The above-described and above-embodied examples are only used to illustrate the technical solutions of the present application, rather than limit the same; although the foregoing embodiments of the present application are described in detail, those skilled in the art should understand that the technical solutions recorded in the foregoing embodiments can be modified, or some technical features can be replaced equivalently; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method of adjusting the performance of a device, characterized by, The method is applied to an electronic device, and the method comprises: running a first application by using a first system parameter configuration, the first application being a focus application of the electronic device; obtaining a first load of the first application; in a case where the first load is greater than a first threshold, running the first application by using a second system parameter configuration, the performance of the electronic device when using the second system parameter configuration being better than the performance when using the first system parameter configuration.

2. The method of claim 1, wherein, The method further comprises: in a case where the first load is less than a second threshold, running the first application by using a third system parameter configuration, the performance of the electronic device when using the third system parameter configuration being worse than the performance when using the first system parameter configuration; in a case where the first load is less than the first threshold and greater than the second threshold, continuing to run the first application by using the first system parameter configuration.

3. The method of claim 2, wherein, The electronic device stores a correspondence between a first load range and the first system parameter configuration, the maximum value of the first load range being the first threshold, the minimum value of the first load range being the second threshold, and the first system parameter configuration being a system parameter configuration whose performance exceeds a third threshold and whose power consumption is the lowest when the electronic device uses a plurality of system parameter configurations to run the first application respectively.

4. The method according to any one of claims 1-3, characterized in that, Before running the first application by using the first system parameter configuration, the method further comprises: running the first application by using a fourth system parameter configuration; receiving a first operation acting on the first application, the first operation being used to trigger running the first application by using the first system parameter configuration, the performance of the electronic device when using the first system parameter configuration being better than the performance when using the fourth system parameter configuration.

5. The method of claim 4, wherein, The obtaining of the first load of the first application specifically comprises: obtaining the load of the first application periodically with a first time length; The method further comprises: stopping obtaining the load of the first application when the load of the first application obtained is less than a fourth threshold.

6. The method according to any one of claims 1-5, characterized in that, The system parameter configuration in the electronic device is used to adjust system parameters in the electronic device, and the system parameters comprise one or more of the following: an energy efficiency ratio parameter, a turbo power consumption parameter, a processor performance improvement strategy parameter, a processor heterogeneity strategy parameter, and a processor wake-up strategy parameter.

7. The method according to claim 4 or 5, characterized in that, After running the first application by using the second system parameter configuration, the method further comprises: switching the first application to run in the background; running the first application by using the fourth system parameter configuration.

8. The method of claim 5, wherein, After stopping obtaining the load of the first application, the method further comprises: running the first application by using the fourth system parameter configuration.

9. The method according to any one of claims 1-6, characterized in that, After running the first application by using the second system parameter configuration, the method further comprises: switching the first application to run in the background; running the first application by using the first system parameter configuration.

10. The method according to any one of claims 1-6, characterized in that, After running the first application by using the second system parameter configuration, the method further comprises: turning on the power supply; The first application is run using a fifth system parameter configuration, the fifth system parameter configuration being a system parameter configuration with which the electronic device has the highest performance when the electronic device is run using multiple system parameter configurations respectively.

11. The method according to any one of claims 1-10, characterized in that, Before obtaining the first load of the first application, the method further includes: It is determined that the electronic device is not powered on.

12. An electronic device, comprising: The electronic device includes a memory, a processor, and a computer program stored in the memory, and the processor executes the computer program to implement the method of any one of claims 1-11.

13. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the method of any one of claims 1-11.

14. A computer program product, characterised in that, The computer program product contains computer instructions, and when the computer instructions are executed by the processor, the method of any one of claims 1-11 is implemented.

Citation Information

Patent Citations

  • Method for reducing load and terminal

    CN107172274A

  • System resource allocation adjustment method and device

    CN108664321A

  • Control method and device

    CN112799848A

  • Performance adjustment method and device, electronic equipment and storage medium

    CN117891705A

  • Workload differentiation for processor frequency scaling

    US20170075733A1