Performance adjustment method and related device
By detecting the effective data of the current scenario of the electronic device, determining the performance requirements, and selecting the target scheme in different solutions, adjusting the maximum power available for CPU and EPP, the problem of how to determine a better performance adjustment scheme in electronic devices is solved, and the problem of achieving the Reduced power consumption and guaranteed user experience.
Patent Information
- Application Number
- CN202310968459.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-31
- Publication Date
- 2025-02-14
AI Technical Summary
How to determine better performance adjustment solutions in electronic devices to ensure the best balance between performance and power consumption while ensuring user experience.
By detecting the effective data of the current scenario, determine the performance requirements of the scenario, and select the target scheme among different performance adjustment schemes, adjust the maximum power available to the CPU and EPP to improve the adaptability of the performance adjustment scheme and the operating scenario. Reduce power consumption.
It realizes the power consumption of electronic devices without damaging the user experience, and improves the adaptability of performance adjustment solutions and operating scenarios.
Smart Images

Figure CN119440220A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a performance adjustment method and related devices. Background Art
[0002] With the development of technology, devices such as desktop computers and laptops have become indispensable items in people's lives, work and entertainment. In order to extend the use time of such electronic devices while ensuring user experience, some electronic devices can currently reduce device power consumption appropriately by reasonably adjusting performance.
[0003] However, there are many factors that affect the performance requirements and power consumption of electronic devices, including not only hardware factors but also software factors. If different factors are considered, the performance adjustment schemes finally determined by the electronic device may also be different. For some electronic devices, at the same time, they may provide different performance adjustment schemes for the current operating scenario through different methods.
[0004] Therefore, how to determine a better performance adjustment scheme among multiple performance adjustment schemes provided by electronic devices is an urgent problem to be solved. Summary of the invention
[0005] The purpose of the present application is to provide a performance adjustment method and related devices, which can determine the performance requirement of the current scenario in combination with the specific scenario of the electronic device, and further determine a target solution in the performance adjustment solutions obtained through different strategies in combination with the performance requirement of the scenario, and adjust the maximum supply power value and EPP value of the CPU of the electronic device based on the target solution, while improving the adaptability between the performance adjustment solution used and the operating scenario, reducing the power consumption of the electronic device and ensuring the user experience.
[0006] The above-mentioned and other objects are achieved by the features of the independent claims. Further implementations are reflected in the dependent claims, the description and the drawings.
[0007] In a first aspect, the present application provides a performance adjustment method, including: detecting entry into a first scene; determining a first operating parameter based on valid data of the first scene, the valid data of the first scene including the operating time and the freeze time of the first scene under multiple operating parameters respectively; wherein one operating parameter includes the maximum power supply of the CPU and the performance-to-energy efficiency ratio; the first operating parameter is the operating parameter with the lowest performance supply degree among the operating parameters in the valid data of the first scene, in which the freeze time ratio during operation is less than or equal to a first threshold; the freeze time ratio is the ratio of the freeze time to the operating time, and the performance supply degree is determined by the maximum power supply of the CPU and the performance-to-energy efficiency ratio; determining a second operating parameter based on a mapping table, the mapping table including operating parameters corresponding to multiple scenes respectively, the second operating parameter being the operating parameter corresponding to the first scene in the mapping table; the number of scene parameters of the first scene in the mapping table is less than the number of scene parameters of the first scene in the valid data; if the first scene is a secondary scene, adjusting the operating parameter to the one with the smaller performance supply degree between the first operating parameter and the second operating parameter, and the secondary scene includes a scene in which no interaction event is detected.
[0008] In this method, the first scenario may be the current operation scenario of the electronic device, and the operation parameter may be referred to as a "performance adjustment scheme". The valid data of the first operation scenario may be collected when the electronic device is operating with the multiple operation parameters in the first scenario. Specifically, in the process of operating with any one of the multiple operation parameters, the electronic device may record the operation time and the freeze time when operating with any one of the operation parameters in the first scenario, and the freeze time ratio of any one of the operation parameters is the ratio of the freeze time to the operation time when operating with the operation parameter. Among them, the larger the freeze time ratio, the less the performance provided by the operation parameter can meet the performance requirements of the first scenario. Therefore, after obtaining the valid data of the first scenario, the electronic device may determine the first operation parameter by the operation parameter with the smallest performance supply degree among the operation parameters whose freeze time ratio is less than or equal to the first threshold. Among them, the freeze time ratio indicates the frequency of freezes, and the freeze time ratio is less than or equal to the first threshold, indicating that the user experience is not impaired. It can be understood that the first operation parameter is the parameter with the smallest performance supply degree among the multiple operation parameters that do not affect the user experience. Since the lower the performance supply level, the lower the power consumption of the electronic device will be, the first operating parameter is the operating parameter among the multiple operating parameters that does not damage the user experience and has the lowest power consumption for the electronic device.
[0009] The mapping table may be stored in the electronic device when the electronic device leaves the factory, and stores a limited number of operating scenarios and performance adjustment schemes. During operation, if the scenario currently in which the electronic device is located (e.g., the first scenario) exists in the mapping table, the electronic device can obtain the performance adjustment scheme corresponding to the scenario (e.g., the second operating parameter corresponding to the first scenario) from the mapping table according to the current scenario.
[0010] For the same electronic device, the maximum power supply and EPP of the CPU in the two performance adjustment schemes (i.e., the first operating parameter and the second operating parameter) may be different, so the performance provided by the two performance adjustment schemes for the electronic device and the power consumption caused to the electronic device may also be different. Therefore, in order to balance the power consumption and performance of the electronic device and reduce the power consumption of the device as much as possible while ensuring the user experience, in this method, the electronic device can adjust the operating parameters to the one with a smaller performance supply degree between the first operating parameter and the second operating parameter when the first scenario is a secondary scenario, that is, the maximum power supply and performance energy efficiency ratio of the CPU of the electronic device are adjusted to the maximum power supply and performance energy efficiency ratio of the CPU contained in the operating parameters with a smaller performance supply degree between the first operating parameter and the second operating parameter. Among them, the secondary scenario includes an operating scenario with low performance requirements where no interactive events are detected.
[0011] Optionally, the electronic device may execute the method only when it is in an uncharged state, that is, the electronic device may determine the first operating parameter based on the valid data of the first scenario and determine the second operating parameter based on the mapping table only when it is in an uncharged state. Since the electronic device has sufficient power supply in the charging state, the electronic device does not need to adjust the operating parameters based on the operating scenario, but always keeps the operating parameters used as the operating parameters with the highest performance supply among all operating parameters, giving priority to ensuring the performance requirements of the electronic device.
[0012] Optionally, the first threshold may be 0.03.
[0013] In combination with the first aspect, in an optional embodiment, the method further includes: if the first scene is a level one scene, adjusting the operating parameters to the one with a greater performance provision degree between the first operating parameters and the second operating parameters, and the level one scene includes a scene in which an interaction event is detected.
[0014] In this embodiment, when the first scenario is a level one scenario, the electronic device may adjust the operating parameter to the one with a greater performance supply between the first operating parameter and the second operating parameter. The level one scenario includes a scenario with a greater performance requirement when an interaction event is detected.
[0015] Optionally, in some embodiments, as long as a first-level event is detected in the first scene, the first scene can be determined to be a first-level scene, and the first-level event may include but is not limited to the following events: 1. Interaction events between a user and an electronic device. For example, the user clicks a mouse button or scrolls a mouse wheel (but does not include the operation of moving the mouse cursor), the user uses keyboard shortcut keys (shortcut keys may include the keyboard's Ctrl key, Win key, Shift key, Alt key, Esc key, F1-F12 key, Fn key, Enter key, PrtSc key, PgUp key, PgDn key, etc., and may also include other shortcut keys, as well as shortcut keys obtained by combining multiple shortcut keys among these shortcut keys), the user switches the focus application, etc. 2. High-load events of electronic devices. For example, events in which the CPU of an electronic device is in a high-load state, events in which an electronic device enters game mode, etc.
[0016] In combination with the first aspect, in an optional implementation, the performance supply degree is determined by the maximum power that the CPU can supply and the performance energy efficiency ratio, including: when the maximum power that the CPU can supply is different, the greater the maximum power that the CPU can supply, the greater the performance supply degree; when the maximum power that the CPU can supply is the same, the smaller the performance energy efficiency ratio, the greater the performance supply degree.
[0017] Since the maximum power that can be supplied by the CPU has a much greater impact on the performance of the electronic device than the performance-energy efficiency ratio in the operating parameters, in this embodiment, for two operating parameters, when the maximum power that can be supplied by the CPU they contain is different, the operating parameter with a larger maximum power that can be supplied by the CPU has a greater performance supply degree; when the maximum power that can be supplied by the CPU they contain is the same, the operating parameter with a smaller performance-energy efficiency ratio has a greater performance supply degree.
[0018] In combination with the first aspect, in an optional embodiment, before determining the first operating parameter based on the valid data of the first scenario, the method also includes: operating with a third operating parameter in the first scenario; when the duration of operation with the third operating parameter reaches a first duration and no lag occurs, operating with a fourth operating parameter, the performance supply level of the fourth operating parameter is less than the performance supply level of the third operating parameter, and the valid data of the first scenario include the operating duration and lag duration of running with the third operating parameter and the fourth operating parameter respectively in the first scenario.
[0019] In some embodiments, the electronic device can gradually reduce the maximum power supply of the CPU from high to low to obtain valid data in the first scene. It should be understood that when the electronic device runs with an operating parameter in an operation scenario, the smoother the electronic device runs (i.e., the less jamming occurs), the more the performance provided by the operating parameter can meet the performance requirements of the main and secondary scenes, which also means that the performance provided by the electronic device may still have some remaining performance after the performance requirements of the operation scenario. In this case, the electronic device can run with an operating parameter with a lower performance supply degree to reduce the performance of the electronic device and further reduce the power consumption of the electronic device. Therefore, in this embodiment, when the electronic device is running with the third operating parameter, when the duration of running with the third operating parameter reaches the first duration and no jamming occurs, the electronic device can first save the total duration (i.e., the first duration) and the jamming duration (i.e., the jamming duration with a duration of 0) of running with the third operating parameter, and reduce the maximum power supply of the CPU to the fourth operating parameter. Optionally, the electronic device can gradually reduce the maximum power supply of the CPU from high to low.
[0020] In this way, the operating parameters of the electronic device can be quickly brought close to the optimal operating parameters of the first scenario (the operating parameters are those that minimize the power consumption of the electronic device without compromising the user experience), and can be operated with the maximum power supply of as many different CPUs as possible within a limited time, so that the effective data of the first scenario is richer, and the first operating parameters determined based on the effective data of the first scenario will be more adapted to the performance requirements of the first scenario.
[0021] In combination with the first aspect, in an optional embodiment, before determining the first operating parameter based on the valid data of the first scenario, the method also includes: in the first scenario, operating with a third operating parameter; when the duration of operation with the third operating parameter does not reach the first duration and a freeze occurs, operating with a fifth operating parameter, and the performance supply level of the fifth operating parameter is greater than the performance supply level of the third operating parameter; the valid data of the first scenario include the operating duration and freeze duration of the operation with the third operating parameter and the fifth operating parameter respectively in the first scenario.
[0022] In this embodiment, when a jam occurs, the electronic device will adjust the operating parameters used to operating parameters with a greater degree of performance supply, which can effectively avoid the influence of the contingency of the data on the accuracy of the results. Taking the above-mentioned first duration of 30s as an example, assuming that in the first scenario, the probability of jamming when the electronic device is running with the third operating parameter is very small, which is actually 0.05. However, when running with the third operating parameter, the electronic device ran for 30s and jammed for 3s (a small probability event occurs). If the power is simply continued to be lowered, the total operating time and total jamming time corresponding to the third operating parameter will not be updated again, so the electronic device calculates the jamming time corresponding to the third operating parameter as 3 / 30=0.1, which is twice the actual jamming probability. However, if the operating parameter is adjusted to the fifth operating parameter with a greater degree of performance supply, the probability of jamming when the electronic device is running with the fifth operating parameter in the first scenario is smaller, and there is a great probability that jamming will not occur within 30s, so after 30s, the electronic device will adjust the operating parameter to the third operating parameter again. Since the probability of the electronic device freezing when running with the third operating parameter in the first level scenario is very small, the electronic device will not freeze within 30 seconds when running with the third operating parameter again, and the total running time and total freezing time corresponding to the third operating parameter will be updated to 60 seconds and 3 seconds respectively. The freezing time ratio corresponding to the third operating parameter is calculated to be 3 / 60=0.05, which is closer to the actual freezing probability of the third operating parameter, thereby reducing or even avoiding the impact of the randomness of the data on the accuracy of the results.
[0023] In combination with the first aspect, in an optional embodiment, before determining the first operating parameters based on the valid data of the first scene, the method also includes: operating with third operating parameters in the first scene; when the duration of operation with the third operating parameters does not reach the first duration and no lag occurs, entering the second scene is detected, and the exploration progress of the first scene is saved as the third operating parameters, the exploration progress is used to operate with the third operating parameters after entering the first scene again, and the valid data of the first scene includes the operating duration and lag duration when operating with the third operating parameters in the first scene.
[0024] It is understandable that during the actual operation of the electronic device, the operation scene in which the electronic device is located may change at any time. Therefore, when the electronic device is operated with the third operation parameter in the first scene, if the electronic device has not been operated for a long enough time, that is, the electronic device has not been operated with enough operation parameters in the first scene, the operation scene in which the electronic device is located may change from the first scene to another scene. Therefore, in this embodiment, when the operation scene in which the electronic device is located changes from the first scene to another scene (that is, the second scene), the electronic device can save the operation time and the jamming time of the operation with the third operation parameter this time, and record the exploration progress (that is, the third operation parameter) in the first main and secondary scenes, so that when the scene in which the electronic device is located changes to the first scene again, the electronic device can start from the third operation parameter, continue to adjust the operation parameters of the electronic device from high to low, step by step according to the performance supply degree of each operation parameter, and collect the operation time and jamming time corresponding to each operation parameter in the first scene.
[0025] In combination with the first aspect, in an optional embodiment, before determining the first operating parameter according to the valid data of the first scenario, the method also includes: obtaining the valid data of the first scenario; the obtaining the valid data of the first scenario includes: in the first scenario, running with the sixth operating parameter in the first set, obtaining the operating time and the jamming time of running with the sixth operating parameter, and the first set includes multiple operating parameters; if the running time with the sixth operating parameter reaches the first time and no jamming occurs, the operating parameters in the first set whose performance supply degree is greater than or equal to the performance supply degree of the sixth operating parameter are deleted to obtain a second set; if the running time with the sixth operating parameter does not reach the first time and jamming occurs, the operating parameters in the first set whose performance supply degree is less than or equal to the performance supply degree of the sixth operating parameter are deleted to obtain a second set; in the first scenario, running with the seventh operating parameter in the second set, obtaining the operating time and the jamming time of running with the seventh operating parameter, and the valid data of the first scenario include the running time and the jamming time of running with the sixth operating parameter and the seventh parameter respectively in the first scenario.
[0026] When the maximum power that the CPU of an electronic device can supply and the adjustable values of the performance energy efficiency ratio are very large, the electronic device can also provide a lot of operating parameters. If the electronic device is operated with all optional operating parameters in the first scenario respectively, and the valid data of the first scenario is obtained thereby, the electronic device will need to explore a lot of operating parameters, and the time cost of obtaining valid data will be very large. Therefore, in this embodiment, after the operation with a certain operating parameter is completed, the electronic device can delete the remaining operating parameters that have not been used based on whether a freeze occurs when running with the operating parameter, thereby reducing the number of operating parameters that need to be explored, narrowing the scope of the next step of exploration, and effectively reducing the time cost of the electronic device to obtain valid data for the first scenario.
[0027] In combination with the first aspect, in an optional implementation, in the valid data of the first scene, the total duration of operation with the multiple operating parameters reaches a second duration.
[0028] In order to avoid endless adjustment of the maximum CPU power supply in the first scenario, in this embodiment, when the total operating time of the electronic device in the first scenario reaches the second time, it can be regarded that the electronic device has obtained a sufficient number of operating parameters corresponding to the freeze time ratio in the first scenario, that is, the electronic device can determine the first operating parameter based on the valid data of the first scenario.
[0029] Optionally, the second duration may be 600 seconds.
[0030] In combination with the first aspect, in an optional embodiment, after adjusting the operating parameter to the one with a smaller performance supply degree between the first operating parameter and the second operating parameter, the method also includes: detecting entry into a third scene, the third scene being a scene not included in the mapping table; determining an eighth operating parameter based on valid data of the third scene, the eighth operating parameter being the operating parameter with the smallest performance supply degree among the operating parameters in the valid data of the third scene whose proportion of the freeze duration during operation is less than or equal to the first threshold; adjusting the operating parameter to the eighth operating parameter.
[0031] Since the mapping table is pre-stored in the electronic device when it leaves the factory, it only records the operating parameters corresponding to a limited number of operating scenarios. Therefore, when the operating scenario in which the electronic device is located (for example, the third scenario) does not exist in the mapping table, the electronic device cannot obtain the corresponding operating parameters according to the mapping table. However, the electronic device can still operate with the multiple operating parameters respectively in the third scenario, and obtain valid data for the third scenario; and further determine the eighth operating parameter based on the valid data of the third scenario, and the eighth operating parameter is the operating parameter among the multiple operating parameters that does not damage the user experience and has the lowest power consumption for the electronic device. Therefore, the electronic device can directly adjust the operating parameters to the eighth operating parameters in the third scenario, so that when operating in the third scenario, it will not damage the user experience and can reduce the power consumption of the electronic device.
[0032] In a second aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the method in the first aspect or any possible implementation of the first aspect.
[0033] In a third aspect, a chip system is provided, which is applied to an electronic device, and the chip system includes one or more processors, and the processors are used to call computer instructions so that the electronic device executes a method as in the first aspect or any possible implementation of the first aspect.
[0034] According to a fourth aspect, a computer program product comprising instructions, when the computer program product is run on an electronic device, enables the electronic device to execute the method according to the first aspect or any possible implementation of the first aspect.
[0035] In a fifth aspect, a computer-readable storage medium is provided, comprising instructions, which, when executed on an electronic device, enable the electronic device to execute a method in the first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 A schematic diagram of a mapping table related to a preset table query strategy provided in an embodiment of the present application;
[0037] Figure 2 A process of a performance adjustment method provided in an embodiment of the present application;
[0038] Figure 3A logical schematic diagram of adjusting device performance in a primary scenario provided in an embodiment of the present application;
[0039] Figure 4 A process for determining an optimal performance adjustment solution provided in an embodiment of the present application;
[0040] Figure 5 A schematic diagram of a process of performing a round of exploration of all optional performance adjustment solutions provided in an embodiment of the present application;
[0041] Figure 6 A schematic diagram of valid data for an operation scenario provided in an embodiment of the present application;
[0042] Figure 7 A system architecture diagram provided for an embodiment of the present application;
[0043] Figure 8 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to and includes any or all possible combinations of one or more listed items.
[0045] To facilitate understanding, the relevant terms involved in the embodiments of the present application are first introduced below.
[0046] (1) Performance and power consumption of electronic equipment
[0047] Performance refers to the properties and functions of a substance. For electronic devices such as computers and tablets, the most important evaluation indicator is the computing speed of the electronic device, that is, the number of instructions that the electronic device can execute per second, which is generally described as "millions of instructions per second". Understandably, the computing speed of an electronic device will be further reflected in the dimensions of whether the electronic device runs smoothly and whether there is obvious lag. Therefore, in this application, the performance of an electronic device can be evaluated based on the lag frequency during its operation (that is, the proportion of the duration of the electronic device being stuck within a period of time). The smaller the lag frequency, the better the performance of the electronic device, and vice versa.
[0048] Power consumption refers to the amount of energy consumed by an electronic device per unit time. For electronic devices, power consumption specifically refers to the amount of electrical energy consumed by the electronic device per unit time, measured in W. Even in standby mode, an electronic device will still consume a certain amount of electrical energy (unless the power is turned off, it will not consume energy).
[0049] (2) Maximum CPU power supply, maximum CPU operating frequency, and energy efficiency performance ratio
[0050] For electronic devices such as desktop computers and laptops, the CPU is the computing and control core of the system in the device. The maximum power that can be supplied by the CPU (i.e., PowerLimit-1) and the maximum operating frequency of the CPU (i.e., MaxFrequency) are closely related to the power consumption of the electronic device. The maximum power that can be supplied by the CPU and the maximum operating frequency of the CPU determine the upper limit of the performance of the electronic device to a certain extent. Taking the maximum power that can be supplied by the CPU as an example, generally speaking, for the same series of microprocessors, the greater the maximum power that can be supplied by the CPU, the greater the maximum operating speed that the electronic device can support. In some scenarios, the power consumption of the electronic device can be reduced by reducing the maximum power that can be supplied by the CPU at the expense of performance. For example, in a certain operating scenario, the maximum power that can be supplied by the CPU is 45W, and the actual power of the CPU is 25W. However, at this time, the gap between the actual power of the CPU of the electronic device and the maximum power that can be supplied by the CPU is still very large, which also means that the power of the CPU in the current scenario is difficult to reach the upper limit of 45W, so the maximum power that can be supplied by the CPU does not limit the actual power of the CPU. It should be understood that when the actual power of the CPU is 25W, the performance provided by the CPU is the maximum performance required for the operating scenario. If the actual power of the CPU is adjusted to 15W, the performance provided by the CPU may not meet the maximum performance requirements of the operating scenario, but it can still provide sufficient performance for the operating scenario to ensure that the user experience is not impaired. For example, assuming that when the actual power of the CPU is 25W, the response time of the electronic device to a certain instruction in this operating scenario is 50ms. When the actual power of the CPU is 15W, the response time of the electronic device to the same instruction in this operating scenario is extended to 100ms. Although the response speed of the electronic device to the instruction has indeed slowed down, for the user, the difference between 100ms and 50ms is difficult to perceive.
[0051] Energy performance ratio (EPP) is a parameter used for hardware control of CPU power, which represents the ratio of the trade-off between CPU performance and energy efficiency. Like the aforementioned maximum CPU power supply and maximum CPU operating frequency, the EPP of an electronic device is also a parameter that can adjust the value, and the adjusted value has a range of 0 to 255. When the value of EPP is 255, it means that the energy efficiency of the CPU is maximized within the adjustable range of EPP (lowest power consumption), but at this time the performance of the CPU is also reduced to the lowest within the adjustable range of EPP; when the value of EPP is 0, it means that the performance of the CPU is maximized within the adjustable range of EPP, but at this time the energy efficiency of the CPU is also reduced to the lowest within the adjustable range of EPP. That is, under the same other conditions, the larger the value of EPP, the lower the performance of the electronic device, but the lower the power consumption; correspondingly, the smaller the value of EPP, the higher the performance of the electronic device, but the greater the power consumption.
[0052] In some embodiments, the electronic device can adjust the performance of the electronic device only by adjusting the maximum power that can be supplied by the CPU of the electronic device (the maximum operating frequency of the CPU).
[0053] In some embodiments, the electronic device can adjust the maximum power supply (CPU maximum operating frequency) and EPP of the electronic device's CPU at the same time to adjust the performance of the electronic device, so that the performance supply of the electronic device can be adjusted more finely. For example, assuming that the electronic device determines that the maximum power supply of the CPU to be adjusted is 9W, the electronic device can further adjust the EPP to control the difficulty of the CPU's actual working power reaching the maximum power supply. When the value of EPP is smaller, the electronic device such as the CPU's actual working power is easier to reach the maximum power supply. For example, when the value of EPP is 0, the actual power of the electronic device's CPU can reach the maximum power supply of the CPU when there are very few task processes in the electronic device. When the value of EPP is 255, the actual power of the CPU may need to reach the maximum power supply of the CPU when there are a large number of task processes in the electronic device. In addition, in the actual performance adjustment process, the maximum power supply of the CPU has a much greater impact on performance than the impact of EPP on performance.
[0054] In the present application, when an electronic device adjusts the performance of an electronic device by adjusting the maximum power supplyable by the CPU and the EPP at the same time, a combination of a maximum power supplyable by the CPU and an EPP value may be collectively referred to as a "performance adjustment scheme" or an "operation parameter". Different performance adjustment schemes (operation parameters) provide different performance upper limits for electronic devices, and the power consumed by electronic devices when operating in different performance adjustment schemes in a scenario may also be different.
[0055] Of course, in some embodiments, the electronic device can adjust the maximum operating frequency of the CPU and the EPP of the electronic device at the same time to adjust the performance of the electronic device. For ease of explanation, in the subsequent embodiments, the simultaneous adjustment of the maximum power supply of the CPU and the EPP is used as an example for explanation.
[0056] (3) Focus application and background application
[0057] For electronic devices such as computers, users may open multiple applications at the same time when using them, and the display screen of the electronic device may also display multiple application interfaces (some interfaces may be minimized in the information status bar), but the user generally only has one application that is operated by the mouse or keyboard. Of course, even if the user does not operate the electronic device through devices such as the mouse or keyboard, there will always be an application interface (application window) on the display screen that is displayed on the top of the display screen. For example, when the user is watching a video on the electronic device, he may not operate the electronic device, but the interface of the application used to play the video is generally displayed on the top of the interface.
[0058] In the embodiment of the present application, the application or application interface that the user is operating with the mouse or keyboard and is displayed on top of the display screen can be called a "focus application"; in addition to the focus application, other applications opened by the electronic device can be called "background applications". It can be understood that the focus application and the background application can be switched. For example, the user can click on the application interface of a background application to make the application interface of the background application displayed on top. At this time, the background application is switched to the focus application, and the original focus application becomes a background application.
[0059] (4) Operational scenarios, primary scenarios, and secondary scenarios
[0060] In the present application, the operating scenario of an electronic device can be defined by one or more of the following scenario parameters that characterize the performance requirements of the electronic device: focus application, size of the focus application window, memory usage of the focus application, whether to watch videos, download speed, whether to use a camera, whether to play audio, type of external device, whether to use a keyboard, device screen brightness, device available memory RAM, integrated graphics load rate, independent graphics load rate, and hard disk write speed.
[0061] For strategies used to determine performance adjustment plans, different strategies may use different scenario parameters when defining operating scenarios. For example, in a preset table query strategy, it may use 2-3 parameters from all the above scenario parameters to uniquely determine an operating scenario. For example, when an electronic device uses a preset table query strategy to determine the performance adjustment plan for the current operating scenario, the electronic device may only use the focus application, the size of the focus application window, and the memory usage of the focus application in the above scenario parameters to determine which operating scenario the current operating scenario is. When an electronic device uses an optimal solution exploration query strategy to determine the performance adjustment plan for the current operating scenario, the electronic device may use all the focus scene parameters in the above scenario parameters to determine which operating scenario the current operating scenario is.
[0062] In addition, in some embodiments, when no level 1 event is detected, when any one or more of the scene parameters change, it is considered that a scene is switched to another scene. In other embodiments, since parameters such as the focus application window size, the focus application memory usage, the download speed, the screen brightness, the memory RAM, the integrated graphics card load rate, the independent graphics card load rate, and the hard disk write speed may change frequently during the operation of the electronic device, for these parameters, it can be considered that a scene is switched to another scene only when the change of any one or more parameters reaches a certain amplitude. That is, when the scene parameters of the electronic device change within a certain range, the electronic device can be considered to be in the same scene.
[0063] Level 1 scenarios include operating scenarios that have high requirements for electronic device performance. When an electronic device detects a level 1 event, it is considered that the electronic device has entered a level 1 scenario. Level 1 events may include any one or more of the following: 1. Interaction events between users and electronic devices. For example, operations such as users clicking mouse buttons and scrolling mouse wheels (but not including operations of moving the mouse cursor), users using keyboard shortcut keys (shortcut keys may include keyboard Ctrl keys, Win keys, Shift keys, Alt keys, Esc keys, F1-F12 keys, Fn keys, Enter keys, PrtSc keys, PgUp keys, PgDn keys, etc., and may also include other shortcut keys, as well as shortcut keys obtained by combining multiple shortcut keys in these shortcut keys), users switching focus applications, etc. 2. High-load events of electronic devices. For example, events in which the CPU of an electronic device is in a high-load state, events in which an electronic device enters game mode, etc.
[0064] The second-level scenario includes operating scenarios with lower requirements on the performance of electronic devices. When the electronic device does not detect a first-level event, it is considered that the electronic device has entered the second-level scenario.
[0065] (5) Preset table query strategy and optimal solution exploration strategy
[0066] The preset table query strategy is a multi-dimensional factor control preset strategy based on rule-based scene recognition, which can determine the corresponding performance adjustment plan for the electronic device based on the scene in which the electronic device is currently located. The "multi-dimensional factors" mentioned here include the maximum power supply and EPP of the CPU of the electronic device, and "preset" means that the electronic device has stored a mapping table of a limited number of operating scenarios and performance adjustment plans when the device leaves the factory. During operation, if the scene in which the electronic device is currently located exists in the mapping table, the electronic device can obtain the performance adjustment plan corresponding to the scene from the mapping table according to the current scene, and adjust the maximum power supply and EPP of the CPU of the electronic device according to the maximum power supply value and EPP value of the CPU recorded in the performance adjustment plan.
[0067] The optimal solution exploration strategy is a strategy for determining the optimal performance adjustment solution after multiple solution explorations. The performance adjustment solution explored and the optimal performance adjustment solution finally determined can adjust the performance of the electronic device by adjusting the maximum power supply of the CPU and EPP. The specific operation of the optimal solution exploration strategy is as follows: In a scenario, the electronic device successively operates with multiple different performance adjustment schemes, wherein the maximum power supply value and / or EPP value of the CPU contained in any two performance adjustment schemes are different. In the process of running with each performance adjustment scheme, the electronic device can record the proportion of the jamming duration under each performance adjustment scheme (i.e., the proportion of the jamming duration and the running duration during the operation process), and determine the optimal performance adjustment scheme of the scenario based on the proportion of the jamming duration of each performance adjustment scheme, and adjust the performance of the electronic device according to the maximum power supply value and EPP value of the CPU recorded in the optimal performance adjustment scheme. When the scene of the electronic device changes to other scenes, the electronic device will also use the above method to run with the aforementioned multiple different performance adjustment schemes in the scene, and determine the optimal performance adjustment scheme for the new scene.
[0068] It should be noted that when an electronic device uses different strategies to determine a performance adjustment plan for the electronic device, even if these strategies are based on the operation scenario of the electronic device, the number of parameters and parameter types used by each strategy to determine the operation scenario may be different. For example, when an electronic device uses a preset table query strategy to determine the performance adjustment plan for the current scene of the electronic device, the scene parameters that the electronic device needs to obtain may be the name of the focus application, the window size of the focus application, and the download speed of the electronic device; however, when an electronic device uses an optimal solution exploration strategy to determine the performance adjustment plan for the current scene of the electronic device, the scene parameters that the electronic device needs to obtain may be the focus application, the size of the focus application window, the memory usage of the focus application, whether to watch videos, download speed, whether to use a camera, whether to play audio, external device type, whether to use a keyboard, device screen brightness, device available memory RAM, integrated graphics load rate, independent graphics load rate, hard disk write speed and other parameters.
[0069] In some embodiments, the electronic device can simultaneously determine a performance adjustment scheme for the electronic device through a preset table query strategy and the above-mentioned optimal solution exploration strategy. However, the maximum power supply and EPP of the CPU in the two performance adjustment schemes determined for the electronic device by two different strategies may be different, so the performance provided by the two performance adjustment schemes for the electronic device and the power consumption caused to the electronic device may also be different. Therefore, how to determine the target scheme among the different performance adjustment schemes determined by different strategies, and adjust the maximum power supply value and EPP value of the CPU of the electronic device according to the target scheme, that is, the key problem to be solved in this application.
[0070] (6) The maximum power supply of the CPU and the EPP
[0071] In the present application, the maximum power that can be supplied by the CPU of the electronic device and the EPP can be discretized into different gears.
[0072] Combined with the above description, it can be known that the maximum power supplyable by the CPU of the electronic device and the EPP have an upper limit for adjustment, and this upper limit is determined when the electronic device leaves the factory. Here, it is assumed that the power value corresponding to the upper limit of the maximum power supplyable by the CPU is Pm, and the value corresponding to the upper limit of the EPP is Em. Then, the corresponding gears can be set for the maximum power supplyable by the CPU and EPP based on the upper limit value Pm and the upper limit value Em, respectively. For details, please refer to the examples in Table 1 and Table 2 below:
[0073] Table 1
[0074]
[0075] As can be seen from Table 1, Pm is the maximum gear corresponding to the maximum power that the CPU can supply; accordingly, the values corresponding to different percentages of Pm can be set as different gears of the maximum power that the CPU can supply, and the larger the value of the power gear, the greater the power corresponding to the power gear. For example, the maximum power that the CPU can supply corresponding to gear 9 is greater than the maximum power that the CPU can supply corresponding to gear 8. Table 1 is only an example. In a specific implementation, the power gear can also be set in other ways, for example, more or fewer power gears can be set than those in Table 1.
[0076] Table 2
[0077] EPP value E 0.9Em 0.8Em 0.7Em 0.6Em 0.5Em 0.4Em 0.3Em 0.2Em 0.1Em EPP gear 10 9 8 7 6 5 4 3 2 1
[0078] Correspondingly, Em corresponds to the maximum gear of EPP. In addition, the specific values of each gear of EPP can refer to the above description of Table 1, which will not be repeated here. Similarly, Table 2 is only an example. In specific implementation, the gear of EPP can also be set in other ways, for example, more or fewer power gears can be set compared to Table 2.
[0079] The following embodiments all take the CPU maximum power supply level and the EPP level as examples to illustrate the performance adjustment process of the electronic device.
[0080] Accordingly, when the electronic device adjusts the performance of the electronic device by adjusting the maximum power supply of the CPU and the EPP at the same time, a gear combination consisting of a CPU maximum power supply gear and an EPP gear can be referred to as a performance adjustment scheme in this application. Assuming that there are N1 gears for the maximum power supply of the CPU and N2 gears for the EPP, the electronic device can obtain an N1×N2 performance adjustment scheme based on the above N1 gear and N2 gear combination.
[0081] Assume here that the value of N1 is 5, the value of N2 is 2, the five power levels of the maximum power that the CPU can supply are Pm, 0.8Pm, 0.6Pm, 0.4Pm, and 0.2Pm, and the two levels of EPP are Em and 0.2Em; then the electronic device can provide 10 performance adjustment solutions as shown in Table 3 below:
[0082] Table 3
[0083]
[0084] It can be understood that, since the larger the power level that the CPU can supply power to, the higher the performance of the electronic device, the smaller the level of EPP, the higher the performance of the electronic device, and the influence of the power level that the CPU can supply power to the performance is much greater than that of EPP, the performance adjustment schemes in Table 3 above gradually decrease from No. 1 to No. 10, but the power consumption also gradually decreases. That is, the performance provided by the No. 1 performance adjustment scheme is the largest among the 10 performance adjustment schemes, and the power consumption caused to the electronic device is also the largest; accordingly, the performance provided by the No. 10 performance adjustment scheme is the smallest among the 10 performance adjustment schemes, and the power consumption caused to the electronic device is also the smallest. It can be understood that Table 3 is only an example. In specific implementations, the power level and the EPP level can also be set in other ways. Accordingly, the electronic device can provide more or fewer performance adjustment schemes than Table 3.
[0085] With the development of science and technology, devices such as desktop computers and laptops have become indispensable items in people's lives, work and entertainment. However, since such devices often need to process a large amount of data, they consume power very quickly; especially for portable devices such as laptops, users may need to use them in an environment without charging conditions. If the power consumption of the device is too fast, the device may automatically shut down due to power exhaustion during the user's use, causing inconvenience to the user.
[0086] In order to extend the use time of the electronic device, in one possible case, the electronic device may use a preset table query strategy to determine a performance adjustment solution for the electronic device according to the electronic device scenario.
[0087] Combined with the above description, it can be seen that the preset table query strategy is a multi-dimensional factor control preset strategy. It is mainly based on the mapping table of the operation scenario and the performance adjustment plan to determine the maximum CPU power supply level and EPP level that need to be adjusted in each scenario, and the operation mapping table is stored in the electronic device when the electronic device leaves the factory. During operation, if the scene currently in which the electronic device is located exists in the mapping table, the electronic device can obtain the performance adjustment plan corresponding to the scene from the mapping table according to the current scene, and adjust the performance of the electronic device according to the maximum CPU power supply value and EPP value recorded in the performance adjustment plan, and reduce the power consumption of the device.
[0088] Figure 1 The specific format of the above mapping table is shown as an example. Figure 1 As shown, the mapping table 10 is the mapping table stored in the electronic device when the electronic device leaves the factory, and it may include multiple mapping table data, such as Figure 1 The mapping data 101-mapping data 104 in each mapping data record an operation scenario and a performance adjustment scheme corresponding to the operation scenario (ie, the gear of the maximum power that the CPU can supply and the gear of the EPP).
[0089] The operation scenario recorded in each mapping data can be uniquely determined by three parameters including a, b, and c. Among them, a can be the name of the focus application, b can be the size of the focus application window, and c can be the download speed of the electronic device; of course, a, b, and c can also be other parameters, which are not limited in this application. Figure 1 In the mapping data 101, a1, b1, c1 represent the specific parameter values of parameter a, parameter b, and parameter c respectively, a1 and a2 represent different parameter values of parameter a, and so on; when any one of the corresponding parameters a1, b1, c1 in two operation scenarios is different, it means that the two operation scenarios are different operation scenarios for the preset table query strategy. For example, a1, b1, c1 recorded in the mapping data 101 can represent that the name of the focus application is a1, the size of the focus application window is b1, and the download speed of the electronic device is c1; and a2, b2, c2 recorded in the mapping data 102 can represent that the name of the focus application is a1, the size of the focus application window is b2, and the download speed of the electronic device is c2.
[0090] The running scenes recorded in any two mapping data in the mapping table 10 are different, but the performance adjustment schemes recorded therein may be the same. For example, the running scenes recorded in the mapping data 101 to the mapping data 104 are different, but the performance adjustment schemes recorded in scene12 and scene13 are the same.
[0091] During operation, if the scene currently in which the electronic device is located exists in the mapping table, the electronic device can obtain the performance adjustment scheme corresponding to the scene from the mapping table according to the current scene, and adjust the performance of the electronic device according to the maximum power supply value of the CPU and the EPP value recorded in the performance adjustment scheme. For example, assuming that the focus application in the operation scene in which the electronic device is located is a1, the window of the focus application is b1, and the download speed of the electronic device at this time is c1, then after obtaining these three specific parameter values, the electronic device can obtain the mapping data 101 that matches the scene parameters and these three parameter values through the mapping table 10, and determine that the operation scene in which the electronic device is located at this time is scene11. At this time, the electronic device will obtain the performance adjustment scheme corresponding to the operation scene, that is, the maximum power supply level of the CPU -4 and the level of the EPP -6 recorded in the mapping data 101, and adjust the maximum power supply level of the CPU to 4 and the level of the EPP to 6 according to the performance adjustment scheme. In the subsequent operation process, when the focus application in the operation scene of the electronic device is a2, the window of the focus application is b2 and the download speed of the electronic device is c2, the electronic device will also adjust the maximum power supply level of the CPU to level 6 and the level of the EPP to level 2 according to the performance adjustment plan recorded in the mapping data 102.
[0092] Need to understand, Figure 1 The specific format of the mapping table 10 shown is only for the convenience of readers' understanding and does not represent its format in actual scenarios. For example, in actual application scenarios, the data recorded in the mapping table 10 may not exist in the electronic device in the form of a table, but may be stored in the electronic device in the form of program code. The specific format of these data in the electronic device is not limited by this application.
[0093] In addition to the above-mentioned preset table query strategy, in some embodiments, the electronic device can also use the optimal solution exploration strategy to adjust the performance of the electronic device and reduce the power consumption of the device by adjusting the maximum power supply of the CPU of the electronic device and EPP.
[0094] In order to determine the optimal performance adjustment scheme for a scene, for any scene scene_x, the electronic device can determine the optimal performance adjustment scheme for the scene scene_x based on the optimal power exploration strategy - that is, under scene scene_x, the electronic device can sort the performance adjustment schemes according to the degree of performance provided by each performance adjustment scheme (hereinafter referred to as "scheme"), and run all optional performance adjustment schemes in order from high to low in terms of performance supply. Take the 10 schemes in the aforementioned Table 3 as an example, among which scheme No. 1 has the highest performance supply, and scheme No. 10 has the lowest performance supply. Therefore, when entering the scene scene_x for the first time, the electronic device can run from the power level and EPP level provided by performance adjustment scheme No. 1, and gradually replace the scheme used with scheme No. 2, scheme No. 3, etc. in the subsequent operation process, that is, run with the power level and EPP level provided by schemes with increasingly larger numbers (i.e., increasingly lower performance supply). When the electronic device starts to use a new scheme (assuming that the scheme is numbered num_x, the smaller the number, the higher the performance provided by the scheme), the electronic device will record the start time t_start of the scheme, the running time duration_ttl, and the duration duration_delay of the electronic device being stuck when running with the scheme. Optionally, when the electronic device runs with the scheme for a period of time T without being stuck, the electronic device can start to explore the scheme whose number is adjacent to the scheme number and whose performance is lower than that of the scheme; but if the electronic device is stuck before the scheme is run for T time, the electronic device will re-explore the scheme whose number is adjacent to the scheme number and whose performance is higher than that of the scheme (i.e., the scheme numbered num_x-1) after the stuck occurs. In the present application, the scheme numbered num_x can be referred to as the "third operating parameter"; the scheme numbered num_x+1 can be referred to as the "fourth operating parameter"; the scheme numbered num_x-1 can be referred to as the "fifth operating parameter".
[0095] It is understandable that the greater the percentage of lag time when running with a solution, the less the solution can meet the performance requirements of scene_x. Based on this, when the total running time of the electronic device in scene_x reaches T totalIn this case, the electronic device can determine the optimal performance adjustment scheme for the scene based on the percentage of freeze duration corresponding to each scheme under the scene scene_x. For example, the electronic device can search from the highest performance scheme to the lower performance scheme in order of performance, and determine the lowest performance scheme among all schemes with a freeze duration percentage less than or equal to a certain threshold (for example, 0.03) as the optimal performance adjustment scheme for scene_x. It is understandable that all performance adjustment schemes less than or equal to the above threshold are schemes that will not damage the user experience, and among all performance adjustment schemes less than or equal to the above threshold, the scheme that can provide the lowest performance (i.e., the above optimal performance adjustment scheme) is also the scheme with the lowest power consumption among these schemes. Therefore, the above optimal performance adjustment scheme can reduce the power consumption of the device while meeting the performance requirements of the device.
[0096] Optionally, when the above time duration T is 30 seconds, the time duration T total Can be set to 600s.
[0097] When the total operating time of the electronic device in scene scene_x reaches T total When the electronic device is in scene_x again, the electronic device can obtain valid data corresponding to the scene, and the scene that has obtained valid data is called "valid scene", and the valid data includes: scene parameters of scene_x, multiple solutions explored under scene_x, and the proportion of freeze duration corresponding to each solution. In the subsequent operation process, when the electronic device is in scene_x again, the electronic device can obtain valid data of scene_x according to the obtained scene parameters of scene_x, and directly determine the optimal performance adjustment scheme of scene_x based on the valid data. It should be noted that for the optimal solution exploration strategy, the scene parameters used to determine the scene can be different from the parameters used to determine the scene in the preset table query strategy, which can specifically include any one or more of the following: focus application, focus application window size, focus application memory usage, whether to watch video, download speed, whether to use camera, whether to play audio, external device type, whether to use keyboard, device screen brightness, device available memory RAM, integrated graphics load rate, independent graphics load rate, hard disk write speed.
[0098] In some embodiments, when the valid data collected by the electronic device is greater than or equal to X, that is, when the valid scenes are greater than or equal to X, the electronic device can also use the valid data of multiple valid scenes obtained for training to obtain a power prediction model. After obtaining the above power prediction model, when the electronic device is in any scene, regardless of whether the scene is a scene that the electronic device has encountered before, the power prediction model can use the scene parameters of the scene as input, and output the probability of the user experience being impaired when the electronic device runs in each performance adjustment scheme in the scene. After that, the electronic device can start from the highest performance scheme from high to low, and determine the scheme with the lowest performance supply in the scheme with a probability of user damage less than a certain threshold (for example, 0.5) as the optimal performance adjustment scheme corresponding to the scene, and adjust the CPU maximum power supply and EPP according to the power gear and EPP gear in the optimal performance adjustment scheme. Specifically, the above power prediction model can be a logistic regression model, a decision tree model, a random forest model, a neural network model, a GBDT model, an XGboost model, a LightGBM model, or other types of models, which are not limited in this application.
[0099] For some electronic devices, during operation, they can simultaneously determine the performance adjustment schemes for the electronic devices according to the preset table query strategy and the optimal solution exploration strategy. However, the maximum power supply value and / or EPP of the CPU in the two performance adjustment schemes determined for the electronic device by two different strategies may be different, so the performance provided by the two performance adjustment schemes for the electronic device and the power consumption caused to the electronic device may also be different.
[0100] For example, assuming that the electronic device is currently in scene 11, the electronic device can query the mapping table stored therein through the preset table query strategy, determine the mapping data corresponding to scene 11 from the mapping table through the name of the current focus application, the size of the focus application window and the download speed of the electronic device, and directly read the CPU maximum power supply level - 4 and EPP level - 2 corresponding to scene 11 from the mapping data. In addition, the electronic device can run in scene 11 with multiple performance adjustment schemes through the optimal solution exploration strategy, and determine the optimal performance adjustment scheme for scene 11 according to the freeze duration of each scheme, or when the above scene 11 is a valid scene, the electronic device can also directly determine the optimal performance adjustment scheme for scene 11 based on the valid data of scene 11; or, when the electronic device obtains sufficient valid data based on the optimal solution exploration strategy and trains the above power prediction model, the electronic device can also use the scene parameters of scene 11 (the scene parameters mentioned here can be different from the parameters used to determine the running scene in the preset table query strategy) and the above power prediction model to determine scene 11, here it is assumed that the optimal performance adjustment plan determined by the optimal plan exploration strategy for scene11 finally records the maximum power supply of the CPU as 6 gears and the EPP gear as 2 gears, then the optimal performance adjustment plan and the performance adjustment plan determined by the preset table query strategy for scene11 are different plans, and the performance provided by the two performance adjustment plans for the electronic device is also different. How to determine the target plan from the different performance adjustment plans obtained by different strategies, and adjust the maximum power supply value of the CPU and the EPP value of the electronic device according to the target plan, is the key problem to be solved in this application.
[0101] In response to the above problems, an embodiment of the present application provides a performance adjustment method, which can determine the performance requirement of the current scenario in combination with the specific scenario of the electronic device, and further determine a target solution from the performance adjustment solutions obtained through different strategies in combination with the performance requirement of the scenario, and adjust the maximum supply power value and EPP value of the CPU of the electronic device based on the target solution, while improving the adaptability between the performance adjustment solution used and the operating scenario, reducing the power consumption of the electronic device and ensuring the user experience.
[0102] Figure 2 The flow chart of the performance adjustment method provided by the embodiment of the present application is exemplified. Figure 2 , the method may include the following steps:
[0103] S201. The electronic device determines a first performance adjustment solution based on a first strategy.
[0104] The electronic device may be a mobile phone, a vehicle-mounted device (such as an on-board unit (OBU)), a tablet computer (pad), a computer with data transceiver function (such as a laptop, a PDA, etc.), a mobile Internet device (MID), a terminal in a smart city, a terminal in a smart home, a terminal device in a 5G network, or a terminal device in a public land mobile network (PLMN) to be evolved in the future, etc. It is understandable that the present application does not limit the specific form of the electronic device.
[0105] The above-mentioned first strategy may be an optimal solution exploration strategy. When the above-mentioned first strategy is an optimal solution exploration strategy, the electronic device may run in the current scenario in accordance with the size of the performance that can be provided by each performance adjustment scheme, from high to low, with multiple optional performance adjustment schemes, and determine the optimal performance adjustment scheme for the current scenario based on the proportion of the freeze duration when running with each performance adjustment scheme. For example, the electronic device may search from the performance adjustment scheme that can provide the highest performance to the performance adjustment scheme that provides lower performance in order according to the performance level, and determine the scheme with the lowest performance that can be provided among all performance adjustment schemes whose freeze duration ratio is less than or equal to a certain threshold (for example, 0.03) as the optimal performance adjustment scheme for the current scenario, and the optimal performance adjustment scheme is the above-mentioned first performance adjustment scheme.
[0106] It should be noted that the above-mentioned multiple performance adjustment schemes all include the gears of the maximum power supplyable by the CPU and the EPP gears that need to be adjusted, and the maximum power supplyable by the CPU and / or the EPP gears in any two performance adjustment schemes are different. In addition, if there are N1 adjustable gears for the maximum power supplyable by the CPU of the electronic device and there are N2 adjustable gears for the EPP of the electronic device, then any one of the N1 adjustable gears and any one of the N2 adjustable gears can be combined into one of the above-mentioned multiple optional performance adjustment schemes. It can be understood that in this case, the total number of schemes in the above-mentioned multiple optional performance adjustment schemes can be a maximum of (N1×N2). For details, please refer to the relevant description of the above-mentioned Table 3, which will not be repeated here. In the present application, the above-mentioned "first performance adjustment scheme" can be referred to as the "first operating parameter", and the above-mentioned "multiple performance adjustment schemes" can be referred to as "multiple operating parameters".
[0107] Combined with the above description, it can be seen that when the total operating time of the electronic device in a scenario reaches T totalIn the case of a scene, the electronic device can record a valid data corresponding to the scene. The scene that has obtained valid data is called a "valid scene", and the valid data includes: a first scene parameter set, multiple performance adjustment schemes explored in the scene (including the maximum power supply level of the CPU and the EPP level), and the proportion of freeze duration corresponding to each performance adjustment scheme. It should be noted that the above-mentioned first scene parameter set may include any one or more of the following: focus application, the size of the focus application window, the memory usage rate of the focus application, whether to watch videos, download speed, whether to use a camera, whether to play audio, external device type, whether to use a keyboard, device screen brightness, device available memory RAM, integrated graphics load rate, independent graphics load rate, hard disk write speed. In the subsequent operation process, when the electronic device is in this scene again, the electronic device does not need to use the above-mentioned optimal solution exploration strategy again to obtain the optimal performance adjustment solution for the scene. It can directly determine the optimal performance adjustment solution for the scene based on the valid data of the scene.
[0108] When the valid data collected by the electronic device is greater than or equal to X, the electronic device can also use the valid data of multiple valid scenarios to train and obtain a power prediction model. After obtaining the power prediction model, the electronic device can also determine the optimal performance adjustment plan of the electronic device in a certain scenario based on the power model.
[0109] Therefore, in an optional implementation, the first strategy may also be other strategies derived from the optimal exploration strategy. For example, the first strategy may also be to directly determine the optimal performance adjustment plan for the current scene by searching for valid data of the current operating scene. Alternatively, the first strategy may be to determine the optimal performance adjustment plan for the current scene based on the scene parameters of the current scene (that is, all current parameter values of each parameter in the first scene parameter set) and the power prediction model when the electronic device obtains sufficient valid data based on the optimal solution exploration strategy and trains the power prediction model, that is, the first performance adjustment plan.
[0110] S202: The electronic device determines a second performance adjustment solution based on a second strategy.
[0111] The second strategy may be a preset table query strategy. When the second strategy is a preset table query strategy, a mapping table recording the correspondence between various operating scenarios and performance adjustment schemes may be stored in the electronic device, and each operating scenario included in the mapping table may be uniquely determined by the parameters in the second scenario parameter set. Optionally, the second scenario parameter set may be included in the first scenario parameter set.
[0112] Specifically, the electronic device can obtain the current parameter value of each parameter in the above-mentioned second scenario parameter set. For example, assuming that the above-mentioned second scenario parameter set contains three parameters, which are the name of the focus application, the size of the focus application window, and the download speed of the electronic device, and the current focus application of the electronic device is "WeChat", the size of the focus application window is "10", and the current download speed of the electronic device is 100, then the electronic device can query in the above-mentioned mapping table according to (WeChat, 10, 100). When a parameter value recorded in a mapping data is found to be (WeChat, 10, 100), the electronic device will determine the performance adjustment plan recorded in the mapping data as the above-mentioned second performance adjustment plan. The second performance adjustment plan includes the gear of the maximum power supply of the CPU and the EPP gear that need to be adjusted. For details, please refer to the aforementioned Figure 1 In this application, the above-mentioned "second performance adjustment scheme" may be referred to as "second operating parameters".
[0113] S203: The electronic device determines the current operating scenario.
[0114] The electronic device determines whether the current operating scenario is a primary scenario or a secondary scenario by detecting whether a primary event occurs.
[0115] When a primary event occurs, it indicates that the electronic device is in a primary scene, and the electronic device can execute step 204 ; otherwise, it indicates that the electronic device is in a secondary scene, and the electronic device can execute step 205 .
[0116] S204: When the operating scenario is a level one scenario, the electronic device determines the performance adjustment scheme with a greater performance supply degree between the first performance adjustment scheme and the second performance adjustment scheme as a target scheme.
[0117] like Figure 3 As shown, the electronic device can determine whether the mouse button is clicked, whether the keyboard shortcut key is operated, and whether the focus application is switched through the corresponding interface; in addition, the electronic device can also obtain the CPU load status and whether the electronic device is in game mode through the corresponding interface. When a first-level event such as "mouse click" or "keyboard shortcut key input" is triggered, the electronic device can determine that the current running scene is a first-level scene.
[0118] Based on the high performance requirements of the electronic device in the first-level scenario, the electronic device will determine the performance adjustment scheme with a higher performance supply in the first performance adjustment scheme and the second performance adjustment scheme as the target scheme, and give priority to the performance requirements of the electronic device in power consumption and performance.
[0119] Specifically, the method for judging the performance size of the above-mentioned first performance adjustment scheme and the above-mentioned second performance adjustment scheme is: first, compare the gear sizes of the maximum power that can be supplied by the CPU in the two performance adjustment schemes; if the gear sizes of the maximum power that can be supplied by the two CPUs recorded in the two performance adjustment schemes are different, then determine that the performance adjustment scheme with a larger gear of the maximum power that can be supplied by the CPU is the performance adjustment scheme with a higher degree of performance supply among the two performance adjustment schemes; if the gear sizes of the maximum power that can be supplied by the two CPUs recorded in the two performance adjustment schemes are the same, then further compare the EPP gear sizes in the two performance adjustment schemes, and determine that the performance adjustment scheme with a smaller EPP gear is the performance adjustment scheme with a higher degree of performance supply among the two performance adjustment schemes.
[0120] In the following N seconds, the electronic device will always keep the gear of the maximum power supply of the electronic device's CPU and the EPP gear as the gear of the maximum power supply of the CPU and the EPP gear corresponding to the above target solution. If the electronic device triggers a level one event again within N seconds, the electronic device will restart the timing starting from the triggering time of the second level one event, and in the following N seconds, the electronic device will still keep the gear of the maximum power supply of the electronic device's CPU and the EPP gear as the gear of the maximum power supply of the CPU and the EPP gear corresponding to the above target solution, and so on, until the electronic device does not trigger a level one event within N consecutive seconds, the electronic device will determine that the level one scenario has ended, and the operating scenario is now a level two scenario, then the electronic device can re-determine the current scenario performance adjustment solution for the electronic device through the above preset table query strategy and the above optimal solution exploration strategy in the level two scenario, and execute the subsequent step S205. Specifically, the above N can be 5 or other values, and this application is not limited to this.
[0121] S205: When the operating scenario is the secondary scenario, the electronic device determines the performance adjustment scheme with a smaller performance supply degree among the first performance adjustment scheme and the second performance adjustment scheme as the target scheme.
[0122] When the electronic device does not detect a primary event, the electronic device may determine that the operating scenario is a secondary scenario.
[0123] Since the secondary scenario includes lower requirements for the performance of the electronic device, the electronic device determines the performance adjustment scheme with a smaller performance supply degree in the first performance adjustment scheme and the second performance adjustment scheme as the target scheme. The performance size judgment method of the first performance adjustment scheme and the second performance adjustment scheme can refer to the above description and will not be repeated here.
[0124] S206: The electronic device adjusts the CPU maximum supply power and EPP according to the CPU maximum supply power level and EPP level in the above target solution.
[0125] After obtaining the above target solution, the electronic device can adjust the CPU maximum supply power and EPP according to the CPU maximum supply power level and EPP level in the above target solution. Specifically, the electronic device can adjust the CPU maximum supply power level of the electronic device to the CPU maximum supply power level recorded in the above target solution, and adjust the EPP level to the EPP level recorded in the above target solution.
[0126] It can be understood that in some embodiments, the CPU power level and the EPP level recorded in the above-mentioned first performance adjustment scheme and the above-mentioned second performance adjustment scheme may be the same. In this case, the two performance adjustment schemes have the same performance supply level and power consumption for the electronic device, so the electronic device can randomly determine any one of the two performance adjustment schemes as the above-mentioned target scheme.
[0127] In addition, since the mapping table used by the preset table query strategy is stored in the electronic device when it leaves the factory, the mapping table only records the correspondence between a limited number of operating scenarios and their performance adjustment plans, and the mapping table will not be updated during the operation of the electronic device. Therefore, in some embodiments, when the operating scenario of the electronic device does not exist in the above-mentioned mapping table, the electronic device may not be able to determine the above-mentioned second performance adjustment plan through the preset table query strategy. However, the electronic device can still use the above-mentioned optimal solution exploration strategy to obtain the above-mentioned second performance adjustment plan. In this case, the electronic device can directly adjust the CPU maximum supply power and EPP according to the CPU maximum supply power gear and EPP gear in the above-mentioned second performance adjustment plan.
[0128] Since the electronic device has sufficient power supply in the charging state, the electronic device does not need to adjust the performance in the charging state, and can always maintain the performance at the maximum limit (for example, adjusting the CPU maximum supply power gear to the maximum gear and the EPP gear to the lowest gear), giving priority to ensuring the performance requirements of the electronic device. Therefore, in some embodiments, the electronic device can execute this method only when it is not charged.
[0129] Combined with the above description, it can be seen that unlike the preset table query strategy that determines the performance adjustment plan for the operating scenario by directly reading the table, the optimal solution exploration strategy needs to explore multiple solutions before determining the performance adjustment plan for an operating scenario, which takes more time. Especially when the number of optional gears for the maximum power supply of the CPU of the electronic device and the number of optional gears of the EPP are very large, the number of performance adjustment plans that the optimal solution exploration strategy needs to explore in any operating scenario is also very large, so the time cost of the electronic device using the optimal solution exploration strategy to determine the optimal performance adjustment plan will be very large.
[0130] In response to the above-mentioned defects, the present application improves the above-mentioned optimal solution exploration strategy. In the process of the electronic device using the optimized optimal solution exploration strategy to determine the optimal performance adjustment solution for the scenario, after exploring a certain performance adjustment solution, the electronic device can delete the remaining performance adjustment solutions that have not been explored based on whether the performance adjustment solution has any lag, thereby narrowing the scope of the next exploration, which can effectively reduce the time cost of the electronic device using the optimal solution exploration strategy to determine the optimal performance adjustment solution.
[0131] Figure 4 The following is an exemplary diagram showing the process of determining the optimal performance adjustment solution provided by the present application. Figure 4 , the method may include the following steps:
[0132] S401. The electronic device obtains a set of performance adjustment solutions.
[0133] The electronic device may be a mobile phone, a vehicle-mounted device (e.g., an on-board unit (OBU)), a tablet computer (pad), a computer with data transceiver function (e.g., a laptop, a PDA, etc.), a mobile Internet device (MID), a terminal in a smart city, a terminal in a smart home, a terminal device in a 5G network, or a terminal device in a public land mobile network (PLMN) to be evolved in the future. It is understood that the present application does not limit the specific form of the electronic device. Specifically, the electronic device may be the electronic device in the aforementioned description.
[0134] The above performance adjustment scheme set may be a performance adjustment scheme (hereinafter referred to as a “scheme”) obtained by combining all gears of the maximum power supplyable by the CPU of the electronic device with all gears of the EPP.
[0135] Optionally, the electronic device may number the optional solutions in the above performance adjustment solution set according to the degree of performance that can be provided, wherein the solution with a smaller number has a higher performance that can be provided. Taking the above Table 3 as an example, the performance that can be provided by the solutions from No. 1 to No. 10 in Table 3 gradually decreases, but the power consumption also gradually decreases.
[0136] S402: The electronic device obtains a median solution and explores the median solution in the current scenario.
[0137] The median solution mentioned above may be any one of the above performance adjustment solution set.
[0138] Preferably, the median solution can be a solution in the set of performance adjustment solutions that is ranked in the middle in terms of the performance that can be provided. Specifically, the "middle" mentioned here can be reflected as follows: after the electronic device numbers the solutions in the set of performance adjustment solutions according to the degree of performance that can be provided, assuming that the solution with the highest performance that can be provided is numbered num_max and the solution with the lowest performance that can be provided is numbered num_min, then the median solution can be determined as numbered Or number The scheme of , where " / " represents the division operation, The floor symbol represents the largest integer that is smaller than the number in the symbol; Indicates the rounding up symbol, and indicates the smallest integer greater than or equal to the number in the symbol. In this way, the electronic device can divide all the solutions in the above performance adjustment solution set into two basically even parts through the median solution. When the above performance adjustment solution set is updated according to the median solution each time in the future, too many solutions will not be discarded at one time, resulting in the final optimal performance adjustment solution being incompatible with the current operating scenario, and the electronic device can effectively shorten the exploration time of the performance adjustment solution set in a single time.
[0139] Taking Table 3 as an example, assuming that all the solutions included in Table 3 are all the solutions in the above optional performance adjustment solution set, since the performance adjustment solution No. 1 has the highest performance among all the solutions in Table 3, and the performance adjustment solution No. 10 has the lowest performance, then the above median adjustment solution can be determined as No. 5 (i.e. ) or the scheme numbered 6 (i.e. )’s plan.
[0140] S403. If no lag occurs during the electronic device's exploration of the median solution, the performance adjustment solutions in the performance adjustment solution set whose performance supply level is greater than and equal to the median solution are deleted; if lag occurs during the electronic device's exploration of the median solution, the performance adjustment solutions in the performance adjustment solution set whose performance supply level is less than and equal to the median solution are deleted, until the number of performance adjustment solutions in the performance adjustment solution set is 1.
[0141] Specifically, the electronic device can set an operating time T. In the current scenario, if the above-mentioned median solution is run for T time and no freeze occurs, the electronic device can delete the solution with a performance supply greater than or equal to the above-mentioned median solution (including the above-mentioned median solution) in the above-mentioned performance adjustment solution set; if the above-mentioned median solution has not been run for T time but the electronic device freezes, the electronic device can delete the solution with a performance supply less than or equal to the above-mentioned median solution (including the above-mentioned median solution) in the above-mentioned performance adjustment solution set. In addition, after the electronic device completes the exploration of the above-mentioned median solution, it will also save the total operating time and freeze duration (freeze duration ratio) of running with the median solution.
[0142] It can be understood that for a scenario, if an electronic device does not freeze when running with a certain solution, it can be considered that the performance supply of the solution is much greater than the performance requirements of the current scenario. The electronic device can determine that the solution and solutions with a greater performance supply than the solution are most likely not the optimal performance adjustment solution for the current scenario, so the electronic device does not need to explore these solutions in the subsequent process. Correspondingly, if an electronic device freezes when running with a certain solution, it can be considered that the performance supply of the solution cannot meet the performance requirements of the current scenario. The electronic device can also determine that the solution and solutions with a smaller performance supply than the solution are most likely not the optimal performance adjustment solution for the current scenario, so the electronic device does not need to explore these solutions in the subsequent process.
[0143] After reducing the performance supply schemes in the above-mentioned performance adjustment scheme set by utilizing the jamming of the electronic device when exploring the above-mentioned median scheme, the electronic device can re-determine a new median scheme according to the above-mentioned scheme based on the new performance adjustment scheme set, and reduce the schemes in the new performance adjustment scheme set according to the above-mentioned method as needed, that is, using the new median scheme, and so on, until there is only one scheme left in the final performance adjustment scheme set, in which case the electronic device is deemed to have completed a round of exploration of all optional performance adjustment schemes of the electronic device.
[0144] Figure 5The example shows the process of an electronic device exploring all optional performance adjustment solutions. Figure 5 As shown, assuming that the five power levels of the maximum power that the CPU of the electronic device can supply are Pm, 0.8Pm, 0.6Pm, 0.4Pm, and 0.2Pm, and the two power levels of the EPP are Em and 0.2Em, the electronic device can provide Figure 5 There are all 10 performance adjustment schemes shown in the scheme table 50. Each scheme has a corresponding number. The performance provided by the performance adjustment scheme No. 1 is the largest among the 10 performance adjustment schemes, and the power consumption caused by it to the electronic device is also the largest; correspondingly, the performance provided by the performance adjustment scheme No. 10 is the smallest among the 10 performance adjustment schemes, and the power consumption caused by it to the electronic device is also the smallest. For ease of understanding, the following only combines Figure 5 The whole exploration process is described by the scheme number of each performance adjustment scheme in . Here, it is assumed that the rule of rounding down is adopted each time the median scheme is obtained, then:
[0145] When the median solution is first obtained, that is, when the electronic device begins to explore, Figure 5 The solution set 51 (including solutions 1-10) in the above description can be the performance adjustment solution set. In this case, the performance adjustment solution No. 1 has the highest performance, and the performance adjustment solution No. 10 has the lowest performance. In this exploration, num_max = num_max1 = 1, num_min = num_min1 = 10, and the number of the median adjustment solution is
[0146] Therefore, the electronic device will explore plan No. 5, that is, run it with the CPU gear and EPP gear recorded in plan No. 5. Here, it is assumed that the electronic device has run for T time with the CPU gear and EPP gear recorded in plan No. 5 without any lag, then the electronic device will determine that the performance supply of plan No. 5 is much greater than the performance requirement of the current scene. Therefore, the electronic device can determine that plan No. 5 and plans No. 1-4, whose performance supply is greater than plan No. 5, are unlikely to be the optimal performance adjustment plans for the current scene. Therefore, the electronic device can eliminate plans No. 1-5 in plan set 51, and obtain Figure 5 The solution set 52 in the example is shown in FIG. 5. It should be understood that the "elimination" mentioned here may not be a real deletion, but means that these solutions do not need to be explored in the next exploration. In addition, the electronic device also saves the running time (T time) and the freezing time (0 time) of running with solution No. 5.
[0147] after, Figure 5The solution set 52 (including solutions 6-10) in the above description is the performance adjustment solution set. Since the number of solutions in the set is not 1 at this time, the electronic device will re-acquire a new median solution based on the solution set 52. When the median solution is obtained for the second time, the performance adjustment solution No. 6 in the performance adjustment solution set has the highest available performance, and the performance adjustment solution No. 10 has the lowest available performance. Then in this exploration, num_max=num_max2=6, num_min=num_min2=10, then the number of the above median adjustment solution is
[0148] Therefore, the electronic device will explore plan No. 8, that is, run it with the CPU gear and EPP gear recorded in plan No. 8. Here it is assumed that the electronic device has run for T1 time (T1≤T) with the CPU gear and EPP gear recorded in plan No. 8 and has been stuck for T2 time (T2≤T1). Then the electronic device will determine that the performance supply of plan No. 8 is far less than the performance requirement of the current scenario. Therefore, the electronic device can determine that plan No. 8 and plans No. 9-10, which have a smaller performance supply than plan No. 8, are most likely not the optimal performance adjustment plans for the current scenario. Therefore, the electronic device can eliminate plans No. 8-10 in plan set 52 and obtain Figure 5 In the scheme set 53. In addition, the electronic device also saves the running time (T1 time) and the freezing time (T2 time) of running with scheme No. 8.
[0149] Similarly, after this, Figure 5 The solution set 53 (including solution No. 6 and solution No. 7) is the performance adjustment solution set in the above description. Since the number of solutions in the set is still not 1, the electronic device will re-acquire a new median solution based on solution set 53. When the median solution is obtained for the third time, the performance adjustment solution No. 6 in the performance adjustment solution set has the highest available performance, and the performance adjustment solution No. 7 has the lowest available performance. So in this exploration, num_max=num_max3=6, num_min=num_min3=10, then the number of the above median adjustment solution is
[0150] Therefore, the electronic device can explore plan No. 6, that is, run it with the CPU gear and EPP gear recorded in plan No. 6. Here it is assumed that the electronic device has run for T time with the CPU gear and EPP gear recorded in plan No. 6 without any lag, then the electronic device will determine that the performance supply of plan No. 6 is much greater than the performance requirement of the current scene, and at this time there is no solution in the solution set 53 with a performance supply greater than that of plan No. 6, then the electronic device can determine that plan No. 6 is very unlikely to be the optimal performance adjustment solution for the current scene. Therefore, the electronic device can eliminate plan 6 from the solution set 53 and obtain Figure 5 In the scheme set 54. In addition, the electronic device also saves the running time (T time) and the freezing time (0 time) of running with scheme No. 6.
[0151] after, Figure 5 The solution set 54 (including solution No. 7) in is the performance adjustment solution set in the above description. Since the number of solutions in the set is 1 at this time, this round of exploration ends.
[0152] In the present application, all 10 performance adjustment schemes shown in the above scheme table 50 can be called the "first set", the performance adjustment scheme No. 5 included in the first set can be called the "sixth operating parameter", the performance adjustment schemes No. 6-10 included in the scheme set 52 can be called the "second set", and the performance adjustment scheme No. 6 included in the second set can be called the "seventh operating parameter".
[0153] S404: The electronic device updates the performance adjustment schemes in the performance adjustment scheme set to all optional performance adjustment schemes, and explores the performance adjustment schemes in the performance adjustment scheme set again until the operating time of the electronic device in the current scenario reaches T total .
[0154] In order to avoid the influence of the randomness of the data on the accuracy of the result, in the current scenario, the electronic device can perform multiple rounds of exploration for all optional performance adjustment solutions according to the operations in the above steps S401 to S403. That is, after each round of exploration, the electronic device will update the solutions in the above performance adjustment solution set to all optional performance adjustment solutions of the electronic device, and use the above method to explore all performance adjustment solutions again until the operation time of the electronic device in the current scenario reaches T total In each round of exploration, the electronic device can obtain multiple different median solutions; when the operation using any median solution ends, the electronic device will update the freeze duration ratio corresponding to the median solution (or save the operation duration and freeze duration of the median solution).
[0155] Specifically, the above T totalIt can be 600s, 10min or other durations, which can be specifically set according to the number of all optional performance adjustment schemes of the electronic device, and this application does not limit this.
[0156] S405: Determine an optimal performance adjustment scheme based on the proportion of freezing time of the electronic device under each optional performance adjustment scheme.
[0157] It is understandable that the greater the percentage of lag time when running with a performance adjustment solution, the less the solution can meet the performance requirements of the scenario. Therefore, when the total running time of the electronic device in the current scenario reaches T total In this case, the electronic device can determine the optimal performance adjustment plan for the scenario based on the proportion of the freezing time corresponding to each plan in the scenario.
[0158] Optionally, the electronic device can search from the solution with the highest performance supply to the solutions with lower performance supply in order of performance, and determine the solution with the lowest performance supply among all optional performance adjustment solutions whose freeze duration ratio is less than or equal to a certain threshold (for example, 0.03) as the optimal performance adjustment solution for the current scenario.
[0159] In this embodiment, when the total operating time of the electronic device in a scenario reaches T total When the electronic device uses this method to explore solutions for the scene, the data obtained can be called the valid data of the scene. The scene that has obtained valid data is called the "valid scene". The valid data includes: the scene parameters of the scene, multiple solutions explored in the scene, and the percentage of freezing time corresponding to each solution. In the subsequent operation process, when the electronic device is in a valid scene again, the electronic device can obtain the valid data of the valid scene according to the obtained scene parameters, and directly determine the optimal performance adjustment solution for the valid scene based on the valid data.
[0160] In addition, since the electronic device does not explore all the optional performance adjustment solutions in the above solution exploration process, even if the total operating time of the electronic device in the current scenario reaches T total , nor does it mean that each performance adjustment scheme in the valid data of the current scene has the percentage of jamming duration saved. In this case, the electronic device can first search from high to low according to the performance supply degree of the scheme in the schemes that have the percentage of jamming duration saved, until the first performance adjustment scheme with a percentage of jamming duration greater than a certain threshold (for example, 0.03) is found, and the scheme with a number adjacent to the number of the performance adjustment scheme and a higher performance supply degree than the scheme (regardless of whether the electronic device obtains the percentage of jamming duration of this scheme) is determined as the optimal performance adjustment scheme for the current scene.
[0161] like Figure 6As shown, it is assumed that scene 601 is the current operating scene of the electronic device, and data 60 is the valid data of scene 601. It can be seen that there are multiple schemes in the valid data of scene 601 that do not record the proportion of the jamming duration, such as scheme 1, scheme 2, etc. Assuming the above threshold is 0.03, if the scheme with the lowest performance supply among all the optional schemes with a jamming duration ratio less than or equal to 0.03 is directly determined as the optimal performance adjustment scheme for the current scene, then the optimal performance adjustment scheme determined is scheme 3. However, by observing the jamming duration ratio of each scheme in data 60, it can be seen that the jamming duration ratio of scheme 5 is 0.032, which is very close to the threshold of 0.03, but since scheme 4 has not been explored, the optimal performance adjustment scheme finally determined is scheme 3. In fact, the jamming duration ratio of scheme 4 is likely to be less than 0.03 and closer to 0.03 than 0.01. In other words, scheme 4 will not damage the user experience, and the power consumption caused to the electronic device is lower than that of scheme 3. Therefore, optionally, the electronic device can first search among Plans 3, 5, 6, 7, and 9 according to the performance supply levels of the plans from high to low, and determine the first performance adjustment plan with a freeze duration ratio greater than 0.03, namely, Plan 5; thereafter, the electronic device can determine Plan 4, which is adjacent to Plan 5 and has a higher performance supply level than Plan 5, as the optimal performance adjustment plan for the current scenario.
[0162] Similarly, when the valid data collected by the electronic device based on this solution is greater than or equal to X, that is, when the valid scenes are greater than or equal to X, the electronic device can also use the valid data of multiple valid scenes obtained for training to obtain a power prediction model. After obtaining the above power prediction model, when the electronic device is in any scene, regardless of whether the scene is a scene that the electronic device has encountered before, the power prediction model can use the scene parameters of the scene as input, and output the probability of the user experience being impaired when the electronic device runs in each performance adjustment scheme in the scene. After that, the electronic device can start from the highest performance scheme from high to low, and determine the scheme with the lowest performance supply in the scheme with a probability of user damage less than a certain threshold (for example, 0.5) as the optimal performance adjustment scheme corresponding to the scene, and adjust the maximum power and EPP that the CPU can supply according to the power gear and EPP gear in the optimal performance adjustment scheme. Specifically, the above power prediction model can be a logistic regression model, a decision tree model, a random forest model, a neural network model, a GBDT model, an XGboost model, a LightGBM model, or other types of models, which are not limited in this application.
[0163] Of course, the optimal performance adjustment plan determined based on this solution can also be compared with the performance adjustment plan determined by the preset table query strategy. The target plan can be determined from these two plans based on the performance requirements of the scenario, and the maximum supply power value of the CPU of the electronic device and the EPP value can be adjusted based on the target plan. For details, please refer to the aforementioned relevant instructions on steps S203-S206, which will not be repeated here.
[0164] Figure 7 A system architecture provided by an embodiment of the present application is shown, which can be used to determine a target solution among different performance adjustment solutions determined by different strategies, and adjust the performance of the electronic device according to the maximum power supply level of the CPU and the EPP level in the target solution. Figure 7 As shown, the electronic device 100 may be the electronic device provided by the present application in the foregoing description.
[0165] Specifically, the electronic device 100 may include a data acquisition module 1001, a data processing module 1002, a data storage module 1003, an execution module 1004, and a charging module 1008; wherein:
[0166] The data collection module 1001 is used to collect effective scene data in the above optimal performance exploration strategy. The specific collection method can refer to the relevant description of step S101 in the above method embodiment, which will not be repeated here.
[0167] The data processing module 1002 is used to pre-process all valid data collected by the data collection module 1001. For example, the running time and the freezing time corresponding to each performance adjustment scheme in the valid data are converted into the freezing time ratio of the performance adjustment scheme.
[0168] The data storage module 1003 is used to store the valid data collected by the data collection module 1001 and the data obtained when the data processing module 1002 pre-processes the valid data. In addition, the data storage module 1003 is also used to store the mapping table between the scenarios and performance adjustment solutions required to execute the preset table query strategy.
[0169] The execution module 1004 can obtain the valid data stored in the data storage module 1003, and determine the first performance adjustment plan for the current running scenario based on the valid data. Specifically, after obtaining the valid data of the running scenario, the calculation module 1005 in the execution module 1004 can search based on the valid data of the running scenario, and determine the performance adjustment plan with the lowest performance supply level among the performance adjustment plans whose freeze duration ratio is less than or equal to a certain threshold (for example, 0.03) as the first performance adjustment plan. The calculation module 1005 can also obtain the mapping table stored in the data storage module 1003, and determine the second performance adjustment plan for the current running scenario based on the mapping table.
[0170] After obtaining the above-mentioned first performance adjustment plan and the second performance adjustment plan, the calculation module can also compare the performance availability of the two plans, and send the comparison results, the above-mentioned first performance adjustment plan and the second performance adjustment plan to the performance adjustment module; the specific comparison method can refer to the above description and will not be repeated here.
[0171] After receiving the above-mentioned comparison result, the above-mentioned first performance adjustment scheme and the second performance adjustment scheme, the performance adjustment module 1007 can determine the current operation scene of the electronic device through the I / O interface 1006. For example, when the user operates through the interface provided by the I / O interface 1006, such as clicking a mouse button or inputting an operation through a keyboard shortcut key, it can be regarded as the electronic device 100 triggering a first-level event, and the operation scene of the electronic device 100 at this time is a first-level scene. When the operation scene of the electronic device is a first-level scene, the I / O interface 1006 can send corresponding instructions or information to the performance adjustment module 1007, and the performance adjustment module 1007 can use the above-mentioned first performance adjustment scheme and the second performance adjustment scheme, according to the above-mentioned comparison result, the CPU maximum power supply gear and the EPP gear of the scheme with a greater performance supply degree as a reference for performance adjustment.
[0172] Correspondingly, when the operating scenario of the electronic device is the secondary scenario, that is, no instructions are issued in the I / O interface 1006, and the electronic device is not in game mode and the CPU is not in a high-load state, the performance adjustment module 1007 can use the above-mentioned comparison results, the first performance adjustment scheme and the second performance adjustment scheme, the CPU maximum power supply level and the EPP level of the scheme with a lower performance supply level as a reference for performance adjustment.
[0173] In addition, specifically, the performance adjustment module 1007 may exist in the electronic device 100 in the form of program code, which may include one or more storage addresses, which are used to record the gear value of the current maximum power supplyable by the CPU of the electronic device and the gear value of the current EPP. When the performance adjustment module 1007 determines the instruction or information of the gear value of the maximum power supplyable by the CPU and / or the EPP gear that needs to be adjusted, the performance adjustment module 1007 may change the gear value of the current maximum power supplyable by the CPU of the electronic device and / or the gear value of the EPP based on the above storage address to complete the adjustment of the performance of the electronic device.
[0174] Optionally, the performance adjustment module 1007 may also receive a control instruction issued by the charging module 1008, which is used to indicate whether the electronic device 100 is currently in a charging state. When the control instruction indicates that the electronic device 100 is currently in a charging state, the performance adjustment module 1007 may no longer adjust the performance of the electronic device based on the performance adjustment scheme issued by the calculation module 1005. That is, when the electronic device 100 is in a charging state, the power supply is sufficient, and the performance adjustment module 1007 can directly adjust the performance of the electronic device to the maximum extent, giving priority to the performance requirements of the electronic device. When the control instruction indicates that the electronic device 100 is currently in an uncharged state, the performance adjustment module 1007 will once again use the performance adjustment scheme and the comparison result issued by the calculation module 1005 as a benchmark, and adjust the performance of the electronic device 100 according to the final target scheme to ensure the balance between the performance and power consumption of the electronic device 100.
[0175] Understandably, Figure 7 This is only a schematic diagram of a system architecture provided by an embodiment of the present application. Figure 7 The positional relationship between the devices, components, modules, etc. shown in the figure does not constitute any limitation. Figure 7 In the embodiment, the data storage module 1003 is an internal memory in the electronic device 100. In other cases, the data storage module 1003 may also be placed outside the electronic device 100.
[0176] Next, the electronic device provided by this application is introduced.
[0177] The electronic device may be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA) or a dedicated camera (such as a SLR camera, a card camera), etc. The present application does not impose any restrictions on the specific type of the electronic device.
[0178] Figure 8 The structure of the electronic device is exemplarily shown.
[0179] The electronic device 100 may 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, an earphone interface 170D, a button 190, an indicator 192, a camera 193, a display screen 194, etc.
[0180] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0181] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0182] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0183] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0184] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0185] The power management module 141 is used 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, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0186] 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.
[0187] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0188] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0189] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0190] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0191] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0192] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0193] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0194] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0195] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand 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, such as storing music, video and other files in the external memory card.
[0196] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.
[0197] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0198] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0199] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0200] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0201] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0202] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0203] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0204] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.
[0205] The processor 110 is used to determine a target solution among different performance adjustment solutions determined by different strategies, and adjust the performance of the electronic device according to the gear of the maximum power supply of the CPU and the EPP gear in the target solution. The specific operation can refer to the above Figure 2 , Figure 4 The electronic device 100 can store the mapping table required for the preset table query strategy and the valid data of each operating scenario obtained based on the optimal performance adjustment solution exploration strategy in the memory of the processor 110, or in the external memory connected through the external memory interface 120.
[0206] During the operation of the electronic device 100, if the electronic device 100 is in a charging state, the charging management module 140 can send a first message to the processor 110, and the first information is used to notify the processor 110 that the electronic device 100 is currently in a charging state, so that the processor 110 keeps the maximum power supply level of the CPU of the electronic device at the maximum level and keeps the EPP level at the minimum level.
[0207] An embodiment of the present application also provides an electronic device, which includes: one or more processors and a memory; wherein the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the method shown in the aforementioned embodiment.
[0208] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.
[0209] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.
[0210] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
Claims
1. A performance adjustment method, characterized in that: include: Entering the first scene is detected; Determine a first operating parameter according to valid data of the first scenario, where the valid data of the first scenario includes an operating duration and a freeze duration respectively running with a plurality of operating parameters under the first scenario; Among them, one operating parameter includes the maximum power that can be supplied by the CPU and the performance-energy efficiency ratio; the first operating parameter is the operating parameter with the lowest performance supply degree among the operating parameters whose percentage of the freezing duration during operation is less than or equal to the first threshold in the valid data of the first scenario; the freezing duration percentage is the ratio of the freezing duration to the operation duration, and the performance supply degree is determined by the maximum power that can be supplied by the CPU and the performance-energy efficiency ratio; Determine a second operating parameter according to a mapping table, the mapping table including operating parameters corresponding to a plurality of scenes respectively, the second operating parameter being an operating parameter corresponding to the first scene in the mapping table; the number of scene parameters of the first scene in the mapping table is less than the number of scene parameters of the first scene in the valid data; If the first scene is a secondary scene, the operating parameter is adjusted to the one with a smaller performance provision degree between the first operating parameter and the second operating parameter, and the secondary scene includes a scene in which no interaction event is detected.
2. The method according to claim 1, characterized in that The method further comprises: If the first scenario is a level one scenario, the operating parameter is adjusted to the one with a greater performance provision degree between the first operating parameter and the second operating parameter, and the level one scenario includes a scenario in which an interaction event is detected.
3. The method according to claim 1 or 2, characterized in that: The performance supply level is determined by the maximum power that the CPU can supply and the performance energy efficiency ratio, including: When the maximum power that the CPU can supply is different, the greater the maximum power that the CPU can supply, the greater the performance provided; When the maximum power that the CPU can supply is the same, the smaller the performance-energy efficiency ratio, the greater the performance supply.
4. The method according to any one of claims 1 to 3, characterized in that: Before determining the first operating parameter according to the valid data of the first scenario, the method further includes: In the first scenario, running with a third running parameter; When the duration of operation with the third operating parameter reaches the first duration and no lag occurs, the system is operated with the fourth operating parameter, and the performance supply level of the fourth operating parameter is less than that of the third operating parameter. The valid data of the first scenario include the operation duration and lag duration of the operation with the third operating parameter and the fourth operating parameter respectively under the first scenario.
5. The method according to any one of claims 1 to 3, characterized in that: Before determining the first operating parameter according to the valid data of the first scenario, the method further includes: In the first scenario, running with a third running parameter; When the running time with the third operating parameters does not reach the first running time and jamming occurs, the system is run with the fifth operating parameters, and the performance supply degree of the fifth operating parameters is greater than the performance supply degree of the third operating parameters; the valid data of the first scenario includes the running time and jamming time of running with the third operating parameters and the fifth operating parameters respectively under the first scenario.
6. The method according to any one of claims 1 to 3, characterized in that: Before determining the first operating parameter according to the valid data of the first scenario, the method further includes: In the first scenario, running with a third running parameter; When the running time with the third running parameters does not reach the first time and no lag occurs, entering the second scene is detected, and the exploration progress of the first scene is saved as the third running parameters. The exploration progress is used to run with the third running parameters after entering the first scene again. The valid data of the first scene includes the running time and the lag time when running with the third running parameters in the first scene.
7. The method according to any one of claims 1 to 3, characterized in that: Before determining the first operating parameter according to the valid data of the first scenario, the method further includes: Acquire valid data of the first scenario; The acquiring valid data of the first scenario includes: In the first scenario, the system is run with a sixth operating parameter in the first set, and the running time and the freezing time of the system are obtained when the system is run with the sixth operating parameter, wherein the first set includes a plurality of operating parameters; If the duration of operation with the sixth operating parameter reaches the first duration and no freeze occurs, the operating parameters in the first set whose performance provision degree is greater than or equal to the performance provision degree of the sixth operating parameter are deleted to obtain a second set; If the duration of operation with the sixth operating parameter does not reach the first duration and a freeze occurs, delete the operating parameters in the first set whose performance provision level is less than or equal to the performance provision level of the sixth operating parameter to obtain a second set; In the first scenario, the system is run with the seventh operating parameter in the second set to obtain the running time and the freezing time when the system is run with the seventh operating parameter. The valid data of the first scenario includes the running time and the freezing time when the system is run with the sixth operating parameter and the seventh operating parameter respectively in the first scenario.
8. The method according to any one of claims 1 to 7, characterized in that: In the valid data of the first scene, the total duration of operation with the multiple operating parameters reaches a second duration.
9. The method according to any one of claims 1 to 8, characterized in that: After adjusting the operating parameter to the one with the smaller performance supply degree between the first operating parameter and the second operating parameter, the method further includes: Detecting that a third scene is entered, where the third scene is a scene not included in the mapping table; Determine an eighth operating parameter according to the valid data of the third scenario, the eighth operating parameter being an operating parameter with the lowest performance supply degree among the operating parameters in the valid data of the third scenario whose percentage of freeze duration during operation is less than or equal to the first threshold; The operating parameters are adjusted to the eighth operating parameters.
10. An electronic device, characterized in that: The electronic device comprises: one or more processors, a memory and a display screen; The memory is coupled to the one or more processors, and the memory is used to store computer program codes, wherein the computer program codes include computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the method according to any one of claims 1 to 9.
11. A chip system, characterized in that: The chip system is applied to an electronic device, and the chip system includes one or more processors, and the processor is used to call computer instructions so that the electronic device executes the method as described in any one of claims 1-9.
12. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device is caused to execute the method as claimed in any one of claims 1 to 9.