Parameter adjustment method and device, electronic device, and storage medium
By obtaining the count values of the functional modules of electronic devices to determine performance information and adjusting configuration parameters, the problem of poor performance under different business scenarios was solved, and flexible matching and improvement of performance were achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN HEYTAP TECHNOLOGY CO LTD
- Filing Date
- 2024-12-05
- Publication Date
- 2026-06-05
AI Technical Summary
Existing electronic devices perform poorly in different business scenarios due to fixed configuration parameters of functional modules, making it difficult to match the specific needs of each business.
By obtaining the count value of the target unit of the target functional module within a certain period of time, performance information is determined, and configuration parameters are flexibly adjusted based on the performance information to match business requirements.
It improves the performance of electronic devices in specific business scenarios, enhances the performance matching of functional modules, and reduces implementation difficulty and cost.
Smart Images

Figure CN122152384A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic device computing, specifically to a parameter adjustment method and apparatus, an electronic device, and a storage medium. Background Technology
[0002] Current electronic devices (such as mobile phones and tablets) typically require adjustments to functional modules (such as central processing units and image processors) to improve performance when performing various tasks.
[0003] Therefore, adjusting the configuration parameters of functional modules in electronic devices to improve business performance is one of the directions that the industry needs to optimize. Summary of the Invention
[0004] This application discloses a parameter adjustment method, device, electronic device, and storage medium, which can flexibly adjust the configuration parameters of a target functional module according to its real-time performance information, so that its performance can match the needs of the target business.
[0005] The first aspect of this application discloses a parameter adjustment method applied to an electronic device, the method comprising:
[0006] When the target service is in progress, the count value of the target unit corresponding to the target functional module is obtained within a certain period of time. The count value is used to characterize the operation of the target unit within a certain period of time. The target functional module is a functional module in the electronic device that supports the target service.
[0007] Based on the count value of the target unit within a certain time period, determine the performance information corresponding to the target functional module;
[0008] Based on the performance information corresponding to the target functional module, the configuration parameters of the target functional module are adjusted, and the configuration parameters are used to determine the performance of the target functional module.
[0009] A second aspect of this application discloses a parameter adjustment device applied to an electronic device, the device comprising:
[0010] The acquisition unit is used to acquire the count value of the target unit corresponding to the target functional module within a certain time period when the target service is in progress. The count value is used to characterize the operation status of the target unit within a certain time period. The target functional module is a functional module in the electronic device that supports the target service.
[0011] The first determining unit is used to determine the performance information corresponding to the target functional module based on the count value of the target unit within a certain time period.
[0012] An adjustment unit is used to adjust the configuration parameters of the target functional module according to the performance information corresponding to the target functional module, wherein the configuration parameters are used to determine the performance of the target functional module.
[0013] A third aspect of this application discloses an electronic device, comprising:
[0014] Memory containing executable program code;
[0015] A processor coupled to the memory;
[0016] The processor calls the executable program code stored in the memory to execute the parameter adjustment method disclosed in the first aspect of the embodiments of this application.
[0017] A fourth aspect of this application discloses a computer-readable storage medium storing a computer program, wherein the computer program causes a computer to execute the parameter adjustment method disclosed in the first aspect of this application.
[0018] The fifth aspect of this application discloses a computer program product that, when run on a computer, causes the computer to perform some or all of the steps of any method of the first aspect of this application.
[0019] The sixth aspect of this application discloses an application publishing platform for publishing computer program products, wherein when the computer program products are run on a computer, the computer performs some or all of the steps of any one of the methods of the first aspect of this application.
[0020] Compared with related technologies, the embodiments of this application have the following beneficial effects:
[0021] In this embodiment, when the electronic device is in the target service state, it can obtain the count value of the target unit corresponding to the target functional module within a certain period of time. The count value is used to characterize the operation of the target unit within a certain period of time, and the target functional module is a functional module in the electronic device that supports the target service. Then, the electronic device can determine the performance information corresponding to the target functional module based on the count value of the target unit within a certain period of time. Furthermore, the electronic device can flexibly adjust the configuration parameters of the target functional module based on the real-time performance information of the target functional module, so that the performance of each target functional module in the electronic device can match the needs of the target service, thereby improving the performance of the target service. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 This is a flowchart illustrating a parameter adjustment method disclosed in an embodiment of this application;
[0024] Figure 2 This is a flowchart illustrating another parameter adjustment method disclosed in an embodiment of this application;
[0025] Figure 3 This is a flowchart illustrating another parameter adjustment method disclosed in the embodiments of this application;
[0026] Figure 4 This is a schematic diagram of the structure of a number adjustment device disclosed in an embodiment of this application;
[0027] Figure 5 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of this application. Detailed Implementation
[0028] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0029] It should be noted that the terms "first," "second," "third," and "fourth," etc., used in the specification and claims of this application are used to distinguish different objects, not to describe a specific order. The terms "comprising" and "having," and any variations thereof, in the embodiments of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or devices.
[0030] This application discloses a parameter adjustment method, device, electronic device, and storage medium, which can flexibly adjust the configuration parameters of a target functional module according to its real-time performance information, so that its performance can match the needs of the target business.
[0031] The technical solution of this application will be described in detail below with reference to specific embodiments.
[0032] To more clearly describe the parameter adjustment method disclosed in the embodiments of this application, the application scenarios applicable to this method are first introduced. Optionally, this method can be applied to various electronic devices, including but not limited to: portable electronic devices such as mobile phones and tablets, wearable devices such as smartwatches and smart bracelets, and desktop devices such as desktop computers and desktop TVs, etc., without limitation.
[0033] In related technologies, electronic devices typically use the same configuration parameters for their functional modules when performing different tasks. However, in practice, it has been found that different business scenarios have different performance requirements for functional modules, so using the same configuration parameters will lead to poor performance of the electronic device in certain business scenarios.
[0034] To address this, this application provides a parameter adjustment method to overcome technical deficiencies in related technologies. Optionally, when the electronic device is operating under a target service, it can obtain the count value of the target unit corresponding to the target functional module over a certain period of time. The count value characterizes the operating status of the target unit over this period, and the target functional module is a functional module in the electronic device that supports the target service. The electronic device can then determine the performance information corresponding to the target functional module based on the count value of the target unit over this period. Furthermore, the electronic device can flexibly adjust the configuration parameters of the target functional module based on its real-time performance information, so that the performance of each target functional module within the electronic device matches the requirements of the target service, thereby improving the performance of the target service.
[0035] In one optional embodiment, the parameter adjustment method provided in this application can be applied to game scenarios. In related technologies, electronic devices typically only adjust the Central Processing Unit (CPU) when in a game scenario. However, adjusting only the CPU has limited impact on improving game performance.
[0036] In this embodiment of the application, when the electronic device is in a game scene, it can obtain the count values of the target units corresponding to at least two different target functional modules within a certain period of time, and determine the performance information corresponding to at least two target functional modules respectively.
[0037] Then, based on the performance information corresponding to at least two target functional modules, the configuration parameters of at least two target functional modules are adjusted so that the performance of at least two target functional modules can match the needs of the target business, thereby improving the performance of electronic devices in gaming scenarios.
[0038] For example, at least two different target functional modules may include: graphics processing unit (GPU), memory module, etc., without limitation.
[0039] Based on this, the parameter adjustment method and apparatus, electronic device and storage medium disclosed in the embodiments of this application will be described below.
[0040] Please see Figure 1 , Figure 1 This is a flowchart illustrating a parameter adjustment method disclosed in an embodiment of this application. Optionally, this method can be applied to the aforementioned electronic device or other executing entities, and is not limited thereto. Optionally, the method may include the following steps:
[0041] 102. When the target service is in progress, obtain the count value of the target unit corresponding to the target functional module within a certain time period. The count value is used to characterize the operation status of the target unit within a certain time period. The target functional module is the functional module in the electronic device that supports the target service.
[0042] In this application embodiment, the target service may include various functional services that the electronic device can perform, including but not limited to: game service, communication service, location service or video playback service, etc., which are not limited here.
[0043] Optionally, an electronic device may have one or more functional modules that support the same target service, and the target functional module may be any one of the functional modules in the electronic device that support the target service.
[0044] For example, the functional modules in an electronic device that support gaming services may include a central processing unit (CPU), a graphics processing unit (GPU), and a memory module. Optionally, the target functional module may be at least one of a CPU, a GPU, and a memory.
[0045] In this embodiment of the application, the target unit corresponding to the target functional module can be: a unit that is associated with the functional implementation of the target functional module.
[0046] For example, if the target functional module is a graphics processor and the function of the graphics processor is to render images, then the target unit can be a shading engine for pixel rendering.
[0047] If the target functional module is a memory module, and the function of the memory module is data storage, then the target unit may include units such as the central processing unit and the graphics processing unit that have memory interaction with the memory module, which are not limited here.
[0048] In this embodiment of the application, the electronic device can collect the count value of the target unit corresponding to the target functional module within a certain period of time through the monitoring unit.
[0049] Optionally, the monitoring unit may include a Performance Monitoring Unit (PMU), which is a tool for reading performance-related data. Alternatively, the calculated values mentioned earlier may be counter values collected by the performance monitoring unit.
[0050] For example, the count values for the three target units—shading engine, central processing unit, and graphics processing unit—described above can be:
[0051] The count values for the shading engines can include: vertex shader counter, fragment shader counter, etc., and are not limited here.
[0052] The CPU's counter values may include: memory interaction information of the CPU's various cache levels;
[0053] The graphics processor's count values may include memory interaction information such as the graphics processor's bandwidth, latency, and texture count, which are not limited here.
[0054] In another embodiment, the count value described above can be the operating parameters recorded in the system operation log of the target unit, etc., and is not limited here. Electronic devices can directly collect the count value from the system operation log, thus eliminating the need to deploy a monitoring unit and improving the flexibility of the method.
[0055] 104. Determine the performance information corresponding to the target functional module based on the count value of the target unit within a certain time period.
[0056] As mentioned earlier, the count value represents the operation status of the target unit within a certain period of time. Since the target unit is a unit that is related to the functional implementation of the target functional module, the operation status of the target unit will affect the performance of the target functional module.
[0057] In particular, for certain target functional modules whose performance information is difficult to obtain, electronic devices can easily and efficiently determine the performance information of the target functional module by observing the operation of its corresponding target unit, thereby improving the compatibility and efficiency of the method.
[0058] In one optional embodiment, the electronic device can acquire the count value of the target unit and the target conversion relationship between the count value of the target unit and the performance information corresponding to the target functional module; then the electronic device can determine the performance information corresponding to the target functional module based on the count value of the target unit within a certain period of time and the target conversion relationship.
[0059] Optionally, the target transformation relationship can be set by the developers based on extensive development experience, and the target transformation relationship can be stored in the electronic device in advance, without any limitation.
[0060] Optionally, the target transformation relationship is not fixed and can be updated based on the execution of different target business. Alternatively, developers can also periodically iterate and update the target transformation relationship to improve its accuracy.
[0061] Optionally, the target conversion relationship may include: the count value of the target unit and the conversion formula between the target functional module and the performance information corresponding to the target functional module.
[0062] In this embodiment, the performance information corresponding to the target functional module can characterize the current performance status of the target functional module. For example, the performance information of the graphics processor may include the working time of the graphics processor, and the working time of the graphics processor will determine the effect of the image rendered by the graphics processor.
[0063] In another embodiment, the performance information corresponding to the target functional module can characterize the performance indicators that the target functional module needs to achieve. For example, the performance information of the memory module may include: the first memory frequency that the memory module needs to achieve.
[0064] 106. Based on the performance information corresponding to the target functional module, adjust the configuration parameters of the target functional module. The configuration parameters are used to determine the performance of the target functional module.
[0065] In this embodiment of the application, the configuration parameters of the target functional module may include various parameters that affect the performance of the target functional module.
[0066] Optionally, configuration parameters may include the frequency parameters of the target functional module.
[0067] Optionally, the configuration parameters of the graphics processor may include a first frequency parameter, wherein the first frequency parameter characterizes the operating frequency of the graphics processor module. Optionally, the operating duration of the graphics processor in each working cycle is negatively correlated with the first frequency parameter. That is, the larger the first frequency parameter, the shorter the operating duration of the graphics processor in each working cycle; the smaller the first frequency parameter, the longer the operating duration of the graphics processor in each working cycle.
[0068] In other words, the first frequency parameter of the graphics processor will affect the working time of the graphics processor.
[0069] Optionally, the configuration parameters of the memory module can be a second frequency parameter, which represents the current second memory frequency of the memory module; the second memory frequency can be positively correlated with the second frequency parameter.
[0070] In this embodiment, the electronic device can adjust the frequency parameters of the target functional module according to the performance information corresponding to the target functional module, so that the performance of the adjusted target functional module can meet the needs of the target service, thereby improving the performance of the target service executed by the electronic device.
[0071] By implementing the methods disclosed in the above embodiments, when the electronic device is in the target service state, it can obtain the count value of the target unit corresponding to the target functional module within a certain period of time. The count value is used to characterize the operation of the target unit within a certain period of time, and the target functional module is a functional module in the electronic device that supports the target service. Then, the electronic device can determine the performance information corresponding to the target functional module based on the count value of the target unit within a certain period of time. Furthermore, the electronic device can flexibly adjust the configuration parameters of the target functional module based on the real-time performance information of the target functional module, so that the performance of each target functional module in the electronic device can match the needs of the target service, thereby improving the performance of the target service.
[0072] Please see Figure 2 , Figure 2 This is a flowchart illustrating another parameter adjustment method disclosed in an embodiment of this application. Optionally, this method can be applied to the aforementioned electronic device or other executing entities, and is not limited thereto. Optionally, the method may include the following steps:
[0073] 202. When the target service is in progress, obtain the count value of the target unit corresponding to the target functional module within a certain time period. The count value is used to characterize the operation status of the target unit within a certain time period. The target functional module is the functional module in the electronic device that supports the target service.
[0074] In one optional embodiment, the target functional module may include an image processing module, which includes the graphics processor described above. The image processing module can be used to render the business screen of the target service. For example, assuming the target service is a game service, the image processing module can be used to render game screens.
[0075] The target unit corresponding to the image processing module may include: the shading engine included in the image processing module. Optionally, the shading engine may include a vertex shading engine, and / or a fragment shading engine, etc., which are not limited here.
[0076] The shader engine's counter value may include: the shader engine's operating parameters. Optionally, the shader engine's operating parameters may include the shader engine's counter value collected by the performance monitoring unit, which is not limited here. Optionally, the shader engine's operating parameters may include: the number of pixels rendered by the shader engine at the current moment. Optionally, the shader engine's operating parameters may include: the sum of the vertex shader engine's operating parameters and the fragment shader engine's operating parameters.
[0077] It should be noted that for the image processing module, the closer the rendering time (i.e. the working time of the image processing module) is to the frame duration of each business image when rendering each frame, the better the rendering effect will be.
[0078] The frame duration of a service frame is defined as the initial time required to render one frame of a service frame while meeting the service requirements of the target service. For example, if the target service requires a frame rate of 120 frames per second, then the time required to render one frame is 8.3ms; if the target service requires a frame rate of 60 frames per second, then the time required to render one frame is 16.67ms, and this is not a limitation.
[0079] Therefore, the direction the image processing module needs to adjust is to ensure that the processing time of the image processing module in rendering each frame of the business scene is close to the frame duration of the business scene. It is understood that the frame duration of the business scene is fixed according to business requirements. The following explains how to determine the processing time of the image processing module in rendering each frame of the business scene.
[0080] 204. Calculate the first difference between two adjacent operating parameters corresponding to each sampling interval among the multiple operating parameters of the shading engine.
[0081] In one optional embodiment, the count value of the shading engine over a certain period of time may include: multiple operating parameters of the shading engine acquired by the electronic device at acquisition intervals within a first period of time. The acquisition interval can be set by developers based on extensive development experience and is not limited here. The first period of time is as described above: the time required to render one frame of a business scene while meeting the business requirements of the target business.
[0082] Understandably, changes in the shader engine's counter value can reflect whether the shader engine is working. For example, a change in the shader engine's counter value indicates that the shader engine is working; if the shader engine's counter value does not change, it can be determined that the shader engine is not working.
[0083] It should be further explained that the working state of the image processing module is related to the working state of the shading engine. Therefore, the electronic device can determine the working state of the image processing module based on the working state of the shading engine.
[0084] Optionally, the electronic device can determine whether the image processing module is in operation within the corresponding acquisition interval based on the first difference between two adjacent operating parameters corresponding to each acquisition interval.
[0085] For example, the two adjacent operating parameters corresponding to the first acquisition interval are the first acquired operating parameter and the second acquired operating parameter; the two adjacent operating parameters corresponding to the first acquisition interval are the second acquired operating parameter and the third acquired operating parameter, which are not limited here.
[0086] Optionally, if the first difference between two adjacent operating parameters corresponding to the first acquisition interval is greater than or equal to the difference threshold, it indicates that the count value of the shading engine changes significantly within the first acquisition interval, and the shading engine is in working state within the first acquisition interval. Therefore, the image processing module is also in working state within the first acquisition interval.
[0087] Optionally, if the first difference between two adjacent operating parameters corresponding to the first acquisition interval is less than the difference threshold, the coloring engine is not in working state during the first acquisition interval, so the image processing module is also not in working state during the first acquisition interval.
[0088] The first acquisition interval can be any one of multiple acquisition intervals; the difference threshold can be set by the developers based on extensive development experience, and is not limited here.
[0089] 206. Accumulate the acquisition intervals where the first difference is greater than or equal to the difference threshold to obtain the total duration for which the image processing module is in working state within the first time period.
[0090] As mentioned earlier, the electronic device can calculate the first difference between two adjacent operating parameters corresponding to each acquisition interval. If the first difference is greater than or equal to the difference threshold, it indicates that the image processing module is in working condition within that acquisition interval.
[0091] Alternatively, the electronic device can accumulate the acquisition intervals where the first difference is greater than or equal to the difference threshold to obtain the total duration for which the image processing module is in working state within the first time period.
[0092] By implementing the above method, electronic devices can indirectly determine the working time of the image processing module based on the count value of the shading engine. This method is simple and efficient, thereby reducing the difficulty and cost of implementation.
[0093] 208. Based on the total duration of the image processing module being in working state within the first duration and the first duration, determine the running time information corresponding to the image processing module.
[0094] In this embodiment of the application, the performance information of the image processing module may include: the running time information corresponding to the image processing module, which is used to indicate the degree of closeness between the total duration of the image processing module in the working state within the first duration and the first duration.
[0095] Optionally, the runtime information corresponding to the image processing module may include: the target ratio between the total duration of the image processing module in working state within the first duration and the first duration; or, the second difference between the total duration of the image processing module in working state within the first duration and the first duration.
[0096] Understandably, the closer the target ratio between the total time the image processing module is in operation within the first time period and the first time period is to 1, the higher the degree of closeness between the two; conversely, the further the target ratio is from 1, the lower the degree of closeness between the two.
[0097] If the runtime information for the image processing module is the second difference between the total duration of the image processing module in operation within the first duration and the first duration, then the degree of closeness between the two is negatively correlated with the second difference. That is, the smaller the second difference, the higher the degree of closeness between the two; conversely, the larger the second difference, the lower the degree of closeness between the two.
[0098] 210. Based on the performance information corresponding to the target functional module, adjust the configuration parameters of the target functional module. The configuration parameters are used to determine the performance of the target functional module.
[0099] In this embodiment of the application, the configuration parameters of the image processing module may include a first frequency parameter.
[0100] The first frequency parameter is used to determine the total duration for which the image processing module is in the working state within the first time period. Optionally, the total duration for which the image processing module is in the working state within the first time period is negatively correlated with the first frequency parameter. That is, the larger the first frequency parameter, the shorter the total duration for which the image processing module is in the working state within the first time period; the smaller the first frequency parameter, the longer the total duration for which the image processing module is in the working state within the first time period.
[0101] Optionally, if the runtime information corresponding to the image processing module is less than the first threshold, the first frequency parameter of the image processing module can be reduced.
[0102] If the runtime information corresponding to the image processing module is greater than the second threshold, the first frequency parameter of the image processing module can be increased.
[0103] In an optional embodiment, if the target ratio between the total duration of the image processing module in working state within the first duration and the first duration is less than the first degree threshold, it indicates that the rendering duration of the image processing module has not reached the frame duration of a service image, and the image processing module cannot achieve the best rendering effect. In this case, the electronic device can reduce the first frequency parameter of the image processing module to increase the total duration of the image processing module in working state within the first duration, thereby enabling the rendering duration of the image processing module to reach the frame duration of a service image and improving the rendering effect of the image processing module.
[0104] If the ratio between the total time the image processing module is in operation within the first time period and the target value of the first time period is greater than the second threshold, it indicates that the rendering time of the image processing module exceeds the frame duration of a single business image. This means the image processing module has achieved optimal rendering results, but is overloaded, increasing the power consumption of the electronic device. To address this, the electronic device can increase the first frequency parameter of the image processing module to reduce the total time the module is in operation within the first time period, thereby reducing power consumption while still achieving optimal rendering results.
[0105] Optionally, the first-level threshold and the second-level threshold can be set by the developers based on extensive development experience. The first-level threshold and the second-level threshold can be 1 or a value close to 1, without any limitation here.
[0106] The second level threshold can be greater than the first level threshold. For example, the second level threshold can be 1.2 and the first level threshold can be 1; or the second level threshold can be 1.1 and the first level threshold can be 0.9, etc., without limitation.
[0107] In another embodiment, the second level threshold may be equal to the first level threshold. For example, the first level threshold and the second level threshold may be 0.9, 1, 1.2, etc., and are not limited thereto.
[0108] Optionally, the runtime information corresponding to the above-mentioned image processing module can be: the total duration of the image processing module in working state within the first duration and the target ratio between the first duration and the first duration.
[0109] By implementing the above method, the electronic device can, when the running time information corresponding to the image processing module is less than a first threshold, reduce the first frequency parameter of the image processing module to increase the total working time of the image processing module within a first duration, thereby enabling the rendering time of the image processing module to reach the frame duration of one business image, thus improving the rendering effect of the image processing module; and when the running time information corresponding to the image processing module is greater than a second threshold, the first frequency parameter of the image processing module can be increased to reduce the total working time of the image processing module within a first duration, thereby reducing the power consumption of the electronic device while satisfying the optimal rendering effect.
[0110] By implementing the methods disclosed in the above embodiments, when an electronic device is in the target service state, it can obtain the count value of the target unit corresponding to the target functional module within a certain time period. The count value is used to characterize the operation of the target unit within the certain time period, and the target functional module is a functional module in the electronic device that supports the target service. Furthermore, the electronic device can determine the performance information corresponding to the target functional module based on the count value of the target unit within the certain time period. Furthermore, the electronic device can flexibly adjust the configuration parameters of the target functional module based on the real-time performance information of the target functional module, so that the performance of each target functional module in the electronic device can match the requirements of the target service, thereby improving the performance of the target service. Additionally, the electronic device can indirectly determine image processing based on the count value of the shading engine. The method for determining the module's working time is simple and efficient, thus reducing the implementation difficulty and cost. Furthermore, when the image processing module's running time is less than a first threshold, the electronic device can reduce the first frequency parameter of the image processing module to increase the total working time of the image processing module within the first duration, thereby enabling the rendering time of the image processing module to reach the frame duration of one business image, thus improving the rendering effect. Conversely, when the image processing module's running time is greater than a second threshold, the first frequency parameter of the image processing module can be increased to reduce the total working time of the image processing module within the first duration, thereby reducing the power consumption of the electronic device while achieving optimal rendering results.
[0111] Please see Figure 3 , Figure 3 This is a flowchart illustrating another parameter adjustment method disclosed in this application. Optionally, this method can be applied to the aforementioned electronic device or other execution entities, and is not limited thereto. Optionally, the method may include the following steps:
[0112] 302. When the target service is in progress, obtain the count value of the target unit corresponding to the target functional module within a certain time period. The count value is used to characterize the operation status of the target unit within a certain time period. The target functional module is a functional module in the electronic device that supports the target service.
[0113] In one optional embodiment, the target functional module may include a memory module for storing service data of the target service. Optionally, the memory module may include Double Data Rate (DDR) synchronous dynamic random access memory (RAM), etc., and is not limited thereto.
[0114] The target unit corresponding to the memory module can include: functional modules that interact with the memory module in terms of memory. The target unit corresponding to the memory module can include, but is not limited to: the central processing unit and graphics processing unit mentioned above, etc., which are not limited here.
[0115] The count value corresponding to the target unit may include: memory interaction information between the target unit and the memory module, which is used to determine the memory interaction frequency between the target unit and the memory module.
[0116] Optionally, memory interaction information may include: the frequency of memory interaction operations at each level of the target unit's cache. Optionally, memory interaction operations may include: stall, refill, and cache miss at each level of the cache.
[0117] Optionally, the memory interaction information may also include: bandwidth information, latency information and texture quantity of the target unit, etc., which are not limited here.
[0118] 304. Based on the multiple memory interaction information between the target unit and the memory module within a certain time period, and the target coefficients corresponding to the multiple memory interaction information, perform weighted summation calculation to obtain the summation result; determine the summation result as the first memory frequency that the memory module needs to meet.
[0119] In this embodiment, the performance information of the memory module may include a first memory frequency that the memory module needs to meet. Optionally, the first memory frequency that the memory module needs to meet may be determined by the memory interaction frequency of the target unit that has memory interaction with the memory module.
[0120] For example, the memory interaction frequency required by the central processing unit may be 1.5G or 2G, etc., without being limited here. Then the first memory frequency that the memory module needs to meet is 1.5G or 2G.
[0121] To address this, we will first explain how to determine the memory interaction frequency of the target unit corresponding to the memory module.
[0122] Optionally, the electronic device can acquire multiple memory interaction information between the target unit and the memory module within a certain time period, and determine the memory interaction frequency of the target unit through a preset fitting formula and multiple memory interaction information.
[0123] Optionally, the preset fitting formula may include: cumulative calculation of multiple memory interaction information or weighted cumulative calculation, which is not limited here.
[0124] In one embodiment, the electronic device can perform a weighted summation calculation on the frequency of memory interaction operations of the central processing unit (CPU) at each level of cache within a certain time period, and the corresponding target coefficients, to obtain the CPU's memory interaction frequency.
[0125] In another embodiment, the electronic device can perform a weighted summation calculation on the bandwidth information, latency information, and texture quantity of the graphics processor over a certain period of time, as well as the corresponding target coefficients, to obtain the memory interaction frequency of the graphics processor, which is not limited here.
[0126] As mentioned earlier, there may be multiple target units that interact with the memory module. In this case, the electronic device can calculate the memory interaction frequency of each target unit separately and determine the highest memory interaction frequency among all target units as the first memory frequency that the memory module needs to meet.
[0127] For example, assuming the memory interaction frequency of the central processing unit may be 1.5G and the memory interaction frequency of the graphics processing unit may be 2G, then the first memory frequency that the memory module needs to meet can be determined to be 2G.
[0128] By implementing the above method, the electronic device can indirectly determine the first memory frequency that the memory module needs to meet based on the memory interaction information between the target unit and the memory module, instead of relying on experience to determine the first memory frequency that the memory module needs to meet, thus improving the accuracy of determining the first memory frequency. In addition, the method of determining the first memory frequency by fitting multiple memory interaction information is easy to implement, thereby reducing the implementation cost and difficulty of the method.
[0129] The target coefficients corresponding to the memory interaction information introduced earlier can be set by developers based on extensive development experience. These target coefficients can be pre-stored in the local storage of the electronic device; this is not a limitation here.
[0130] In an alternative embodiment, the target coefficient corresponding to the memory interaction information may be determined by the current second memory frequency of the memory module.
[0131] Optionally, the electronic device can obtain the current second memory frequency of the memory module; and determine the target coefficients corresponding to multiple memory interaction information based on the second memory frequency. Optionally, the electronic device can determine the target frequency range in which the current second memory frequency of the memory module is located, and determine the coefficients corresponding to the target frequency range as the target coefficients.
[0132] Optionally, the target coefficient can be positively correlated with the target value corresponding to the target frequency range. The target value is a value used to characterize the frequency magnitude of the target frequency range, such as the upper limit, lower limit, or median value of the target frequency range, which is not limited here.
[0133] For example, if the current second memory frequency of the memory module is between 500MHz and 1GHz, the target coefficient is 0.5; and if the current second memory frequency of the memory module is between 1GHz and 2GHz, the target coefficient is 2, without limitation.
[0134] By implementing the above method, the electronic device can adjust the target coefficient of the memory interaction information according to the current second memory frequency of the memory module, thereby improving the accuracy of the memory interaction frequency of the target unit obtained by weighted accumulation of the memory interaction information and the target coefficient.
[0135] 306. Based on the performance information corresponding to the target functional module, adjust the configuration parameters of the target functional module. The configuration parameters are used to determine the performance of the target functional module.
[0136] In this embodiment, the configuration parameters of the memory module may include a second frequency parameter of the memory module, which is used to determine the current second memory frequency of the memory module. Optionally, the current second memory frequency of the memory module may be positively correlated with the second frequency parameter.
[0137] Optionally, the electronic device can obtain the current second memory frequency of the memory module and adjust the second frequency parameter of the memory module according to the current second memory frequency of the memory module and the first memory frequency that the memory module needs to meet.
[0138] Optionally, if the current second memory frequency of the memory module is less than the first memory frequency that the memory module needs to meet, the electronic device can increase the second frequency parameter of the memory module to increase the memory frequency of the memory module, so that the adjusted memory frequency of the memory module is greater than or equal to the first memory frequency.
[0139] If the current second memory frequency of the memory module is greater than the first memory frequency that the memory module needs to meet, the electronic device can reduce the second frequency parameter of the memory module to reduce the memory frequency of the memory module, so that the adjusted memory frequency of the memory module is equal to or close to the first memory frequency.
[0140] By implementing the above method, when the current second memory frequency of the memory module is lower than the first memory frequency required by the memory module, the electronic device can increase the second frequency parameter of the memory module to increase the memory frequency of the memory module, so that the adjusted memory frequency of the memory module can meet the memory interaction requirements of the target unit. In addition, when the current second memory frequency of the memory module is higher than the first memory frequency required by the memory module, the second frequency parameter of the memory module can be decreased to reduce the memory frequency of the memory module, thereby saving power of the electronic device.
[0141] In one optional embodiment, after the electronic device adjusts the configuration parameters of the target functional module according to the performance information corresponding to the target functional module, it can output a first prompt message, which is used to prompt the adjusted performance information of the target functional module.
[0142] If a parameter adjustment operation is detected in response to the first prompt message, the configuration parameters of the target functional module are adjusted according to the parameter adjustment operation, and the adjusted configuration parameters are determined as custom configuration parameters and stored in the cache of the electronic device.
[0143] Furthermore, in the next execution of the target business, retrieve the custom configuration parameters from the cache, and adjust the configuration parameters of the target functional module based on the current performance information of the target functional module and the custom configuration parameters.
[0144] By implementing the above methods, after adjusting and optimizing the target functional modules, the user can be prompted with the first prompt message, thus providing feedback and improving the user experience. In addition, user-defined configuration parameters can be saved and automatically used the same parameters the next time the target business is executed, thereby improving the user experience.
[0145] In one optional embodiment, the electronic device can predict the first power consumption value of the adjusted target functional module based on the performance information corresponding to the target functional module.
[0146] If the first power consumption value is less than or equal to the power consumption threshold, the configuration parameters of the target functional module are adjusted according to the performance information corresponding to the target functional module.
[0147] If the first power consumption value is greater than the power consumption threshold, then the current remaining target power of the electronic device is obtained; if the target power is greater than the power threshold, then the configuration parameters of the target functional module are adjusted according to the performance information corresponding to the target functional module.
[0148] If the target battery level is less than or equal to the battery threshold, the step of adjusting the configuration parameters of the target functional module based on the performance information corresponding to the target functional module will not be executed, thereby improving the battery life of the electronic device.
[0149] Optionally, if the target power level is less than or equal to the power threshold, and if the first condition is met, the electronic device can perform the step of adjusting the configuration parameters of the target functional module according to the performance information corresponding to the target functional module.
[0150] Optionally, the first condition may include: the presence of charging equipment within a first geographical range around the electronic device; and / or, the target service is an emergency type service. Optionally, emergency type services may include: services related to the life and property of users, such as emergency call services, mountain location services, etc., which are not limited here.
[0151] By implementing the above method, even if adjusting the configuration parameters of the target functional module would increase the power consumption of the electronic device, adjustments will still be made when the electronic device has a charging device or the target business is related to the user's life and property. This protects the user's life and property safety and improves the flexibility of the method.
[0152] By implementing the methods disclosed in the above embodiments, when an electronic device is in the target service state, it can obtain the count value of the target unit corresponding to the target functional module within a certain time period. The count value is used to characterize the operation of the target unit within a certain time period, and the target functional module is a functional module in the electronic device that supports the target service. Furthermore, the electronic device can determine the performance information corresponding to the target functional module based on the count value of the target unit within a certain time period. Furthermore, the electronic device can flexibly adjust the configuration parameters of the target functional module based on the real-time performance information of the target functional module, so that the performance of each target functional module in the electronic device can match the requirements of the target service, thereby improving the performance of the target service. Also, the electronic device can indirectly determine the first memory frequency that the memory module needs to meet based on the memory interaction information between the target unit and the memory module, rather than relying on experience to determine the first memory frequency, thus improving the accuracy of determining the first memory frequency. In addition, determining the first memory frequency by fitting multiple memory interaction information is easy to implement, thereby reducing the implementation cost and difficulty of the method.
[0153] Furthermore, the electronic device can adjust the target coefficient of memory interaction information based on the current second memory frequency of the memory module, thereby improving the accuracy of the memory interaction frequency of the target unit obtained by weighted accumulation of memory interaction information and target coefficient. Also, if the current second memory frequency of the memory module is lower than the first memory frequency required by the memory module, the second frequency parameter of the memory module can be increased to increase the memory frequency of the memory module, so that the adjusted memory frequency can meet the memory interaction requirements of the target unit. Additionally, if the current second memory frequency of the memory module is higher than the first memory frequency required by the memory module, the second frequency parameter of the memory module can be decreased to reduce the memory frequency of the memory module, thereby saving power in the electronic device.
[0154] Please see Figure 4 , Figure 4 This is a schematic diagram of the structure of a number adjustment device disclosed in an embodiment of this application. Optionally, this device can be applied to the aforementioned electronic device or other execution entities, which are not limited herein. Optionally, the device may include an acquisition unit 402, a first determination unit 404, and an adjustment unit 406, wherein:
[0155] The acquisition unit 402 is used to acquire the count value of the target unit corresponding to the target functional module within a certain period of time when the target service is in progress. The count value is used to characterize the operation status of the target unit within a certain period of time. The target functional module is a functional module in the electronic device that supports the target service.
[0156] The first determining unit 404 is used to determine the performance information corresponding to the target functional module based on the count value of the target unit within a certain time period.
[0157] The adjustment unit 406 is used to adjust the configuration parameters of the target functional module according to the performance information corresponding to the target functional module. The configuration parameters are used to determine the performance of the target functional module.
[0158] By implementing the above device, when the electronic device is in the target service state, it can obtain the count value of the target unit corresponding to the target functional module within a certain period of time. The count value is used to characterize the operation status of the target unit within a certain period of time, and the target functional module is the functional module in the electronic device that supports the target service. Then, the electronic device can determine the performance information corresponding to the target functional module based on the count value of the target unit within a certain period of time. Furthermore, the electronic device can flexibly adjust the configuration parameters of the target functional module based on the real-time performance information of the target functional module, so that the performance of each target functional module in the electronic device can match the needs of the target service, thereby improving the performance of the target service.
[0159] As an optional implementation, the target functional module includes an image processing module, which is used to render the business screen of the target service.
[0160] The target unit includes: the shading engine included in the image processing module; the count value includes: the operating parameters of the shading engine;
[0161] Performance information includes: runtime information for the image processing module. The runtime information indicates the total duration for which the image processing module is in operation within a first duration, and how close it is to the first duration. The first duration is the time required to render one frame of a business image while meeting the business requirements of the target business.
[0162] As an optional implementation, the count value includes: multiple operating parameters of the shading engine acquired according to the acquisition interval within the first duration; and the first determining unit 404 is further configured to calculate a first difference between two adjacent operating parameters corresponding to each acquisition interval among the multiple operating parameters of the shading engine; and to accumulate acquisition intervals whose first difference is greater than or equal to the difference threshold to obtain the total duration for which the image processing module is in working state within the first duration; and to determine the running time information corresponding to the image processing module based on the total duration for which the image processing module is in working state within the first duration.
[0163] By implementing the above device, the electronic device can indirectly determine the working time of the image processing module based on the count value of the color engine. This method is simple and efficient, thereby reducing the difficulty and cost of implementation.
[0164] As an optional implementation, the configuration parameters of the image processing module include: a first frequency parameter of the image processing module, the first frequency parameter being used to determine the total duration for which the image processing module is in a working state within a first duration; and the adjustment unit 406 being further used to reduce the first frequency parameter of the image processing module when the running time information is less than a first degree threshold; and to increase the first frequency parameter of the image processing module if the running time information is greater than a second degree threshold, the second degree threshold being greater than the first degree threshold.
[0165] By implementing the above apparatus, when the running time information corresponding to the image processing module is less than a first threshold, the first frequency parameter of the image processing module can be reduced to increase the total working time of the image processing module within a first duration, thereby enabling the rendering time of the image processing module to reach the frame duration of one business image, thus improving the rendering effect of the image processing module; and when the running time information corresponding to the image processing module is greater than a second threshold, the first frequency parameter of the image processing module can be increased to reduce the total working time of the image processing module within a first duration, thereby reducing the power consumption of the electronic device while satisfying the optimal rendering effect.
[0166] As an optional implementation, the runtime information corresponding to the image processing module includes: the target ratio between the total duration of the image processing module in working state within the first duration and the first duration, or the second difference between the total duration of the image processing module in working state within the first duration and the first duration.
[0167] As an optional implementation, the target functional module includes a memory module, which is used to store the business data of the target service;
[0168] The target unit includes: a functional module that interacts with the memory module; the count value includes: memory interaction information between the target unit and the memory module, which is used to determine the memory interaction frequency between the target unit and the memory module.
[0169] Performance information includes: the first memory frequency that the memory module needs to meet.
[0170] As an optional implementation, the first determining unit 404 is further configured to perform weighted summation calculation based on multiple memory interaction information between the target unit and the memory module within a certain time period, and the target coefficients corresponding to the multiple memory interaction information respectively, to obtain a summation result; and to determine the summation result as the first memory frequency that the memory module needs to satisfy.
[0171] By implementing the above-described device, the electronic device can indirectly determine the first memory frequency that the memory module needs to meet based on the memory interaction information between the target unit and the memory module, rather than relying on experience to determine the first memory frequency that the memory module needs to meet, thus improving the accuracy of determining the first memory frequency. In addition, the method of determining the first memory frequency by fitting multiple memory interaction information is easy to implement, thereby reducing the implementation cost and difficulty of the method.
[0172] As an optional implementation method, Figure 4 The apparatus shown may further include a second determining unit (not shown), wherein:
[0173] The second determining unit is used to obtain the current second memory frequency of the memory module before performing weighted summation calculation based on multiple memory interaction information between the target unit and the memory module within a certain time period, and the target coefficients corresponding to the multiple memory interaction information respectively; and to determine the target coefficients corresponding to the multiple memory interaction information respectively based on the second memory frequency.
[0174] By implementing the above device, the electronic device can adjust the target coefficient of the memory interaction information according to the current second memory frequency of the memory module, thereby improving the accuracy of the memory interaction frequency of the target unit obtained by weighted accumulation of the memory interaction information and the target coefficient.
[0175] As an optional implementation, the configuration parameters of the memory module include: a second frequency parameter of the memory module, which is used to determine the current second memory frequency of the memory module; the adjustment unit 406 is further used to increase the second frequency parameter of the memory module when the current second memory frequency of the memory module is less than the first memory frequency that the memory module needs to meet; and to decrease the second frequency parameter of the memory module if the current second memory frequency of the memory module is greater than the first memory frequency that the memory module needs to meet.
[0176] By implementing the above-described device, when the current second memory frequency of the memory module is lower than the first memory frequency required by the memory module, the second frequency parameter of the memory module can be increased to improve the memory frequency of the memory module, so that the adjusted memory frequency of the memory module can meet the memory interaction requirements of the target unit. Conversely, when the current second memory frequency of the memory module is higher than the first memory frequency required by the memory module, the second frequency parameter of the memory module can be decreased to reduce the memory frequency of the memory module, thereby saving power of the electronic device.
[0177] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of this application.
[0178] like Figure 5 As shown, the electronic device may include:
[0179] Memory 501 storing executable program code;
[0180] Processor 502 coupled to memory 501;
[0181] The processor 502 calls the executable program code stored in the memory 501 to execute the parameter adjustment methods disclosed in the above embodiments.
[0182] This application discloses a computer-readable storage medium storing a computer program that causes a computer to execute the parameter adjustment methods disclosed in the above embodiments.
[0183] This application also discloses an application publishing platform, which is used to publish computer program products. When the computer program products are run on a computer, the computer performs some or all of the steps of the methods described in the above method embodiments.
[0184] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Those skilled in the art should also recognize that the embodiments described in the specification are optional embodiments, and the actions and modules involved are not necessarily essential to this application.
[0185] In the various embodiments of this application, it should be understood that the sequence number of each process does not necessarily imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0186] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they can be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0187] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0188] If the aforementioned integrated units are implemented as software functional units and sold or used as independent products, they can be stored in a computer-accessible memory. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several requests to cause a computer device (which can be a personal computer, server, or network device, specifically a processor in the computer device) to execute some or all of the steps of the methods described in the various embodiments of this application.
[0189] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.
[0190] The parameter adjustment method, apparatus, electronic device, and storage medium disclosed in the embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A parameter adjustment method, characterized in that, Applied to electronic devices, the method includes: When the target service is in progress, the count value of the target unit corresponding to the target functional module is obtained within a certain period of time. The count value is used to characterize the operation of the target unit within a certain period of time. The target functional module is a functional module in the electronic device that supports the target service. Based on the count value of the target unit within a certain time period, determine the performance information corresponding to the target functional module; Based on the performance information corresponding to the target functional module, the configuration parameters of the target functional module are adjusted, and the configuration parameters are used to determine the performance of the target functional module.
2. The method according to claim 1, characterized in that, The target functional module includes an image processing module, which is used to render the business screen of the target service. The target unit includes: the coloring engine included in the image processing module; the count value includes: the operating parameters of the coloring engine; The performance information includes: the running time information corresponding to the image processing module, which is used to indicate the total duration of the image processing module in working state within a first duration, and the degree of closeness to the first duration. The first duration is the duration required to render one frame of the business image while meeting the business requirements of the target business.
3. The method according to claim 2, characterized in that, The count value includes: multiple operating parameters of the shading engine acquired at collection intervals within the first time period; determining the performance information corresponding to the target functional module based on the count value of the target unit within a certain time period includes: Calculate the first difference between two adjacent operating parameters corresponding to each acquisition interval among the multiple operating parameters of the shading engine; The acquisition intervals where the first difference is greater than or equal to the difference threshold are accumulated to obtain the total duration during which the image processing module is in working state within the first time period; Based on the total duration during which the image processing module is in working state within the first time period, the running time information corresponding to the image processing module is determined.
4. The method according to claim 2, characterized in that, The configuration parameters of the image processing module include: a first frequency parameter of the image processing module, wherein the first frequency parameter is used to determine the total duration for which the image processing module is in working state within a first time period; adjusting the configuration parameters of the target functional module according to the performance information corresponding to the target functional module includes: If the running time information is less than the first threshold, then the first frequency parameter of the image processing module is reduced; If the runtime information is greater than the second threshold, then the first frequency parameter of the image processing module is increased, where the second threshold is greater than the first threshold.
5. The method according to any one of claims 2 to 4, characterized in that, The runtime information corresponding to the image processing module includes: the total duration for which the image processing module is in working state within a first duration, and the target ratio between the first duration; or... The second difference between the total duration during which the image processing module is in operation within the first duration and the first duration.
6. The method according to claim 1, characterized in that, The target functional module includes a memory module, which is used to store the business data of the target service. The target unit includes: a functional module that interacts with the memory module in memory; the count value includes: memory interaction information between the target unit and the memory module, the memory interaction information being used to determine the memory interaction frequency between the target unit and the memory module; The performance information includes: the first memory frequency that the memory module needs to meet.
7. The method according to claim 6, characterized in that, The step of determining the performance information corresponding to the target functional module based on the count value of the target unit over a certain period of time includes: Based on multiple memory interaction information between the target unit and the memory module within a certain time period, and the target coefficients corresponding to the multiple memory interaction information, a weighted summation calculation is performed to obtain the summation result; The accumulated result is determined as the first memory frequency that the memory module needs to meet.
8. The method according to claim 7, characterized in that, Before performing a weighted summation calculation based on multiple memory interaction information between the target unit and the memory module over a certain period of time, and the target coefficients corresponding to each of the multiple memory interaction information, the method further includes: Obtain the current second memory frequency of the memory module; Based on the second memory frequency, the target coefficients corresponding to the multiple memory interaction information are determined respectively.
9. The method according to any one of claims 6 to 8, characterized in that, The configuration parameters of the memory module include: a second frequency parameter of the memory module, wherein the second frequency parameter is used to determine the current second memory frequency of the memory module; adjusting the configuration parameters of the target functional module according to the performance information corresponding to the target functional module includes: If the current second memory frequency of the memory module is lower than the first memory frequency that the memory module needs to meet, then the second frequency parameter of the memory module is increased. If the current second memory frequency of the memory module is greater than the first memory frequency that the memory module needs to meet, then the second frequency parameter of the memory module is reduced.
10. A parameter adjustment device, characterized in that, Applied to electronic devices, the device includes: The acquisition unit is used to acquire the count value of the target unit corresponding to the target functional module within a certain time period when the target service is in progress. The count value is used to characterize the operation status of the target unit within a certain time period. The target functional module is a functional module in the electronic device that supports the target service. The first determining unit is used to determine the performance information corresponding to the target functional module based on the count value of the target unit within a certain time period. An adjustment unit is used to adjust the configuration parameters of the target functional module according to the performance information corresponding to the target functional module, wherein the configuration parameters are used to determine the performance of the target functional module.
11. An electronic device, characterized in that, The method includes a memory storing executable program code and a processor coupled to the memory; wherein the processor invokes the executable program code stored in the memory to perform the method as described in any one of claims 1 to 9.
12. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 9.