Equipment function configuration method and device, electronic equipment and storage medium
By determining the target performance information of the device in short video applications and quantifying it, the problem of device performance limiting high-order functional applications is solved, and the refined configuration of device functions and the normal use of high-order functions are realized.
Patent Information
- Application Number
- CN202311236269.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-22
- Publication Date
- 2025-03-25
AI Technical Summary
In short video applications, device performance limits the application of high-end functions, resulting in high-end devices being unable to experience high-end functions, while functional optimization of low-end devices makes many high-end functions unavailable.
By determining the target performance information of the current model equipment, the equipment functions are finely configured based on the quantitative results of the target performance indicators to achieve the adaptation and optimization of the equipment functions.
The refined configuration of device functions is realized, which avoids the problem of high-level functions being unable to be used normally due to improper functional configuration, and improves the application experience of device functions.
Smart Images

Figure CN119690494A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer technology, and in particular, to a method and apparatus for configuring device functions, an electronic device, and a storage medium. Background Art
[0002] In short video applications, audio and video recording, editing, and synthesis have certain performance requirements for device performance. In the process of gradually integrating complex functions into short video applications, the performance of the device becomes a limitation for the application's high-level functions. For example, the same special effect function can run smoothly on high-end devices, but it may be directly stuck and unusable on low-end devices. In this regard, the function is usually optimized to the bottom line where most devices can run smoothly, and the full amount is available for all devices to use, but this will cause many high-level functions to be unusable, which in turn causes many functions to be restricted and unusable. Summary of the invention
[0003] The present disclosure provides a device function configuration method, apparatus, electronic device and storage medium to achieve accurate aggregate quantification of device performance and perform refined device function configuration accordingly.
[0004] In a first aspect, an embodiment of the present disclosure provides a method for configuring device functions, including:
[0005] Determine target performance information corresponding to the current model device, the target performance information indicating the target performance distribution of the current model device, the target performance distribution is the number of current model devices that hit different time consumption intervals determined according to the target time consumption information, and the target time consumption information is used to describe the device operation time detected by each current model device from the target performance indicator dimension;
[0006] Determine a target performance indicator quantification result corresponding to the current model device based on the target performance information, wherein the target performance indicator quantification result is the performance size of the current model device measured from the target performance indicator dimension;
[0007] Based on the quantified result of the target performance indicator corresponding to the current model device, the device function of the current model device is configured.
[0008] In a second aspect, the present disclosure also provides a device function configuration apparatus, including:
[0009] A first determination module is used to determine target performance information corresponding to the current model device, the target performance information indicates the target performance distribution of the current model device, the target performance distribution is the number of current model devices that hit different time consumption intervals determined according to the target time consumption information, and the target time consumption information is used to describe the device operation time detected by each current model device from the target performance indicator dimension;
[0010] A second determination module is used to determine a target performance indicator quantification result corresponding to the current model device based on the target performance information, wherein the target performance indicator quantification result is the performance size of the current model device measured from the target performance indicator dimension;
[0011] The configuration module is used to configure the device function of the current model device based on the quantified result of the target performance indicator corresponding to the current model device.
[0012] In a third aspect, an electronic device is also provided in an embodiment of the present disclosure, the electronic device comprising:
[0013] at least one processor; and
[0014] a memory communicatively connected to the at least one processor; wherein,
[0015] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the device function configuration method described in any one of the above embodiments.
[0016] In a fourth aspect, a computer-readable medium is also provided in an embodiment of the present disclosure, wherein the computer-readable medium stores computer instructions, and the computer instructions are used to enable a processor to implement the device function configuration method described in any one of the above embodiments when executed.
[0017] In the disclosed embodiment, corresponding target performance information describing the target performance distribution of the current model device from the target performance indicator dimension will be determined for the current model device. The target performance distribution is the number of current model devices that hit different time consumption intervals determined according to the target time consumption information. The target time consumption information is used to describe the device operation time detected by each current model device from the target performance indicator dimension. On this basis, the device performance of the current model device is quantified using the target performance information corresponding to the current model device to obtain the corresponding target performance indicator quantification result of the performance size of the current model device measured from the target performance indicator dimension. In this way, the device function of the current model device can be adapted according to the target performance indicator quantification result, so as to realize the refined configuration of appropriate device functions for the current model device, and try to avoid the inability to use many high-level functions normally after they are launched due to improper device function configuration, thereby affecting the application and use of the device functions on the device.
[0018] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0020] Figure 1 It is a schematic diagram of a device function configuration method provided by an embodiment of the present disclosure;
[0021] Figure 2 is a target performance distribution diagram of target performance information applicable to the embodiments of the present disclosure;
[0022] Figure 3 This is a schematic diagram of selecting a performance detection scenario applicable to the embodiments of the present disclosure;
[0023] Figure 4 It is a flowchart of another device function configuration method provided by an embodiment of the present disclosure;
[0024] Figure 5 It is a schematic diagram of the structure of a device function configuration apparatus provided by an embodiment of the present disclosure;
[0025] Figure 6 It is a structural schematic diagram of an electronic device for implementing a device function configuration method provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0027] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0028] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0029] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0030] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0031] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0032] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0033] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0034] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0035] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0036] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0037] Figure 1A flow chart of a device function configuration method provided in an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the situation where device performance is quantified according to device model to perform fine configuration of device functions. The method can be executed by a device function configuration device, which can be implemented in the form of software and / or hardware and is generally integrated on any electronic device with network communication function, which can be a mobile terminal, PC or server, etc.
[0038] like Figure 1 As shown, the device function configuration method of the embodiment of the present disclosure may include the following process:
[0039] S110. Determine the target performance information corresponding to the current model device. The target performance information indicates the target performance distribution of the current model device. The target performance distribution is the number of current model devices that hit different time consumption intervals determined according to the target time consumption information. The target time consumption information is used to describe the device operation time detected by each current model device from the target performance indicator dimension.
[0040] In the process of gradually integrating complex functions into short video applications, the performance of the device becomes a limitation of the application's high-end functions. For example, the same special effect function can run smoothly on high-end devices, but it may be stuck and unusable on low-end devices. In response to the above problems, the usual practice is to compromise downward, optimize the functions to the point where most devices can use them smoothly, and then make them available to all devices, sacrificing functions in exchange for device coverage. However, the consequence of doing so is that many high-end functions cannot be launched, the application of high-end functions is greatly restricted, and high-end devices cannot experience many high-end functions that should be available.
[0041] To this end, some performance indicators can be pre-configured, and devices with different device performance can be distinguished from each other through various performance indicators, so that device functions can be distributed in a refined manner according to devices with different device performance. Devices that can use extreme effects can get device functions with extreme effects, and other devices can be downgraded or replaced with device functions with relatively low performance requirements, so that they can be compatible with high-level content iterations and the experience of the full range of devices.
[0042] See also Figure 2, taking the current model device as an example, the target performance distribution of the current model device described from different target performance indicator dimensions can be determined. The target performance distribution can refer to the number of current model devices that hit different time-consuming intervals. The number of current model devices in each time-consuming interval is set according to the device operation time of each current model device determined by detecting each current model device from the target performance indicator dimension. Among them, the target performance information includes the device model identification of the current model device, the target performance indicator dimension adopted by the current model device, the update time of the target performance information, and the target performance distribution of the current model device that can be described from the target performance indicator dimension. The target performance distribution can use the start and end times of different time-consuming intervals and the number of current model devices corresponding to each time-consuming interval.
[0043] For example. See Figure 2 , taking the A-type terminal device as the current-type device, obtain 3 million pieces of device operation time data obtained by detecting each A-type terminal device from the dimension of target performance indicators, and then divide each A-type terminal device into corresponding time-consuming intervals based on the device operation time of each A-type terminal device, and then count the A-type terminal devices in each time-consuming interval. For example, 10 time-consuming intervals are divided, and each time-consuming interval corresponds to the number of current-type devices hit. In this way, the target performance information corresponding to the A-type terminal device can be obtained. Figure 2 The horizontal axis in the middle represents the time-consuming intervals corresponding to the current model device, and the vertical axis represents the number of current model devices hit by the time-consuming intervals corresponding to the current model device.
[0044] As an optional but non-limiting implementation method, determining the target performance information corresponding to the current model device includes the following steps A1-A2:
[0045] Step A1: determine each target operation information corresponding to the current model of equipment, each target operation information is used to describe the equipment operation time associated with the target performance indicator of the current model of equipment.
[0046] Step A2: Determine the target performance information corresponding to the current model device based on each target operation information.
[0047] For the current model device, there are multiple current model devices, so there will be tens of millions or millions of data operated and collected on the current model device. After the collection stage, the data corresponding to the current model device that describes the operation time of the device related to the target performance indicator can be extracted according to different performance indicator dimensions as the target operation information corresponding to the current model device.
[0048] See also Figure 2, these target operation information describe the device operation time of the current model of equipment. According to the different device operation time, it can be found that these target operation information have certain distribution characteristics. When it is necessary to perform performance analysis on the current model of equipment based on these target operation information, these target operation information can be structured according to the different device operation time, and the target performance distribution of the current model of equipment from the target performance indicator dimension, which is represented by the number of current model equipment hitting different time intervals, can be obtained, so that different models of equipment can be compared according to the device operation time.
[0049] As an optional but non-limiting implementation method, the performance detection scenarios corresponding to the current model device when configuring device functions include one or a combination of at least two of the following: CPU performance detection scenario, GPU performance detection scenario, memory performance detection scenario, disk performance detection scenario, encoding and decoding performance detection scenario, and video playback and rendering performance detection scenario. Each performance detection scenario corresponds to performance detection from at least one target performance indicator dimension.
[0050] See also Figure 3 In order to evaluate the performance of the current model device, the various performances of the current model device in audio and video scenarios can be extracted and represented as different performance indicators. The corresponding performance detection scenarios when the current model device performs device function configuration cover CPU performance detection scenarios, GPU performance detection scenarios, memory performance detection scenarios, disk performance detection scenarios, codec performance detection scenarios, and video playback and rendering performance detection scenarios.
[0051] See also Figure 3 Each performance test scenario corresponding to the current model device is tested from at least one target performance indicator dimension. For example, 3-4 target performance indicator dimensions are designed for each performance scenario corresponding to the current model device, such as CPU involving single-core and multi-core computing, GPU disassembly into intensive computing, 2D or 3D video playback and rendering, memory performance test scenarios consider read and write speed and capacity, etc. After completing the performance indicator splitting, anchor the device model as the performance indicator evaluation dimension, continuously aggregate the performance of the device model in the above performance test scenarios, and complete the collection of the original target operation information.
[0052] Optionally, at least one target performance indicator corresponding to the CPU performance detection scenario includes a CPU single-core computing performance indicator and a CPU multi-core computing performance indicator. At least one target performance indicator corresponding to the GPU performance detection scenario includes an intensive computing performance indicator, a two-dimensional rendering performance indicator, and a three-dimensional rendering performance indicator when the GPU performs rendering. At least one target performance indicator corresponding to the memory performance detection scenario includes a memory read and write speed performance indicator and a memory capacity performance indicator.
[0053] As an optional but non-limiting implementation method, determining the target performance information corresponding to the current model device based on each target operation information includes the following steps B1-B3:
[0054] Step B1: sorting each target operation information in order according to the equipment operation time indicated in each target operation information; the target operation information with a smaller equipment operation time is ranked higher.
[0055] Step B2: retain the target operation information between the first numerical quantile and the second numerical quantile in each of the sorted target operation information, wherein the first numerical value is smaller than the second numerical value.
[0056] Step B3: Determine the target performance information corresponding to the current model device based on the retained target operation information.
[0057] See also Figure 2 , dirty data in each target operation information can be eliminated. Specifically, after sorting the equipment operation time indicated in each target operation information from small to large, the target operation data greater than the second numerical quantile and less than the first numerical quantile can be deleted, and the target operation information between the first numerical quantile and the second numerical quantile can be retained, and the target operation information above the 95th percentile and below the 5th percentile can be deleted, where the first numerical value is less than the second numerical value, and then the retained target operation information can be structured to produce target performance information.
[0058] S120. Determine a target performance indicator quantification result corresponding to the current model device based on the target performance information. The target performance indicator quantification result is the performance size of the current model device measured from the target performance indicator dimension.
[0059] Performance indicator quantification is a new concept. It converts the target performance information indicated by the target performance indicator dimension to describe the number of current model devices that hit different time consumption intervals corresponding to the current model device into a quantitative value corresponding to the corresponding target performance indicator. That is, converting a bunch of current model device quantity values in different time consumption intervals into a value that can characterize the performance size of the current model device.
[0060] The core purpose of performance index quantification is to find the position of the current model device among various types of devices according to the corresponding target performance information. A fair rule is that if the target performance information corresponding to the current model device indicates that the performance distribution of the current model device is better from the target performance index dimension, then the performance index quantification result corresponding to the current model device should be closer to the position with strong performance. For example, if the performance distribution of model A device is better than that of model B device from the target performance index dimension, then the performance of model A device under the target performance index dimension is stronger than that of model B device.
[0061] As an optional but non-limiting implementation method, determining the target performance indicator quantification result corresponding to the current model device based on the target performance information includes the following steps C1-C2:
[0062] Step C1, determine the reference performance information corresponding to the current model device and the upper and lower limits of the reference performance indicator quantization results corresponding to the reference performance information, the reference performance information indicates the reference performance distribution of the current model device, the reference performance distribution is the number of current model devices hitting different time consumption intervals determined according to the reference time consumption information, the reference time consumption information is determined before obtaining the target time consumption information and is used to describe the device operation time detected for each current model device from the target performance indicator dimension.
[0063] After obtaining the target performance information corresponding to the current model device, the reference performance information corresponding to the current model device can be determined. The reference performance information is determined before obtaining the target time consumption information to describe the device operation time detected by each current model device from the target performance indicator dimension. The number of current model devices that hit different time consumption intervals is determined, and the reference performance distribution of the previous model devices is formed using the number of current model devices that hit different time consumption intervals.
[0064] Step C2: based on the target performance information, the reference performance information, and the upper and lower limits of the reference performance indicator quantification results corresponding to the reference performance information, determine the target performance indicator quantification results corresponding to the current model of equipment. The target performance indicator quantification results are the performance size of the current model of equipment measured from the target performance indicator dimension.
[0065] Optionally, all reference performance information can be normalized based on the upper and lower limits of the reference performance indicator quantization results corresponding to the reference performance information (for example, logarithmic normalization can be used) to obtain a calculation function from performance information to performance indicator quantization results. Based on this, the target performance information is substituted into the calculation function to obtain the target performance indicator quantization results corresponding to the current model of equipment.
[0066] As an optional but non-limiting implementation method, based on the target performance information, the reference performance information, and the upper and lower limits of the reference performance indicator quantization results corresponding to the reference performance information, determining the target performance indicator quantization results corresponding to the current model device includes the following steps D1-D2:
[0067] Step D1, determine the performance distribution comparison result between the target performance information and the reference performance information, the performance distribution comparison result is used to describe the proportion of devices whose performance is greater than the performance of the current models of devices indicated by the reference performance information among the current models of devices indicated by the target performance information.
[0068] Step D2: Based on the performance distribution comparison result, the target performance indicator quantification result corresponding to the current model device is determined based on the upper and lower limits of the reference performance indicator quantification result corresponding to the reference performance information.
[0069] Optionally, based on the target performance information and the reference performance information, determine whether the performance of each current model device indicated by the target performance information is higher than the performance of each current model device indicated by the reference performance information. If so, determine the target performance indicator quantification result corresponding to the current model device based on the upper limit of the reference performance indicator quantification result corresponding to the reference performance information, and the performance size indicated by the target performance indicator quantification result is greater than the performance size indicated by the upper limit of the reference performance indicator quantification result. If not, determine the target performance indicator quantification result corresponding to the current model device based on the upper and lower limits of the reference performance indicator quantification result corresponding to the reference performance information, and the target performance indicator quantification result is determined by the performance difference of the performance of each current model device indicated by the target performance information relative to the upper or lower limit of the performance of each current model device indicated by the reference performance information. When the difference in the performance of each current model device relative to the upper limit of the performance of each current model device indicated by the reference performance information is smaller, the target performance indicator quantification result tends to the upper limit of the performance of each current model device indicated by the reference performance information.
[0070] S130: Based on the quantified result of the target performance indicator corresponding to the current model of the device, configure the device function of the current model of the device.
[0071] According to the performance of the current model device indicated by the quantitative results of the target performance indicators corresponding to the current model device, the adapted device functions are sent to the current model device, such as by downgrading or replacing device functions with relatively low performance requirements, to ensure that the current model device is compatible with suitable device functions.
[0072] In the disclosed embodiment, corresponding target performance information describing the target performance distribution of the current model device from the target performance indicator dimension will be determined for the current model device. The target performance distribution is the number of current model devices that hit different time consumption intervals determined according to the target time consumption information. The target time consumption information is used to describe the device operation time detected by each current model device from the target performance indicator dimension. On this basis, the device performance of the current model device is quantified using the target performance information corresponding to the current model device to obtain the corresponding target performance indicator quantification result of the performance size of the current model device measured from the target performance indicator dimension. In this way, the device function of the current model device can be adapted according to the target performance indicator quantification result, so as to realize the refined configuration of appropriate device functions for the current model device, and try to avoid the inability to use many high-level functions normally after they are launched due to improper device function configuration, thereby affecting the application and use of the device functions on the device.
[0073] Figure 4 A flow chart of another device function configuration method provided for an embodiment of the present disclosure. The technical solution of this embodiment further optimizes the process before determining the quantitative results of the target performance indicators corresponding to the current model device based on the target performance information in the aforementioned embodiment on the basis of the aforementioned embodiment. This embodiment can be combined with various optional solutions in one or more of the above-mentioned embodiments.
[0074] S410. Determine the target performance information corresponding to the current model device. The target performance information indicates the target performance distribution of the current model device. The target performance distribution is the number of current model devices that hit different time consumption intervals determined according to the target time consumption information. The target time consumption information is used to describe the device operation time detected by each current model device from the target performance indicator dimension.
[0075] S420. Determine the newly added performance information corresponding to the current model device. The newly added performance information indicates the newly added performance distribution of the current model device. The newly added performance distribution is the number of current model devices that hit different time consumption intervals determined according to the newly added time consumption information. The newly added time consumption information is added after obtaining the target time consumption information, and is used to describe the device operation time detected for each current model device from the target performance indicator dimension.
[0076] S430: Update and adjust the target performance information based on the newly added performance information.
[0077] The current model equipment is constantly being released and the current model equipment itself will also change, such as hardware aging, performance degradation, etc. Therefore, the operation information used to describe the operation time of the current model equipment related to the target performance indicators is also continuously collected. When the amount of sampled data of the newly collected operation information exceeds the threshold, the newly added operation information is used to draw the corresponding newly added performance information, and then the newly added performance information is used to combine the existing target performance information to update and adjust the existing target performance information, so as to ensure that the data of the target performance information used is as up-to-date as possible, and then ensure that the quantitative results of the calculated performance indicators are as accurate as possible.
[0078] As an optional but non-limiting implementation, updating and adjusting the target performance information based on the newly added performance information includes the following steps E1-E2:
[0079] Step E1: weighted calculation is performed on the newly added performance information and the target performance information, and the weight used for the newly added performance information is greater than the weight used for the target performance information.
[0080] Step E2: updating and adjusting the target performance information based on the weighted calculation result.
[0081] The operating information used to describe the operating time of the current model of equipment related to the target performance indicators is also continuously collected. At the same time, the aging data is not separately picked out. The trend of performance degradation is relatively consistent, so it is considered that the comprehensive average performance has changed. However, it is not considered that the current model of equipment will experience a rapid increase or decrease in performance in a short period of time. Therefore, weighting is performed based on the continuously collected new operating information and the existing target operating information.
[0082] Moreover, the newly added operation information obtained through continuous collection is not necessarily more reliable than the target operation information used by the existing target performance information, while the newly added operation information obtained through continuous collection is slightly more reliable. Therefore, the weight used for the newly added performance information is configured to be greater than the weight used for the target performance information. For example, the weight used for the newly added performance information is 6, and the weight used for the target performance information is 4. A weighted calculation is performed on the newly added performance information and the target performance information, and the target performance information is updated and adjusted based on the weighted calculation result.
[0083] As an optional but non-limiting implementation, after the target performance information is updated and adjusted based on the newly added performance information, the following steps F1-F2 are also included:
[0084] Step F1: Determine at least two target performance information obtained by updating the newly added performance information at different time points.
[0085] Step F2: based on the target performance distribution of the target performance information corresponding to different time points, determine the performance change trend of the current model device, and the performance change trend of the current model device is used to measure whether the hardware aging of the current model device occurs over time.
[0086] The current model equipment will age and its performance will obviously decline over time. If we want to show the comprehensive average performance of this batch of current model equipment, we need to continuously collect this data. The current model equipment is constantly being released and the current model equipment itself will also change. In this case, the operating information used to describe the operating time of the current model equipment related to the target performance indicators is also continuously collected.
[0087] At the same time, we hope that the target performance information updated at each time point can describe the comprehensive average performance of the current model of equipment at a certain time point. However, as time goes by, the equipment will undergo various changes, such as system upgrades, equipment performance leaps; continued use, equipment hardware aging, performance degradation; or even equipment elimination, becoming a long-tail model, etc. Therefore, the target performance distribution of the target performance information corresponding to different time points is needed to determine the performance change trend of the current model of equipment. For example, the peak value of the target performance distribution described by the target performance information at different time points can be compared to reflect the performance change trend of the current model of equipment over time. If this peak is slowly moving to the right over time, the current model of equipment is actually aging normally, and its aging speed can be deduced, and then the quantitative results of the target performance indicators can be adjusted to a certain extent.
[0088] S440. Determine a target performance indicator quantification result corresponding to the current model device based on the target performance information. The target performance indicator quantification result is the performance size of the current model device measured from the target performance indicator dimension.
[0089] S450: Based on the quantitative results of the target performance indicators corresponding to the current model of equipment, configure the equipment functions of the current model of equipment.
[0090] Figure 5 This is a structural schematic diagram of a device function configuration apparatus provided in an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the situation where device performance is quantified according to device model to perform fine configuration of device functions. The device function configuration apparatus can be implemented in the form of software and / or hardware and is generally integrated on any electronic device with network communication function, which can be a mobile terminal, PC or server, etc.
[0091] like Figure 5 As shown, the device function configuration apparatus of the embodiment of the present disclosure may include the following: a first determination module 510, a second determination module 520 and a configuration module 530. Among them:
[0092] A first determination module 510 is used to determine target performance information corresponding to the current model device, where the target performance information indicates the target performance distribution of the current model device, where the target performance distribution is the number of current model devices that hit different time consumption intervals determined according to the target time consumption information, and the target time consumption information is used to describe the device operation time detected by each current model device from the target performance indicator dimension;
[0093] A second determination module 520 is used to determine a target performance indicator quantification result corresponding to the current model device based on the target performance information, wherein the target performance indicator quantification result is the performance size of the current model device measured from the target performance indicator dimension;
[0094] The configuration module 530 is used to configure the device function of the current model device based on the target performance indicator quantification result corresponding to the current model device.
[0095] Based on the above embodiment, optionally, determining the target performance information corresponding to the current model device includes:
[0096] Determine each target operation information corresponding to the current model device, each target operation information is used to describe the device operation time associated with the target performance indicator of the current model device;
[0097] The target performance information corresponding to the current model device is determined based on each target operation information.
[0098] Based on the above embodiments, optionally, the performance detection scenario corresponding to the current model device when performing device function configuration includes one or a combination of at least two of the following: CPU performance detection scenario, GPU performance detection scenario, memory performance detection scenario, disk performance detection scenario, encoding and decoding performance detection scenario, and video playback and rendering performance detection scenario, and each of the performance detection scenarios corresponds to performance detection from at least one target performance indicator dimension.
[0099] Based on the above embodiments, optionally, at least one target performance indicator corresponding to the CPU performance detection scenario includes a CPU single-core computing performance indicator and a CPU multi-core computing performance indicator; at least one target performance indicator corresponding to the GPU performance detection scenario includes an intensive computing performance indicator during GPU rendering, a two-dimensional rendering performance indicator, and a three-dimensional rendering performance indicator; and at least one target performance indicator corresponding to the memory performance detection scenario includes a memory read and write speed performance indicator and a memory capacity performance indicator.
[0100] Based on the above embodiment, optionally, determining target performance information corresponding to the current model device based on each target operation information includes:
[0101] The target operation information is sorted in order according to the equipment operation time indicated in each target operation information. The target operation information with the smaller equipment operation time is sorted higher.
[0102] retaining target operation information between a first numerical quantile and a second numerical quantile in each of the sorted target operation information, wherein the first numerical quantile is smaller than the second numerical quantile;
[0103] The target performance information corresponding to the current model device is determined based on the retained target operation information.
[0104] Based on the above embodiment, optionally, determining the target performance indicator quantification result corresponding to the current model device based on the target performance information includes:
[0105] Determine the reference performance information corresponding to the current model device and the upper and lower limits of the reference performance indicator quantization result corresponding to the reference performance information, the reference performance information indicating the reference performance distribution of the current model device, the reference performance distribution is the number of current model devices that hit different time consumption intervals determined according to the reference time consumption information, the reference time consumption information is determined before obtaining the target time consumption information and is used to describe the device operation time detected by each current model device from the target performance indicator dimension;
[0106] Based on the target performance information, the reference performance information and the upper and lower limits of the reference performance indicator quantization result corresponding to the reference performance information, the target performance indicator quantization result corresponding to the current model device is determined.
[0107] Based on the above embodiment, optionally, determining the target performance indicator quantization result corresponding to the current model device based on the target performance information, the reference performance information, and the upper and lower limits of the reference performance indicator quantization result corresponding to the reference performance information includes:
[0108] Determine a performance distribution comparison result between the target performance information and the reference performance information, the performance distribution comparison result being used to describe the proportion of devices whose performance among the current models indicated by the target performance information is greater than the performance of the current models indicated by the reference performance information;
[0109] Based on the performance distribution comparison results, the quantitative results of the target performance indicators corresponding to the current model equipment are determined based on the upper and lower limits of the quantitative results of the reference performance indicators corresponding to the reference performance information.
[0110] Based on the above embodiment, optionally, before determining the target performance indicator quantization result corresponding to the current model device based on the target performance information, the method further includes:
[0111] Determine the newly added performance information corresponding to the current model device, the newly added performance information indicates the newly added performance distribution of the current model device, the newly added performance distribution is the number of current model devices that hit different time consumption intervals determined according to the newly added time consumption information, and the newly added time consumption information is added after the target time consumption information is obtained to describe the device operation time detected by each current model device from the target performance indicator dimension;
[0112] The target performance information is updated and adjusted based on the newly added performance information.
[0113] Based on the above embodiment, optionally, updating and adjusting the target performance information based on the newly added performance information includes:
[0114] Performing weighted calculation on the newly added performance information and the target performance information, wherein the weight used by the newly added performance information is greater than the weight used by the target performance information;
[0115] The target performance information is updated and adjusted based on the weighted calculation result.
[0116] Based on the above embodiment, optionally, after the target performance information is updated and adjusted based on the newly added performance information, the method further includes:
[0117] Determine at least two target performance information obtained by updating the newly added performance information at different time points;
[0118] Based on the target performance distribution of the target performance information corresponding to different time points, the performance change trend of the current model device is determined, and the performance change trend of the current model device is used to measure whether the hardware aging of the current model device occurs over time.
[0119] The technical solution provided by the embodiment of the present disclosure will determine the corresponding target performance information that describes the target performance distribution of the current model device from the target performance indicator dimension for the current model device. The target performance distribution is the number of current model devices that hit different time consumption intervals determined according to the target time consumption information. The target time consumption information is used to describe the device operation time detected by each current model device from the target performance indicator dimension. On this basis, the device performance of the current model device is quantified using the target performance information corresponding to the current model device to obtain the corresponding target performance indicator quantification result of the performance size of the current model device measured from the target performance indicator dimension. In this way, the device function of the current model device can be adapted according to the target performance indicator quantification result, so as to realize the refined configuration of appropriate device functions for the current model device, and try to avoid the inability to use many high-level functions normally after they are launched due to improper device function configuration, thereby affecting the application and use of the device functions on the device.
[0120] The device function configuration apparatus provided in the embodiments of the present disclosure can execute the device function configuration method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0121] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
[0122] Figure 6This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 6 , which shows an electronic device (eg, Figure 6 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0123] like Figure 6 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An edit / output (I / O) interface 605 is also connected to the bus 604.
[0124] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0125] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0126] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0127] The electronic device provided by the embodiment of the present disclosure and the device function configuration method provided by the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0128] The embodiments of the present disclosure provide a computer storage medium on which a computer program is stored. When the program is executed by a processor, the device function configuration method provided in the above embodiments is implemented.
[0129] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0130] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0131] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0132] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: determines the target performance information corresponding to the current model device, the target performance information is used to describe the target performance distribution of the current model device from the target performance indicator dimension, the target performance distribution is the number of current model devices that hit different time consumption intervals determined according to the target time consumption information, and the target time consumption information is used to describe the device operation time detected by each current model device from the target performance indicator dimension; determines the target performance indicator quantification result corresponding to the current model device based on the target performance information, and the target performance indicator quantification result is the performance size of the current model device measured from the target performance indicator dimension; configures the device function of the current model device based on the target performance indicator quantification result corresponding to the current model device.
[0133] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0134] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0135] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0136] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0137] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0138] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0139] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0140] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A device function configuration method, characterized in that: include: Determine target performance information corresponding to the current model device, the target performance information indicating the target performance distribution of the current model device, the target performance distribution is the number of current model devices that hit different time consumption intervals determined according to the target time consumption information, and the target time consumption information is used to describe the device operation time detected by each current model device from the target performance indicator dimension; Determine a target performance indicator quantification result corresponding to the current model device based on the target performance information, wherein the target performance indicator quantification result is the performance size of the current model device measured from the target performance indicator dimension; Based on the quantified result of the target performance indicator corresponding to the current model device, the device function of the current model device is configured.
2. The method according to claim 1, characterized in that Determine the target performance information corresponding to the current model of equipment, including: Determine each target operation information corresponding to the current model device, each target operation information is used to describe the device operation time associated with the target performance indicator of the current model device; The target performance information corresponding to the current model device is determined based on each target operation information.
3. The method according to claim 2, characterized in that Determine the target performance information corresponding to the current model device based on each target operation information, including: The target operation information is sorted in order according to the equipment operation time indicated in each target operation information. The target operation information with the smaller equipment operation time is ranked higher. retaining target operation information between a first numerical quantile and a second numerical quantile in each of the sorted target operation information, wherein the first numerical quantile is smaller than the second numerical quantile; The target performance information corresponding to the current model device is determined based on the retained target operation information.
4. The method according to claim 1, characterized in that: Determine the quantitative results of the target performance indicators corresponding to the current model of equipment based on the target performance information, including: Determine the reference performance information corresponding to the current model device and the upper and lower limits of the reference performance indicator quantization result corresponding to the reference performance information, the reference performance information indicating the reference performance distribution of the current model device, the reference performance distribution is the number of current model devices that hit different time consumption intervals determined according to the reference time consumption information, the reference time consumption information is determined before obtaining the target time consumption information and is used to describe the device operation time detected by each current model device from the target performance indicator dimension; Based on the target performance information, the reference performance information and the upper and lower limits of the reference performance indicator quantization result corresponding to the reference performance information, the target performance indicator quantization result corresponding to the current model device is determined.
5. The method according to claim 4, characterized in that Determining the target performance indicator quantization result corresponding to the current model device based on the target performance information, the reference performance information, and the upper and lower limits of the reference performance indicator quantization result corresponding to the reference performance information includes: Determine a performance distribution comparison result between the target performance information and the reference performance information, the performance distribution comparison result being used to describe the proportion of devices whose performance among the current models indicated by the target performance information is greater than the performance of the current models indicated by the reference performance information; Based on the performance distribution comparison results, the quantitative results of the target performance indicators corresponding to the current model equipment are determined based on the upper and lower limits of the quantitative results of the reference performance indicators corresponding to the reference performance information.
6. The method according to claim 1, characterized in that Before determining the quantitative result of the target performance indicator corresponding to the current model device based on the target performance information, the following is also included: Determine the newly added performance information corresponding to the current model device, the newly added performance information indicates the newly added performance distribution of the current model device, the newly added performance distribution is the number of current model devices that hit different time consumption intervals determined according to the newly added time consumption information, and the newly added time consumption information is added after the target time consumption information is obtained to describe the device operation time detected by each current model device from the target performance indicator dimension; The target performance information is updated and adjusted based on the newly added performance information.
7. The method according to claim 6, characterized in that The target performance information is updated and adjusted based on the newly added performance information, including: Performing weighted calculation on the newly added performance information and the target performance information, wherein the weight used by the newly added performance information is greater than the weight used by the target performance information; The target performance information is updated and adjusted based on the weighted calculation result.
8. The method according to claim 6, characterized in that After the target performance information is updated and adjusted based on the newly added performance information, the method further includes: Determine at least two target performance information obtained by updating the newly added performance information at different time points; Based on the target performance distribution of the target performance information corresponding to different time points, the performance change trend of the current model device is determined, and the performance change trend of the current model device is used to measure whether the hardware aging of the current model device occurs over time.
9. The method according to claim 1 or 2, characterized in that: The performance detection scenarios corresponding to the current model device when performing device function configuration include one or a combination of at least two of the following: CPU performance detection scenario, GPU performance detection scenario, memory performance detection scenario, disk performance detection scenario, encoding and decoding performance detection scenario, and video playback and rendering performance detection scenario. Each of the performance detection scenarios corresponds to performance detection from at least one target performance indicator dimension.
10. The method according to claim 9, characterized in that The at least one target performance indicator corresponding to the CPU performance detection scenario includes a CPU single-core computing performance indicator and a CPU multi-core computing performance indicator; the at least one target performance indicator corresponding to the GPU performance detection scenario includes an intensive computing performance indicator, a two-dimensional rendering performance indicator, and a three-dimensional rendering performance indicator when the GPU performs rendering; The at least one target performance indicator corresponding to the memory performance detection scenario includes a memory read and write speed performance indicator and a memory capacity performance indicator.
11. A device function configuration apparatus, characterized in that: include: A first determination module is used to determine target performance information corresponding to the current model device, the target performance information indicates the target performance distribution of the current model device, the target performance distribution is the number of current model devices that hit different time consumption intervals determined according to the target time consumption information, and the target time consumption information is used to describe the device operation time detected by each current model device from the target performance indicator dimension; A second determination module is used to determine a target performance indicator quantification result corresponding to the current model device based on the target performance information, wherein the target performance indicator quantification result is the performance size of the current model device measured from the target performance indicator dimension; The configuration module is used to configure the device function of the current model device based on the quantified result of the target performance indicator corresponding to the current model device.
12. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the device function configuration method as described in any one of claims 1-10.
13. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to execute the device function configuration method as described in any one of claims 1-10 when executed by a computer processor.