A performance control method, device, and storage medium
By obtaining real-time performance information and model portrait information of electronic devices in real time, and adjusting business strategies using evaluation strategies, solving the problem of inaccurate performance evaluation of electronic devices when performing services, improving user experience.
Patent Information
- Application Number
- CN202111549568.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-17
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2041-12-17
AI Technical Summary
When performing business, electronic devices cannot accurately and timely evaluate equipment performance, resulting in mismatch between business strategies and equipment performance, affecting power consumption optimization and user experience.
By obtaining real-time performance information of electronic devices and model portrait information in real time, processing target information using evaluation strategies, determining target performance parameters, and adjusting business strategies according to differences.
It realizes dynamic evaluation of equipment performance, and the adjusted business strategy is more in line with user needs and improves user experience.
Smart Images

Figure CN114444853B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technologies, and in particular, to a performance control method, apparatus, and storage medium. Background Art
[0002] Currently, when an electronic device executes a service, it can adjust the service strategy based on the device performance, so as to optimize the power consumption of the electronic device in a timely manner, thereby ensuring a smooth user experience and the optimal state of the device. However, if the electronic device cannot accurately and timely evaluate the device performance, the adjusted service strategy will not match the device performance. Executing a service based on a service strategy that does not match the device performance will cause the power consumption of the electronic device not to reach the optimum. Therefore, how to evaluate the device performance of an electronic device has become a research focus for those skilled in the art. Summary of the Invention
[0003] The present disclosure provides a performance control method, apparatus, and storage medium. When an electronic device executes a service, it can adjust the service strategy that better meets user needs, thereby improving the user experience.
[0004] The technical solution of the present disclosure is as follows:
[0005] According to a first aspect of the present disclosure, there is provided a performance control method applied to an electronic device. The method includes:
[0006] Obtaining target information in real time according to the device performance of the electronic device, where the target information includes real-time performance information when the electronic device is running;
[0007] Processing the target information by using an evaluation strategy to obtain a target performance parameter corresponding to the target information;
[0008] If the target performance parameter is different from a reference performance parameter, determining a target service strategy corresponding to the target performance parameter, where the reference performance parameter corresponds to a reference service strategy, and the reference service strategy is the service strategy currently used for executing a service;
[0009] Adjusting the reference service strategy to the target service strategy.
[0010] Optionally, the target information further includes model portrait information, and the real-time performance information includes at least one of the following: current temperature status information, current battery power, and current battery status;
[0011] Wherein, the current temperature status information is used to indicate the current running state of the operating system in the electronic device, and the current battery status is used to indicate whether the electronic device is currently in a charging state.
[0012] Optionally, the evaluation strategy includes an evaluation model. Processing the target information using the evaluation strategy to obtain the target performance parameter corresponding to the target information includes:
[0013] Inputting the target information into the evaluation model;
[0014] Processing the target information through the evaluation model and outputting the target performance parameter.
[0015] Optionally, when the real-time performance information includes the current temperature status information, the current power, and the current power status, processing the target information using the evaluation strategy to obtain the target performance parameter corresponding to the target information includes:
[0016] Using the evaluation algorithms included in the evaluation strategy to respectively determine the initial evaluation parameters corresponding to the model portrait information, the current temperature status information, the current power, and the current power status;
[0017] Based on the initial evaluation parameters corresponding to the model portrait information, the current temperature status information, the current power, and the current power status respectively, and the weights in the evaluation strategy, determining the target comprehensive parameter;
[0018] Based on the correspondence between the comprehensive parameter and the performance parameter included in the evaluation strategy, obtaining the target performance parameter corresponding to the target comprehensive parameter.
[0019] Optionally, if the target performance parameter is different from the reference performance parameter, determining the target business strategy corresponding to the target performance parameter includes:
[0020] If the target performance parameter is different from the reference performance parameter, enter the cooling period, and the cooling period is the duration of waiting to re-obtain the target information;
[0021] After the cooling period ends, re-obtain the target information and obtain the performance parameter corresponding to the re-obtained target information. If the re-obtained performance parameter is different from the reference performance parameter, determine the target business strategy.
[0022] Optionally, processing the target information using the evaluation strategy to obtain the target performance parameter corresponding to the target information includes:
[0023] When it is determined that the real-time performance information meets the preset conditions and is not in the cooling period, processing the target information using the evaluation strategy to obtain the target performance parameter.
[0024] Optionally, determining that the real-time performance information meets the preset conditions includes:
[0025] If the difference between the current power in the current cycle and the power in the previous cycle is greater than a preset value, it is determined that the real-time performance information meets the preset condition;
[0026] Or,
[0027] If the current temperature state information in the current cycle is different from the temperature state information in the previous cycle, it is determined that the real-time performance information meets the preset condition;
[0028] Or,
[0029] If the current power state in the current cycle is different from the power state in the previous cycle, it is determined that the real-time performance information meets the preset condition.
[0030] Optionally, when the service is the service of the target application, the performance control method further includes:
[0031] After the target application is started, send a configuration request to the server, where the configuration request includes the device identifier;
[0032] Receive response data from the server, where the response data includes the evaluation strategy corresponding to the device identifier.
[0033] Optionally, when the target information includes the real-time performance information and the model portrait information, the obtaining the target information according to the device performance of the electronic device in real time includes:
[0034] Obtain the model portrait information corresponding to the device identifier included in the response data;
[0035] After a preset time period after the target application is started, periodically obtain the real-time performance information.
[0036] Optionally, the performance control method further includes:
[0037] If the target performance parameter is the same as the reference performance parameter, continue to execute the service using the reference service strategy corresponding to the reference performance parameter.
[0038] According to a second aspect of the present disclosure, there is provided a performance control device located in an electronic device, including:
[0039] An obtaining module configured to execute obtaining target information according to the device performance of the electronic device in real time, where the target information includes the real-time performance information when the electronic device is running;
[0040] A processing module configured to execute processing the target information obtained by the obtaining module using an evaluation strategy to obtain a target performance parameter corresponding to the target information;
[0041] A determination module, configured to execute: if the target performance parameter obtained by the processing module is different from the reference performance parameter, determine the target service policy corresponding to the target performance parameter, where the reference performance parameter corresponds to a reference service policy, and the reference service policy is the service policy currently used for the executed service;
[0042] An adjustment module, configured to execute: adjust the reference service policy to the target service policy determined by the determination module.
[0043] Optionally, the target information further includes model portrait information, and the real-time performance information includes at least one of the following: current temperature status information, current battery level, and current battery status;
[0044] Wherein, the current temperature status information is used to indicate the current running status of the operating system in the electronic device, and the current battery status is used to indicate whether the electronic device is currently in a charging state.
[0045] Optionally, the evaluation policy includes an evaluation model, and the processing module is specifically configured to execute:
[0046] Input the target information into the evaluation model;
[0047] Process the target information through the evaluation model and output the target performance parameter.
[0048] Optionally, when the real-time performance information includes the current temperature status information, the current battery level, and the current battery status, the processing module is specifically configured to execute:
[0049] Adopt the evaluation algorithm included in the evaluation policy to respectively determine the initial evaluation parameters corresponding to the model portrait information, the current temperature status information, the current battery level, and the current battery status;
[0050] Based on the initial evaluation parameters corresponding to the model portrait information, the current temperature status information, the current battery level, and the current battery status respectively, and the weights in the evaluation policy, determine the target comprehensive parameter;
[0051] Based on the correspondence between the comprehensive parameter and the performance parameter included in the evaluation policy, obtain the target performance parameter corresponding to the target comprehensive parameter.
[0052] Optionally, the determination module is specifically configured to execute:
[0053] If the target performance parameter is different from the reference performance parameter, enter a cooling period, and the cooling period is the duration waited for re-obtaining the target information;
[0054] After the end of the cooling period, the target information is re-acquired, and the performance parameter corresponding to the re-acquired target information is obtained. If the re-obtained performance parameter is different from the reference performance parameter, the target service policy is determined.
[0055] Optionally, the processing module is specifically configured to execute:
[0056] When it is determined that the real-time performance information meets the preset conditions and is not in the cooling period, the evaluation policy is used to process the target information to obtain the target performance parameter.
[0057] Optionally, the processing module is specifically configured to execute:
[0058] If the difference between the current power in the current cycle and the power in the previous cycle is greater than the preset value, it is determined that the real-time performance information meets the preset conditions;
[0059] Or,
[0060] If the current temperature status information in the current cycle is different from the temperature status information in the previous cycle, it is determined that the real-time performance information meets the preset conditions;
[0061] Or,
[0062] If the current power status in the current cycle is different from the power status in the previous cycle, it is determined that the real-time performance information meets the preset conditions.
[0063] Optionally, for the service of the target application, the performance control device further includes: a sending module and a receiving module;
[0064] The sending module is configured to send a configuration request to the server after the target application is started, and the configuration request includes the device identifier;
[0065] The receiving module is configured to receive response data from the server, and the response data includes the evaluation policy corresponding to the device identifier.
[0066] Optionally, when the target information includes the real-time performance information and the model portrait information, the acquisition module is specifically configured to execute:
[0067] Acquire the model portrait information corresponding to the device identifier included in the response data;
[0068] After a preset period of time after the target application is started, the real-time performance information is periodically acquired.
[0069] Optionally, the processing module is further configured to continue to execute the service using the reference service policy corresponding to the reference performance parameter if the target performance parameter is the same as the reference performance parameter.
[0070] According to a third aspect of the present disclosure, an electronic device is provided. The electronic device includes:
[0071] A processor;
[0072] A memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement any of the optional performance control methods in the first aspect above.
[0073] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided. Instructions are stored on the computer-readable storage medium. When the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device is enabled to execute any of the optional performance control methods in the first aspect above.
[0074] According to a fifth aspect of the present disclosure, a computer program product is provided, including instructions which, when running on an electronic device, cause the electronic device to execute any of the optional performance control methods in the first aspect.
[0075] The technical solutions provided by the present disclosure at least bring the following beneficial effects: The performance control device obtains target information in real time according to the device performance of the electronic device, and processes the target information using an evaluation strategy to obtain a target performance parameter corresponding to the target information. If the target performance parameter is different from the reference performance parameter, the performance control device determines the target service policy corresponding to the target performance parameter and adjusts the reference service policy to the target service policy. Among them, the reference performance parameter corresponds to the reference service policy, and the reference service policy is the service policy used for the currently executed service. The target information includes real-time performance information when the electronic device is running. In this way, since the real-time performance information can reflect the performance of the electronic device during actual operation, using the target performance parameter corresponding to the target information to adjust the service policy can, compared with using the model portrait information in the prior art to guide the adjustment of the service policy, perceive the device state in real time, realize the dynamic evaluation of the device performance, make the adjusted service policy more in line with user needs, and thus improve the user experience.
[0076] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure and do not constitute an improper limitation to the present disclosure.
[0078] Figure 1 It is a schematic diagram of a performance control system shown according to an exemplary embodiment.
[0079] Figure 2 It is a flowchart of a performance control method shown according to an exemplary embodiment.
[0080] Figure 3 It is a schematic diagram of a scenario for processing target information shown according to an exemplary embodiment.
[0081] Figure 4 It is another schematic diagram of a scenario for processing target information shown according to an exemplary embodiment.
[0082] Figure 5 It is a flowchart of another performance control method shown according to an exemplary embodiment.
[0083] Figure 6 It is a logical structure block diagram of a performance control device shown according to an exemplary embodiment.
[0084] Figure 7 It is a structure block diagram of an electronic device shown according to an exemplary embodiment. Detailed implementation manners
[0085] In order to enable those of ordinary skill in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0086] It should be noted that the implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0087] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) involved in the embodiments of the present disclosure is information that has been authorized by the user or fully authorized by all parties.
[0088] The performance control method provided by the embodiments of the present disclosure can be applied to the scenario where an electronic device evaluates its own device performance. The electronic device can adjust the service strategy according to the evaluated device performance and execute the service according to the adjusted service strategy, so as to optimize the power consumption of the device in a timely manner, thereby providing a better user experience for the user. It can be seen that accurate and timely evaluation of the device performance is very important. The device performance of the electronic device can be reflected by certain performance indicators. The performance indicators may include but are not limited to model portrait information, temperature status information, power, power status, etc.
[0089] The model image information is constructed based on the reference performance data of the device, which refers to the performance quantification of the electronic device for completing the specified service scenarios. The specified service scenarios may include scenarios such as playing videos, live streaming, shooting videos, playing dynamic effects, etc. The performance quantification refers to the performance of the device's hardware, such as the central processing units (CPUs), graphicsprocessing unit (GPU), memory, etc.
[0090] The temperature status information is used to indicate the restricted degree of the operating system installed on the electronic device, which can indirectly reflect the device performance. The higher the restricted degree of the operating system, the higher the hardware temperature and the lower the device performance.
[0091] The battery power can directly affect the user's mentality, and when the battery power is low, the operating system installed on the electronic device will limit the device performance.
[0092] The battery power status refers to whether the electronic device is in a charging state.
[0093] In order to adjust the service strategy more in line with the user's needs when the electronic device executes services, thereby improving the user experience, the embodiments of the present disclosure provide a performance control method. The electronic device obtains target information including real-time performance information according to the device performance, and processes the target information using an evaluation strategy to obtain target performance parameters. When the target performance parameters are different from the reference performance parameters, the service strategy is adjusted based on the target performance parameters. In this way, since the real-time performance information can reflect the performance of the electronic device during actual operation, using the target performance parameters corresponding to the target information to adjust the service strategy can, compared with using the model image information in the prior art to guide the adjustment of the service strategy, perceive the device state in real time, realize the dynamic evaluation of the device performance, make the adjusted service strategy more in line with the user's needs, and thus improve the user experience.
[0094] Figure 1 It is a schematic diagram of a performance control system shown according to an exemplary embodiment. The performance control method provided by the embodiments of the present disclosure can be applied to this performance control system. As Figure 1 shown, the performance control system may include: an electronic device 101 and a server 102. The electronic device 101 communicates with the server 102 through a wired communication method or a wireless communication method.
[0095] An electronic device 101 is configured to send a configuration request to a server 102 after a target application is launched. The configuration request includes a device identifier. The electronic device 101 is further configured to receive response data from the server 102. The response data includes model portrait information and an evaluation strategy corresponding to the device identifier. The electronic device 101 is also configured to periodically obtain real-time performance information after a preset time period from the launch of the target application, and process the target information using the evaluation strategy to obtain a target performance parameter corresponding to the target information. The target information includes model portrait information and real-time performance information. The electronic device 101 is further configured to determine a target service strategy corresponding to the target performance parameter if the target performance parameter is different from a reference performance parameter, and adjust the reference service strategy to the target service strategy.
[0096] In some embodiments, the electronic device 101 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, a vehicle-mounted device, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) / virtual reality (VR) device, etc. Figure 1 Taking the electronic device 101 as a mobile phone as an example.
[0097] The server 102 is configured to receive the configuration request sent by the electronic device 101, obtain corresponding model portrait information and an evaluation strategy according to the device identifier included in the configuration request, and send the model portrait information and the evaluation strategy in the response data to the electronic device 101.
[0098] In some embodiments, the server 102 may be a single server, a server cluster composed of multiple servers, or a cloud computing platform. The embodiments of the present disclosure do not make any limitation in this regard. Figure 1 Taking a single server as an example.
[0099] Of course, the performance control method provided by the embodiments of the present disclosure may also be applied to Figure 1 other systems other than, or may be applied to a scenario that only includes an electronic device. The embodiments of the present disclosure do not make any limitation in this regard.
[0100] Figure 2 It is a flowchart of a performance control method shown according to an exemplary embodiment. As Figure 2 shown, the method may include the following steps 201-step 204.
[0101] 201. The electronic device obtains target information in real time according to the device performance of the electronic device.
[0102] When an electronic device needs to evaluate its own device performance in a specific business scenario to determine the business strategy for executing a business, it can obtain target information in real time according to its own device performance. The target information may include real-time performance information when the electronic device is running.
[0103] Optionally, the above target information may further include model portrait information. In the case where the business is the business of the target application, the process of obtaining the model portrait information is as follows: After the target application is started, the electronic device may send a configuration request to the server, and the configuration request includes a device identifier, which is used to uniquely identify the electronic device. For example, the device identifier may be the device model. The electronic device may receive response data from the server, and the response data includes model portrait information corresponding to the device identifier.
[0104] Optionally, the above real-time performance information may include at least one of the following: current temperature status information, current battery level, and current battery status. Among them, the current temperature status information is used to indicate the current operating state of the operating system in the electronic device, and the current battery status is used to indicate whether the electronic device is currently in a charging state. The current battery level refers to the amount of the current battery level of the electronic device.
[0105] It can be understood that in the embodiments of the present disclosure, the operating system installed on the electronic device may be an Android system, an IOS system, etc. When the operating system installed on the electronic device is an Android system, the temperature status information of the electronic device may include five states: normal (none) state, light restriction (light) state, moderate restriction (moderate) state, severe restriction (severe) state, and need to cool (critica and above) state. When the operating system installed on the electronic device is an IOS system, the temperature status information of the electronic device may include four states: normal (normal) state, slightly hot (fair) state, severely hot (serious) state, and need to cool (critica) state.
[0106] Optionally, in the embodiments of the present disclosure, in the case where the target information includes real-time performance information and model portrait information, the process for the electronic device to obtain the target information in real time may be: The electronic device may obtain the model portrait information corresponding to the device identifier included in the response data, and periodically obtain the real-time performance information after a preset time period from the start of the target application.
[0107] In some embodiments, when the real-time performance information includes the current temperature status information, the current battery level, and the current battery status, after a preset period of time since the target application is started, the electronic device may first register a temperature status monitoring function, a battery level monitoring function, and a battery status monitoring function with the operating system installed on the electronic device. Then, the electronic device can periodically call back the temperature status monitoring function, the battery level monitoring function, and the battery status monitoring function to obtain the temperature status information, the current battery level, and the current battery status.
[0108] It can be seen that by obtaining the real-time performance information after a preset period of time since the target application is started, it is possible to avoid the peak stage of resource occupancy during the cold start of the target application, obtain the real-time performance information during the stable operation of the device, make the acquisition of the real-time performance information more accurate, and thus make the target performance parameters determined based on the target information more accurate later.
[0109] 202. The electronic device processes the target information using an evaluation strategy to obtain the target performance parameter corresponding to the target information.
[0110] After the electronic device obtains the target information, it can process the target information using an evaluation strategy to obtain the target performance parameter corresponding to the target information. The target performance parameter can be the performance level or performance grade of the device, which is used to guide the selection of business strategies.
[0111] Optionally, in the embodiments of the present disclosure, the electronic device may obtain the evaluation strategy before performing step 202. In one scenario, the response data received by the electronic device from the server in step 201 may further include the evaluation strategy corresponding to the device identifier. After the electronic device receives the response data sent by the server, it can obtain the evaluation strategy in the response data. Of course, the electronic device can also directly obtain the pre-stored evaluation strategy from its own memory. In some embodiments, the pre-stored evaluation strategy may be carried in the data packet of the target application when the electronic device installs the target application. After the target application is installed, the evaluation strategy is stored in the electronic device.
[0112] Compared with the above two ways of obtaining the evaluation strategy, the way for the electronic device to request the evaluation strategy from the server after the target application is started is more flexible. Storing the mapping relationship between the device identifier and the evaluation strategy on the server facilitates the maintenance and update of the mapping relationship by the background staff.
[0113] Optionally, in the embodiments of the present disclosure, when the content included in the evaluation strategy is different, the electronic device may use different methods to process the target information to obtain the target performance parameter. In the embodiments of the present disclosure, the method for the electronic device to process the target information is described by taking the target information including real-time performance information and model portrait information, and the real-time performance information including the current temperature status information, the current battery level, and the current battery status as an example.
[0114] In Method 1, when the evaluation strategy includes an evaluation model, as Figure 3 shown, the electronic device can input the target information into the evaluation model, process the target information through the evaluation model, and output the target performance parameter corresponding to the target information. The evaluation model can be an artificial intelligence model that conforms to the usage habits of most users obtained through big data analysis. By using the evaluation model to process the target information to obtain the target performance parameter, the method steps are simple, and since the evaluation model is trained based on big data, the accuracy of the determined target performance parameter can be improved, so that the determined business strategy is more accurate.
[0115] It can be understood that in the embodiments of the present disclosure, the above evaluation model can be pre-trained and stored in the server or the electronic device. The evaluation models corresponding to different models can be the same or different. That is to say, different evaluation models can be trained for different models, or an evaluation model can be trained for several models with similar performances, or an evaluation model can be trained for all models. The embodiments of the present disclosure do not make special limitations here.
[0116] In a specific implementation, when training the evaluation model, sample data can be obtained first. The sample data can include big data collected by the server in the background. For example, the sample data can include historical data such as the power consumption, temperature status information, and power status during the use of different devices by different users. The sample data can also include the relationships between the power consumption, temperature status information, and power status and the user experience data respectively, and the user experience data can include the stuttering situation, start-up rate, and frame loss rate of playing videos. Then, the sample data can be trained in an artificial intelligence manner to obtain an evaluation model that conforms to the usage habits of users.
[0117] It should be noted that in the embodiments of the present disclosure, the above evaluation model can be continuously optimized according to scenario requirements, business requirements, user requirements, etc., and the optimized sample data can be collected to verify the above evaluation model so that the evaluation model maintains the best effect.
[0118] In Method 2, when the evaluation strategy includes the evaluation algorithm, weights, and the correspondence between the comprehensive parameter and the performance parameter, as Figure 4 shown, the electronic device can adopt the evaluation algorithm to respectively determine the initial evaluation parameters corresponding to the model portrait information, the current temperature status information, the current power consumption, and the current power status, and determine the target comprehensive parameter based on the initial evaluation parameters and weights corresponding to the model portrait information, the current temperature status information, the current power consumption, and the current power status respectively. Then, based on the correspondence between the comprehensive parameter and the performance parameter, the target performance parameter corresponding to the target comprehensive parameter is obtained.
[0119] It can be understood that in the embodiments of the present disclosure, the above initial evaluation parameter may be a quantified initial score value, and this initial score value is a fair score, which can ensure fairness for the service and is used for guiding service strategies. Correspondingly, the target comprehensive parameter may be a quantified comprehensive score value. The higher the comprehensive score value, the higher the corresponding target performance level.
[0120] In addition, the above evaluation algorithm may include score values corresponding to each temperature state information, score values corresponding to each power range, score values corresponding to each power state, and score values corresponding to each model portrait information.
[0121] Exemplarily, Table 1 shows the correspondence between temperature state information and score values under the Android system and the IOS system.
[0122] Table 1
[0123] Android system IOS system Score value Normal state Normal state Full score: 10 points Slightly restricted state Slightly heated state 8 points Moderately restricted state —— 6 points Severely restricted state Severely heated state 4 points Needs cooling state Needs cooling state 2 points
[0124] The electronic device can determine the initial score value corresponding to the current temperature state information based on the score value corresponding to each temperature state information.
[0125] Exemplarily, Table 2 shows the correspondence between power states and score values.
[0126] Table 2
[0127] Battery status Score value Charging status Full score: 10 points Not charging state 1 point
[0128] The electronic device can determine the initial score value corresponding to the current power state based on the score value corresponding to each power state.
[0129] Exemplarily, Table 3 shows the correspondence between power ranges and score values.
[0130] Table 3
[0131] Battery range Score value [50,100] Full score: 10 points [40,50] 8 points [30,40] 6 points [20,30] 4 points [10,20] 2 points [0,10] 1 point
[0132] The electronic device can determine the power range to which the current power belongs based on the score value corresponding to each power range, and thus determine the corresponding initial score value.
[0133] It should be noted that in the embodiments of the present disclosure, the weights corresponding to the above-mentioned model portrait information, current temperature status information, current battery power, and current battery status can be pre-configured according to actual situations. Specifically, the weights corresponding to the information can be determined according to the influence degree of different information on the performance. As a possible implementation, the influence of real-time performance information on the device performance is sorted from large to small as follows: model portrait information > temperature status information > battery power > battery status. Therefore, the weight corresponding to the model portrait information is greater than the weight corresponding to the temperature status information, the weight corresponding to the battery power is greater than the weight corresponding to the battery status. In this way, by scoring to determine the target performance parameter, it is simple and easy to implement, the processing pressure of the device is small, and the efficiency of determining the target performance parameter is high.
[0134] 203. If the target performance parameter is different from the reference performance parameter, the electronic device determines the target service policy corresponding to the target performance parameter.
[0135] Among them, the reference performance parameter corresponds to a reference service policy, and the reference service policy is the service policy used by the electronic device to execute the current service.
[0136] If the target performance parameter is different from the current reference performance parameter, the electronic device can determine that the performance level has changed. The corresponding relationship between the performance parameter and the service policy is pre-stored in the electronic device. The electronic device can notify the target performance parameter to the service layer. The service layer can determine the target service policy corresponding to the target performance parameter according to the pre-stored corresponding relationship, and the target service policy is used to execute the service. When the performance parameter is the performance level, the higher the performance parameter, the more fluent the user experience provided by the corresponding service policy.
[0137] If the target performance parameter is the same as the reference performance parameter, the electronic device can determine that the performance level has not changed, and can continue to use the reference service policy corresponding to the reference performance parameter to execute the service, continue to obtain the real-time performance information, and re-determine the target performance parameter.
[0138] 204. The electronic device adjusts the reference service policy to the target service policy.
[0139] After the service layer of the electronic device determines the target service policy corresponding to the target performance parameter, it can adjust the reference service policy to the target service policy and execute the service based on the target service policy. Then, the electronic device can repeat the above steps 201 - 204, which will not be elaborated here.
[0140] The technical solutions provided by the above embodiments at least bring the following beneficial effects: The performance control device obtains target information in real time according to the device performance of the electronic device, and processes the target information using an evaluation strategy to obtain a target performance parameter corresponding to the target information. If the target performance parameter is different from the reference performance parameter, the performance control device determines a target service strategy corresponding to the target performance parameter and adjusts the reference service strategy to the target service strategy. Among them, the reference performance parameter corresponds to the reference service strategy, and the reference service strategy is the service strategy used for the currently executed service. The target information includes the real-time performance information of the electronic device during operation. In this way, since the real-time performance information can reflect the performance of the electronic device during actual operation, using the target performance parameter corresponding to the target information to adjust the service strategy can, compared with using the model portrait information in the prior art to guide the adjustment of the service strategy, perceive the device state in real time, realize the dynamic evaluation of the device performance, make the adjusted service strategy more in line with the user's needs, and thus improve the user experience.
[0141] Furthermore, the electronic device determines the target performance parameter by comprehensively using the model portrait information and the real-time performance information, and uses the target performance parameter to guide the service strategy. Since the electronic device considers more comprehensive factors when determining the target performance parameter, the determined target performance parameter is more accurate, so that the guided service strategy is more reasonable and more in line with the user's needs.
[0142] Optionally, in the embodiments of the present disclosure, for low-end models, the evaluation strategy may include an algorithm or model for processing the model portrait information. In this way, the electronic device can obtain the evaluation strategy and the model portrait information corresponding to the device identifier of the low-end model, and process the model portrait information using the evaluation strategy to obtain the corresponding target performance parameter, and guide the service strategy based on the target performance parameter. How to process the model portrait information using the evaluation strategy and how to guide the service strategy based on the target performance parameter can refer to the relevant descriptions in the above embodiments and will not be elaborated here.
[0143] For low-end models, by processing the model portrait information using the evaluation strategy instead of processing the real-time performance information, the processing pressure of the low-end models can be reduced.
[0144] Optionally, based on Figure 2 , as Figure 5 shown, the above step 203 may specifically include the following steps 205 and 206.
[0145] 205. If the target performance parameter is different from the reference performance parameter, the electronic device enters the cooling period.
[0146] The cooling period is the duration that the electronic device waits to re-acquire the target information. After the electronic device enters the cooling period, it does not adopt the evaluation strategy to process the target information, and thus does not determine the target performance information corresponding to the target information.
[0147] 206. After the cooling period ends, the electronic device re-acquires the target information and obtains the performance parameter corresponding to the re-acquired target information. If the re-obtained performance parameter is different from the reference performance parameter, the target service strategy is determined.
[0148] After the cooling period ends, the electronic device can re-acquire the target information in the manner in step 201 above and re-obtain the performance parameter corresponding to the target information in the manner in step 202 above. If the re-obtained performance parameter is still different from the reference performance parameter, the electronic device determines the target service strategy. If the re-obtained performance parameter is the same as the reference performance parameter, the service strategy is not adjusted, and the reference service strategy is continued to execute the service.
[0149] The technical solutions provided in the above embodiments at least bring the following beneficial effects: When the target performance parameter is different from the reference performance parameter, by re-determining the performance parameter after the cooling period, the service strategy is adjusted only when it is determined that the new performance parameter is still different from the reference performance parameter. This can not only ensure that the result of the change in the performance parameter is more accurate, but also avoid the problem of poor user experience caused by frequent changes in the service strategy.
[0150] Optionally, based on Figure 2 , as Figure 5 shown, step 202 above may specifically include the following step 207.
[0151] 207. When the electronic device determines that the real-time performance information meets the preset conditions and is not in the cooling period, it adopts the evaluation strategy to process the target information to obtain the target performance parameter.
[0152] The electronic device can adopt the evaluation strategy to process the target information to obtain the target performance parameter when it determines that at least one piece of information included in the real-time performance information meets the preset conditions and the time when the preset conditions are met is not in the cooling period. Otherwise, the electronic device does not process the target information. Not being in the cooling period means not being in a preset time period after the electronic device determines that the new performance parameter is different from the current performance parameter. Even if the real-time performance information meets the preset conditions during this cooling period, the target information will not be processed.
[0153] Optionally, in the embodiments of the present disclosure, the electronic device may determine that the real-time performance information meets the preset conditions in the following manner.
[0154] When the real-time performance information includes the current battery level, if the difference between the current battery level in the current period and the battery level in the previous period is greater than a preset value, the electronic device can determine that the real-time performance information meets the preset condition.
[0155] When the real-time performance information includes the current temperature status information, if the current temperature status information in the current period is different from the temperature status information in the previous period, the electronic device can determine that the real-time performance information meets the preset condition.
[0156] When the real-time performance information includes the current battery status, if the current battery status in the current period is different from the battery status in the previous period, the electronic device can determine that the real-time performance information meets the preset condition.
[0157] The technical solutions provided in the above embodiments at least bring the following beneficial effects: When the electronic device determines that the real-time performance information meets the preset condition during other time periods outside the cooling period, it determines the target performance parameter, which can avoid frequently using the evaluation strategy to determine the performance parameter, thereby reducing the processing pressure on the electronic device. And the electronic device can determine whether the real-time performance information meets the preset condition through the magnitude of the change in the battery level, or the change in the temperature status information, or the change in the battery status. The implementation method is simple and easy to implement.
[0158] Figure 6 It is a logical structure block diagram of a performance control device shown according to an exemplary embodiment. Refer to Figure 6 This performance control device is applied to an electronic device, and the performance control device includes: an acquisition module 61, a processing module 62, a determination module 63, and an adjustment module 64.
[0159] The acquisition module 61 is configured to acquire target information in real time according to the device performance of the electronic device, and the target information includes the real-time performance information when the electronic device is running;
[0160] The processing module 62 is configured to process the target information acquired by the acquisition module 61 by using an evaluation strategy to obtain a target performance parameter corresponding to the target information;
[0161] The determination module 63 is configured to, if the target performance parameter obtained by the processing module 62 is different from the reference performance parameter, determine the target service policy corresponding to the target performance parameter, the reference performance parameter corresponds to a reference service policy, and the reference service policy is the service policy used for the currently executed service;
[0162] The adjustment module 64 is configured to adjust the reference service policy to the target service policy determined by the determination module.
[0163] Optionally, the target information further includes model portrait information, and the real-time performance information includes at least one of the following: current temperature status information, current battery level, and current battery status;
[0164] Wherein, the current temperature status information is used to indicate the current operating state of the operating system in the electronic device, and the current battery status is used to indicate whether the electronic device is currently in a charging state.
[0165] Optionally, the evaluation strategy includes an evaluation model, and the processing module 62 is specifically configured to execute:
[0166] Input the target information into the evaluation model;
[0167] Process the target information through the evaluation model and output the target performance parameter.
[0168] Optionally, when the real-time performance information includes the current temperature status information, the current battery level, and the current battery status, the processing module 62 is specifically configured to execute:
[0169] Adopt the evaluation algorithm included in the evaluation strategy to respectively determine the initial evaluation parameters corresponding to the model portrait information, the current temperature status information, the current battery level, and the current battery status;
[0170] Based on the initial evaluation parameters corresponding to the model portrait information, the current temperature status information, the current battery level, and the current battery status respectively, and the weights in the evaluation strategy, determine the target comprehensive parameter;
[0171] Based on the correspondence between the comprehensive parameter and the performance parameter included in the evaluation strategy, obtain the target performance parameter corresponding to the target comprehensive parameter.
[0172] Optionally, the determination module 63 is specifically configured to execute:
[0173] If the target performance parameter is different from the reference performance parameter, enter the cooling period, and the cooling period is the duration waited for re-acquiring the target information;
[0174] After the cooling period ends, re-acquire the target information, and obtain the performance parameter corresponding to the re-acquired target information. If the re-obtained performance parameter is different from the reference performance parameter, determine the target service strategy.
[0175] Optionally, the processing module 62 is specifically configured to execute:
[0176] When it is determined that the real-time performance information meets the preset conditions and is not in the cooling period, process the target information using the evaluation strategy to obtain the target performance parameter.
[0177] Optionally, the processing module 62 is specifically configured to execute:
[0178] If the difference between the current power in the current cycle and the power in the previous cycle is greater than a preset value, it is determined that the real-time performance information meets the preset condition;
[0179] Or,
[0180] If the current temperature status information in the current cycle is different from the temperature status information in the previous cycle, it is determined that the real-time performance information meets the preset condition;
[0181] Or,
[0182] If the current power status in the current cycle is different from the power status in the previous cycle, it is determined that the real-time performance information meets the preset condition.
[0183] Optionally, the service is a service of a target application, such as Figure 6 As shown, the performance control device may further include: a sending module 65 and a receiving module 66.
[0184] The sending module 65 is configured to execute sending a configuration request to the server after the target application is started, where the configuration request includes a device identifier;
[0185] The receiving module 66 is configured to execute receiving response data from the server, and the response data includes the evaluation strategy corresponding to the device identifier.
[0186] Optionally, when the target information includes the real-time performance information and the model portrait information, the obtaining module 61 is specifically configured to execute:
[0187] Obtain the model portrait information corresponding to the device identifier included in the response data;
[0188] After a preset time period after the target application is started, periodically obtain the real-time performance information.
[0189] Optionally, the processing module 62 is further configured to execute if the target performance parameter is the same as the reference performance parameter, then continue to execute the service using the reference service strategy corresponding to the reference performance parameter.
[0190] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated here.
[0191] Figure 7It is a structural block diagram of an electronic device shown according to an exemplary embodiment. The electronic device can be a performance control device, and the performance control device can be: a smart phone, a tablet computer, a laptop computer, or a desktop computer.
[0192] The performance control device may include at least one processor 71, a communication bus 72, a memory 73, and at least one communication interface 74.
[0193] The processor 71 can be a CPU, a microprocessing unit, or one or more integrated circuits for controlling the execution of the program of the present disclosure solution.
[0194] The communication bus 72 may include a path for transmitting information between the above components.
[0195] The communication interface 74 uses any device such as a transceiver to communicate with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.
[0196] The memory 73 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or can also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM), or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory can exist independently and be connected to the processing unit through a bus. The memory can also be integrated with the processing unit.
[0197] Among them, the memory 73 is used to store the application program code for executing the present disclosure solution and is controlled by the processor 71 to execute. The processor 71 is used to execute the application program code stored in the memory 73, thereby implementing the functions in the present disclosure method.
[0198] In a specific implementation, as an embodiment, the processor 71 may include one or more CPUs, for example Figure 7CPU0 and CPU1 therein.
[0199] In a specific implementation, as an embodiment, the performance control device may include multiple processors, such as Figure 7 processor 71 and processor 75 therein. Each of these processors can be a single-CPU processor or a multi-CPU processor.
[0200] In a specific implementation, as an embodiment, the performance control device may further include an input device 76 and an output device 77. The input device 76 communicates with the processor 71 and can accept user input in various ways. For example, the input device 76 can be a mouse, a keyboard, a touch screen device, or a sensing device, etc. The output device 77 communicates with the processor 71 and can display information in various ways. For example, the output device 77 can be a liquid crystal display (LCD), a light emitting diode (LED) display device, etc.
[0201] Those skilled in the art can understand that Figure 7 the structure shown in [[ ]] does not limit the electronic device, and it may include more or fewer components than shown in the figure, or combine certain components, or adopt different component arrangements.
[0202] The present disclosure also provides a computer-readable storage medium including instructions. When the instructions in the computer-readable storage medium are executed by a processor of a computer, the computer is enabled to execute the performance control method provided in the above-mentioned embodiments. For example, the computer-readable storage medium can be a memory 73 including instructions, and the above instructions can be executed by the processor 71 of the electronic device to complete the above method. Optionally, the computer-readable storage medium can be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0203] The present disclosure also provides a computer program product including instructions. When it runs on an electronic device, the electronic device is enabled to execute the performance control method provided in the above-mentioned embodiments.
[0204] Those skilled in the art will readily think of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include the common general knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.
[0205] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.
Claims
1. A performance control method, applied to an electronic device, characterized in that, Including: Obtaining target information in real time according to the device performance of the electronic device, where the target information includes real-time performance information during the operation of the electronic device; Processing the target information using an evaluation strategy to obtain a target performance parameter corresponding to the target information; The target performance parameter is used to guide the selection of a service strategy; If the target performance parameter is different from a reference performance parameter, determining a target service strategy corresponding to the target performance parameter, where the reference performance parameter corresponds to a reference service strategy, and the reference service strategy is the service strategy currently used for the executed service; Adjusting the reference service strategy to the target service strategy.
2. The performance control method according to claim 1, characterized in that The target information further includes model portrait information, and the real-time performance information includes at least one of the following: current temperature status information, current battery level, and current battery status; Wherein, the current temperature status information is used to indicate the current operating state of the operating system in the electronic device, and the current battery status is used to indicate whether the electronic device is currently in a charging state.
3. The performance control method according to claim 1 or 2, characterized in that, The evaluation strategy includes an evaluation model, and the processing the target information using the evaluation strategy to obtain a target performance parameter corresponding to the target information includes: Inputting the target information into the evaluation model; Processing the target information through the evaluation model and outputting the target performance parameter.
4. The performance control method according to claim 2, characterized in that When the real-time performance information includes the current temperature status information, the current battery level, and the current battery status, the processing the target information using the evaluation strategy to obtain a target performance parameter corresponding to the target information includes: Using the evaluation algorithm included in the evaluation strategy to respectively determine initial evaluation parameters corresponding to the model portrait information, the current temperature status information, the current battery level, and the current battery status; Determining a target comprehensive parameter based on the initial evaluation parameters corresponding to the model portrait information, the current temperature status information, the current battery level, and the current battery status respectively and the weights in the evaluation strategy; Obtaining the target performance parameter corresponding to the target comprehensive parameter based on the correspondence between the comprehensive parameter and the performance parameter included in the evaluation strategy.
5. The performance control method according to claim 1, 2 or 4, characterized in that The if the target performance parameter is different from the reference performance parameter, determining the target service strategy corresponding to the target performance parameter includes: If the target performance parameter is different from the reference performance parameter, entering a cooling period, where the cooling period is the duration of waiting to re-obtain the target information; After the cooling period ends, re-obtaining the target information and obtaining the performance parameter corresponding to the re-obtained target information. If the re-obtained performance parameter is different from the reference performance parameter, determining the target service strategy.
6. The performance control method according to claim 5, characterized in that The processing the target information using the evaluation strategy to obtain a target performance parameter corresponding to the target information includes: When it is determined that the real-time performance information meets a preset condition and is not in the cooling period, processing the target information using the evaluation strategy to obtain the target performance parameter.
7. A performance control device, located in an electronic device, characterized in that, Including: An acquisition module, configured to perform acquiring target information in real time according to the device performance of the electronic device, where the target information includes real-time performance information when the electronic device is running; A processing module, configured to perform processing the target information acquired by the acquisition module by using an evaluation strategy to obtain a target performance parameter corresponding to the target information; The target performance parameter is used to guide the selection of a service strategy; A determination module, configured to perform determining a target service strategy corresponding to the target performance parameter if the target performance parameter obtained by the processing module is different from a reference performance parameter, where the reference performance parameter corresponds to a reference service strategy, and the reference service strategy is the service strategy used for the currently executed service; An adjustment module, configured to perform adjusting the reference service strategy to the target service strategy determined by the determination module.
8. An electronic device, characterized in that, Comprising: A processor; A memory for storing executable instructions of the processor; Wherein, the processor is configured to execute the instructions to implement the performance control method according to any one of claims 1-6.
9. A computer-readable storage medium having instructions stored thereon, characterized in that, When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the performance control method according to any one of claims 1-6.
10. A computer program product comprising computer instructions, characterized in that, The computer instructions, when executed by a processor, implement the performance control method according to any one of claims 1-6.
Citation Information
Patent Citations
Electronic equipment and control method thereof
CN106325321A
Program optimization method, device, terminal and storage medium
CN108491275A
Resource scheduling method and computer equipment
CN109960395A
Target scoring method and device, computer readable storage medium and electronic equipment
CN111178708A