Function parameter control method and apparatus, electronic device, and storage medium
By acquiring performance and functional data of electronic devices, identifying anomaly types, and controlling corresponding functional parameters, the problem of low effectiveness in anomaly judgment and handling in existing technologies is solved, achieving more efficient anomaly handling and user experience optimization.
Patent Information
- Application Number
- PCT/CN2025/098825
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-04
- Filing Date
- 2025-06-03
- Publication Date
- 2025-12-11
AI Technical Summary
Existing technologies are less effective in identifying and handling anomalies in electronic devices, failing to effectively consider the performance of the electronic devices and the functional data of the target services.
By acquiring performance and functional data during the operation of the target service, the anomaly type is determined, and the functional parameters of the target function are controlled based on the anomaly type and functional data, including first-level adjustment, second-level adjustment, and low-power adjustment.
It improves the effectiveness of identifying and handling anomalies in electronic devices, ensuring the integrity of the user experience and optimizing device performance.
Smart Images

Figure CN2025098825_11122025_PF_FP_ABST
Abstract
Description
Function parameter control method and device, electronic device, and storage medium
[0001] This application claims priority to Chinese Patent Application No. 202410718280.3, filed on June 4, 2024, the disclosure of which is incorporated herein in its entirety as part of the present application. TECHNICAL FIELD
[0002] Embodiments of the present disclosure relate to a function parameter control method and device, an electronic device, and a storage medium. BACKGROUND
[0003] When providing a service, an electronic device may encounter some abnormal situations, such as slow response speed of the electronic device or high temperature of the electronic device. These abnormal situations greatly affect the user experience, and therefore the electronic device needs to determine the cause of the abnormality in time and perform corresponding processing. At present, the abnormality of the electronic device is usually judged and processed based on parameters related to the performance of the electronic device when running, but the effectiveness of the abnormality judgment and processing by this method is low. SUMMARY
[0004] The present disclosure provides a function parameter control method and device, an electronic device, and a storage medium to improve the effectiveness of the abnormality judgment and processing of the electronic device.
[0005] In a first aspect, embodiments of the present disclosure provide a function parameter control method, comprising:
[0006] obtaining performance data in a running process of a target service and function data in the running process of the target service, the performance data comprising data associated with the performance of an electronic device running the target service, and the function data comprising data of a target function included in the target service;
[0007] determining an abnormality type corresponding to the performance data;
[0008] controlling a function parameter of the target function according to the abnormality type and the function data.
[0009] In a second aspect, embodiments of the present disclosure further provide a function parameter control device, comprising:
[0010] an obtaining module configured to obtain performance data in a running process of a target service and function data in the running process of the target service, the performance data comprising data associated with the performance of an electronic device running the target service, and the function data comprising data of a target function included in the target service;
[0011] a determining module configured to determine an abnormality type corresponding to the performance data;
[0012] a control module configured to control a function parameter of the target function according to the function data and the abnormal type.
[0013] In a third aspect, the present disclosure provides an electronic device, which comprises:
[0014] one or more processing devices;
[0015] a storage device configured to store one or more programs,
[0016] When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the function parameter control method provided by the embodiments of the present disclosure.
[0017] In a fourth aspect, the present disclosure provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are configured to perform the function parameter control method provided by the embodiments of the present disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0018] The above and other features, advantages, and aspects of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals are used to denote the same or similar elements. It should be understood that the drawings are schematic, and the actual size and element are not necessarily drawn according to the scale.
[0019] FIG. 1 is a flow diagram of a function parameter control method according to an embodiment of the present disclosure;
[0020] FIG. 2 is a flow diagram of another function parameter control method according to an embodiment of the present disclosure;
[0021] FIG. 3 is a schematic diagram of a framework for implementing the function parameter control method according to an embodiment of the present disclosure;
[0022] FIG. 4 is a flow diagram of a process for determining the abnormal type corresponding to the performance data according to an embodiment of the present disclosure;
[0023] FIG. 5 is a structural diagram of a function parameter control device according to an embodiment of the present disclosure; and
[0024] FIG. 6 is a structural diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is understood that the present disclosure can be embodied in various forms and should not be interpreted as being limited to the embodiments set forth herein; rather, these embodiments are provided so as to more completely and thoroughly understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for illustrative purposes and are not intended to limit the scope of protection of the present disclosure.
[0026] It should be understood that each of the steps recited in the method embodiments of the present disclosure can be performed in different orders and / or in parallel. In addition, the method embodiments can include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0027] The term "comprising" and variations thereof as used herein are open-ended, that is "including but not limited to". The term "based on" is "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". Related terms are defined in the following description.
[0028] It should be noted that the concepts of "first", "second", etc. mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not intended to limit the order or interdependence of the functions performed by these devices, modules or units.
[0029] It should be noted that the modification of "one" or "multiple" mentioned in the present disclosure is illustrative rather than limiting, and those skilled in the art should understand that, unless otherwise explicitly indicated in the context, it should be understood as "one or more".
[0030] The names of the messages or information exchanged between the devices in the embodiments of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of the messages or information.
[0031] It can be understood that, before using the technical solutions disclosed in the embodiments of the present disclosure, the type, scope of use, use scenario, etc. of the personal information involved in the present disclosure should be informed to the user and the authorization of the user should be obtained in a proper manner according to relevant laws and regulations.
[0032] For example, when responding to the active request of the user, a prompt information is sent to the user to explicitly prompt the user that the operation requested to be performed will require the acquisition and use of the personal information of the user. Thus, the user can voluntarily choose whether to provide the personal information to the software or hardware such as electronic device, application program, server or storage medium, etc. performing the operation of the technical solutions of the present disclosure according to the prompt information.
[0033] As an optional but non-limiting implementation, in response to receiving the active request of the user, the manner of sending the prompt information to the user may be, for example, a pop-up window manner, in which the prompt information may be presented in the form of text. In addition, the pop-up window may also carry a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.
[0034] It can be understood that the above notification and user authorization obtaining process is only illustrative and does not limit the implementation of the present disclosure. Other manners that meet the relevant laws and regulations can also be applied to the implementation of the present disclosure.
[0035] It can be understood that the data involved in the technical solution (including but not limited to the data itself, the acquisition or use of the data) should comply with the requirements of the relevant laws and regulations and the relevant provisions.
[0036] FIG. 1 is a flow diagram of a functional parameter control method provided by an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the case of abnormal judgment and processing of an electronic device. The method can be executed by a functional parameter control apparatus, which can be realized in the form of software and / or hardware and integrated in the electronic device. Optionally, the electronic device can be a mobile terminal or a PC terminal, etc.
[0037] As shown in FIG. 1, the method comprises:
[0038] S110, acquiring performance data in a target service running process and functional data in the target service running process, the performance data comprising data associated with the performance of an electronic device running the target service, and the functional data comprising data of a target function included in the target service.
[0039] The target service can be a service that the electronic device can provide for the user. The performance data in the target service running process can be data related to the performance of the electronic device. The functional data in the target service running process can be data related to the function of the target service. The target function can be a function that the target service can provide, and the number of target functions can be one or more. The present disclosure does not limit the target service and the corresponding performance data and functional data, which are determined by the actual application scenario.
[0040] In one embodiment, the target service includes live broadcast, and the performance data includes a first performance indicator and a second performance indicator. The first performance indicator includes an indicator associated with the reaction intensity of the target service running process, and the second performance indicator includes an indicator associated with the first performance indicator.
[0041] In a live streaming scenario, the electronic device can have abnormal situations such as slow response (i.e., lag) or high temperature, which need to be attributed to performance data and function data in the live streaming scenario.
[0042] The first performance index included in the performance data can be an index associated with the index reaction strength in the live streaming process. The index reaction strength can be the reaction strength of the index of the electronic device in the live streaming process, such as the strength of the lag or heat of the electronic device. Correspondingly, the first performance index can include an index related to measuring the lag, such as the lag rate of the user interface (UI); and can also include an index related to measuring the heat of the device, such as the battery temperature.
[0043] The second performance index included in the performance data can be an index associated with the first performance index, which can be used to assist in attributing the performance abnormal situation by combining the first performance index with the second performance index. For example, the second performance index includes but is not limited to: the usage rate of the central processing unit (CPU), the usage rate of the graphics processing unit (GPU), the frames per second (FPS) of the picture, the memory, the remaining battery capacity, whether charging, rapid temperature rise in a short time, etc.
[0044] The function data in the live streaming scenario includes data of target functions included in the live streaming, which can include but is not limited to: likes, comments, etc. The function data can be data related to the heat of the live streaming room, the information amount of the interacted content, the page complexity, etc. For example, the function data can be multi-dimensional data such as the number of online users in the current live streaming room, the number of likes, the number of comments, etc.
[0045] In this step, the performance data in the running process of the target service can be obtained through a basic performance manager in the electronic device, and the basic performance manager can be a manager for managing the performance of the electronic device. The function data can be obtained through a basic function manager in the electronic device, and the basic function manager can be a manager for managing the functions of the electronic device related to the target service. The performance data and the function data can be obtained at the same time or with a time difference less than a set value, so as to ensure that the obtained performance data and function data have the same or similar time stamps.
[0046] S120, determining the abnormal type corresponding to the performance data.
[0047] The abnormal type corresponding to the performance data can be understood as the type of the abnormality determined by different abnormal situations of the performance data. The number of abnormal types can be one or more, which is not limited here.
[0048] In the embodiments of the present disclosure, the abnormal types can be divided into two categories: high-load abnormality and low-power-consumption abnormality. The high-load abnormality can be an abnormality caused by excessively high load, and the high-load abnormality can be divided into different levels according to different load conditions, such as first-level abnormality and second-level abnormality. Different levels of abnormality correspond to different trigger conditions and different abnormal conditions or levels, which are not limited herein. The low-power-consumption abnormality can be an abnormality caused by excessively low power consumption, such as a low-battery scenario.
[0049] For a certain abnormal type of performance data, one or more performance data required for judging the abnormal type, the performance threshold corresponding to each performance data, and the relationship between the performance data can be set in advance. According to the obtained performance data, the above-mentioned pre-set content can be combined to determine whether the abnormal type exists. The performance threshold can be a threshold related to performance. The relationship between the performance data can be a logical operation relationship, such as AND, OR, etc.
[0050] Optionally, when determining the abnormal type corresponding to the performance data, in addition to considering the performance factor, the functional factor corresponding to the target service can also be combined. For example, when determining whether a high-load abnormality exists, in addition to the above-mentioned pre-set performance data, performance threshold, and operation relationship required for judging the high-load abnormality, the functional data that can easily cause the high-load abnormality can also be combined, which is not limited herein.
[0051] S130, controlling the functional parameter of the target function according to the abnormal type and the functional data.
[0052] The functional parameter of the target function can be a parameter related to the control of the target function. The type corresponding to the functional parameter can be determined according to a pre-set rule, which is not limited herein. For example, the type corresponding to the functional parameter can be determined according to the type of the function that can be implemented, and the type corresponding to the functional parameter can be multiple.
[0053] By the different types corresponding to the functional parameter, the control of the functional parameter can be divided into multiple types, such as first-level adjustment, second-level adjustment, low-power-consumption adjustment, etc. The conditions for triggering the control of different functional parameters can be different, which are not limited herein. The present disclosure does not limit the corresponding relationship between the type on which the determination of the functional parameter is based and the adjustment of the specific functional parameter.
[0054] In the embodiments of the present disclosure, the function parameters adjusted by the first-level adjustment, the second-level adjustment and the low-power-consumption adjustment can be determined according to the types corresponding to different function parameters, and the types corresponding to different function parameters can correspond to different exceptions. For example, in the case of a low-power-consumption exception, a low-power-consumption adjustment can be performed, such as adjusting the function parameters related to the low-power-consumption exception. In the case of a second-level exception, a second-level adjustment can be performed, such as adjusting the function parameters related to the second-level exception. In the case of a first-level exception, a first-level adjustment can be performed, such as adjusting the function parameters related to the first-level exception.
[0055] The manner of controlling the function parameters of the target function according to the exception type and the function data is not limited, for example, the obtained function data is compared with a corresponding function threshold set in advance to determine the current function provided by the target service; the adjustment of which target function and the specific manner of adjusting the target function (i.e., adjusting which function parameter) are determined according to the exception type and the determined current function provided by the target service; and the function parameters of the target function corresponding to the determined adjustment manner are adjusted.
[0056] The purpose of this step is to determine the function parameters of the target function that need to be controlled according to the exception type corresponding to the performance data and the function data, and to adjust the function parameters of the target function that need to be controlled on demand to ensure the normal operation of the current function required by the user and improve the user experience.
[0057] The embodiments of the present disclosure provide a function parameter control method and device, an electronic device and a storage medium. The method comprises: obtaining performance data in a running process of a target service and function data in the running process of the target service, wherein the performance data comprises data associated with the performance of an electronic device running the target service, and the function data comprises data of a target function included in the target service; determining an exception type corresponding to the performance data; and controlling function parameters of the target function according to the exception type and the function data. The above technical solution not only considers the parameters related to the performance of the electronic device, but also considers the function data related to the target function of the target service when judging and processing the exception of the electronic device, thereby improving the effectiveness of the judgment and processing of the exception of the electronic device.
[0058] In one embodiment, the method further comprises:
[0059] In the case of recovering the exception type corresponding to the exception, the function parameters of the target function corresponding to the recovered exception type are recovered.
[0060] After the function parameter of the target function is adjusted according to the abnormal type, if the abnormal type corresponds to a normal abnormality, the function parameter of the target function can be restored in time, so that the user can experience more complete functions.
[0061] On the basis of the above-mentioned embodiments, variant embodiments of the above-mentioned embodiments are proposed, and it should be noted that, in order to make the description brief, only the differences from the above-mentioned embodiments are described in the variant embodiments.
[0062] FIG. 2 is a flowchart of another function parameter control method provided by the embodiments of the present disclosure, and the embodiments of the present disclosure are further refinement of determining the abnormal type corresponding to the performance data and further refinement of controlling the function parameter of the target function according to the abnormal type and the function data on the basis of the above-mentioned embodiments.
[0063] As shown in FIG. 2, the method comprises:
[0064] S210, acquiring performance data in a target service running process and function data in the target service running process, wherein the performance data comprises data associated with the performance of an electronic device running the target service, and the function data comprises data of a target function included in the target service.
[0065] S220, acquiring target performance data required for determining each abnormal type, a performance threshold value, and a relationship between the target performance data.
[0066] For a certain abnormal type, the corresponding target performance data can be performance data required for judging whether the abnormal type exists, and the target performance data corresponding to different abnormal types can be different. The performance threshold value can be a threshold value related to performance, and different target performance data can correspond to different performance threshold values. The relationship between the performance data can be a logical operation relationship, such as AND, OR, etc.
[0067] The target performance data corresponding to each abnormal type, the performance threshold value, and the relationship between the target performance data can be determined in advance by a configuration and distribution platform and distributed as needed, and the configuration and distribution platform can be a platform for configuring data or strategies required for determining abnormalities and distributing as needed.
[0068] S230, for each abnormal type, determining the corresponding performance result according to the corresponding target performance data, the performance threshold value, and the relationship between the corresponding target performance data, and determining whether the abnormal type exists based on the performance result.
[0069] The performance result can be a result determined based on the target performance data corresponding to the abnormal type, the performance threshold value corresponding to each target performance data, and the relationship between the target performance data.
[0070] For example, for a low-power abnormality such as a low-battery scenario, the target performance data required for determining the abnormality type is the battery level of the device and whether the device is charging; the performance threshold corresponding to the battery level is a, and the performance threshold corresponding to whether the device is charging can be whether the device is in a charging mode; the operation relationship between the performance data is AND. If the obtained performance data indicates that the battery level is lower than a and the device is not in a charging mode (i.e., the performance result), it indicates that the current is a low-battery scenario, i.e., there is a low-power abnormality.
[0071] In one embodiment, the abnormality types include an abnormality type associated with a battery level and an abnormality type associated with a load, and for each abnormality type, the corresponding performance result is determined according to the corresponding target performance data, the performance threshold, and the relationship between the corresponding target performance data, and whether the abnormality type exists is determined based on the performance result, including:
[0072] For the abnormality type associated with the battery level, the corresponding performance result is determined according to the corresponding target performance data, the performance threshold, and the relationship between the corresponding target performance data, and whether the abnormality type associated with the battery level exists is determined based on the performance result.
[0073] If not, for the abnormality type associated with the load, the corresponding performance result is determined according to the corresponding target performance data, the performance threshold, and the relationship between the corresponding target performance data, and whether the abnormality type associated with the load exists is determined based on the performance result.
[0074] Among them, the abnormality type associated with the battery level is the low-power abnormality in the above embodiment, and the abnormality type associated with the load is the high-load abnormality in the above embodiment.
[0075] Since there are multiple abnormality types, different priorities between different abnormality types can be set in the present disclosure, and the basis for setting the priority can be the actual needs of the user, which is not limited here. For example, in this embodiment, it is determined whether the abnormality type associated with the battery level exists, and if so, the target function is adjusted according to the abnormality type associated with the battery level; if not, it is determined whether the abnormality type associated with the load exists, and the target function is adjusted according to the abnormality type associated with the load.
[0076] Optionally, when determining whether a certain abnormality type corresponding to the performance data exists, the corresponding performance result can be determined according to the target performance data corresponding to the abnormality type, the performance threshold, and the relationship between the corresponding target performance data; the function-related result is determined according to the function data and the corresponding function threshold that the target service is likely to trigger the abnormality type; and finally, the performance result and the function-related result are comprehensively processed according to the logical relationship between the performance factor and the function factor to determine whether the abnormality type exists.
[0077] It should be noted that in the embodiments of the present disclosure, the timing of determining the abnormal type corresponding to the performance data can be determined by a timing triggered detection method, which is not limited here.
[0078] S240, determining a function result according to the comparison result of the function data and the function threshold.
[0079] The function result can be a result determined based on the function data and the function threshold, and the function result can indicate the situation of the function currently provided by the target service. Different function data can correspond to different function thresholds, which are not limited here.
[0080] For example, in a live broadcast scenario, the function data can include the number of likes, and if the number of likes exceeds a certain threshold (i.e., the function threshold corresponding to the like function), the function result can indicate that the like function needs to be ensured to run normally in the current scenario.
[0081] S250, determining a target function to be controlled in the target function according to the abnormal type and the function result.
[0082] The target function to be controlled can be a function whose function parameter is to be controlled. Control can be understood as adjusting and processing the function parameter of the target function to be controlled. Adjusting and processing the function parameter of the target function to be controlled can ensure the normal operation of the function required by the user and improve the user's experience.
[0083] In one embodiment, the determining of the target function to be controlled in the target function according to the abnormal type and the function result comprises:
[0084] According to the function adjustment strategy, selecting a candidate target function associated with the abnormal type from the target function;
[0085] According to the function result, selecting a target function to be controlled from the candidate target function.
[0086] The function adjustment strategy can be a strategy for determining which target function to adjust the function of. The function adjustment strategy can also determine the function parameter supported by each target function. Optionally, the function adjustment strategy can be determined in advance by a configuration delivery platform and delivered as needed.
[0087] For a certain abnormal type, if it is to be mitigated, the target function capable of affecting the abnormal type, i.e., the candidate target function, needs to be selected from multiple target functions according to the function adjustment strategy. The number of candidate target functions can be multiple, which is not limited here, as long as the abnormality can be mitigated by changing the function parameter of the candidate target function.
[0088] Among the candidate target functions, the target function to be controlled needs to be determined, at this time, the target function to be controlled can be determined by combining the function result and the current function provided by the target service.
[0089] For example, if the current exception type is a high-load exception, such as high CPU usage, and the target functions affecting the CPU usage are the like module and the comment module (i.e., candidate target functions); the function result indicates that the like function needs to be ensured to run normally at present, the comment module can be determined as the target function to be controlled, and the high-load exception problem can be improved by adjusting the function parameters of the comment module. The high usage can be understood as the usage exceeding the corresponding threshold, and the description of "high" below is the same.
[0090] For example, if the current exception type is a high-load exception, such as high CPU usage and high UI jitter rate, the function result indicates that the like function needs to be ensured to run normally at present, and the function parameters of other target functions in the target function except the like target function can be adjusted and processed.
[0091] S260, the function parameters of the target function to be controlled are adjusted according to the exception type.
[0092] For different exception types, the corresponding adjustment mode is also different, that is, the function parameters of the target function to be controlled to be adjusted are different.
[0093] For example, if the exception type is a low-power-consumption exception (such as a low-power scenario), the corresponding adjustment can be a low-power-consumption adjustment; if the exception type is a secondary exception in the high-load exception, the corresponding adjustment can be a secondary adjustment; if the exception type is a primary exception in the high-load exception, the corresponding adjustment can be a primary adjustment.
[0094] The technical scheme of the embodiment of the present disclosure has corresponding target performance data, performance threshold and relationship between target performance data for the judgment of different exception types, has a function threshold for comparison with function data, and can be flexibly configured in a variety of different scenes; the target function to be controlled is determined according to the exception type and the function result, and the function parameters of the target function to be controlled are adjusted according to the exception type, which realizes the on-demand adjustment in different situations and ensures the normal operation of the function required by the user on the basis of relieving the exception.
[0095] The following is an exemplary description of the embodiment of the present disclosure:
[0096] FIG. 3 is a schematic diagram of a framework for executing a function parameter control method provided by the embodiment of the present disclosure, which is executed in a live scene, as shown in FIG. 3, and specifically includes:
[0097] The basic performance manager acquires the performance data of the embodiments of the present disclosure; the basic service manager acquires the function data (i.e. service data) of the embodiments of the present disclosure. The data is then transmitted to the adjustment strategy center.
[0098] The adjustment strategy center is used to determine the abnormal type and the function result according to the acquired data (such as the performance data and the service data), in combination with the service & performance threshold (i.e. the target performance data corresponding to each abnormal type, the relationship between the performance threshold and the target performance data, and the function threshold corresponding to the function data) issued by the configuration issuing platform. The determined result is transmitted to the target function (such as the A service module and the Z service module). The adjustment strategy center can maintain a list of the target functions whose function parameters are adjusted.
[0099] The configuration issuing platform issues the service adjustment strategy (i.e. the function adjustment strategy) to the target function, which is used to determine which target function is adjusted and to determine the function parameters supported by each target function. For example, the function parameters supported by the A service module include: first-level adjustment, second-level adjustment, low-power consumption adjustment, and recovery function.
[0100] After the target function to be controlled is determined according to the abnormal type and the function result, the corresponding adjustment method (i.e. the adjustment corresponding to the abnormal type) in the target function to be controlled can be called back by the adjustment strategy center to perform adjustment. Correspondingly, after the related service & performance indicators are recovered, the function recovery method in the target function to be controlled can be called back by the adjustment strategy center to recover the damaged service function and protect the user experience.
[0101] In the framework shown in FIG. 3, the service module can register the adjustment task to the adjustment strategy center, indicating that the service module can perform adjustment and the function parameters supported by the adjustment. When the service adjustment is not needed, the service module can also request the adjustment strategy center to cancel the registration of the adjustment task. Meanwhile, the adjustment tasks registered by each service module can be uniformly maintained by the adjustment strategy center.
[0102] FIG. 4 is a flowchart of the adjustment strategy center determining the abnormal type corresponding to the performance data according to an embodiment of the present disclosure. As shown in FIG. 4, the following steps are included:
[0103] Triggering performance detection;
[0104] Determining whether it is low power (i.e. whether it is a low-power consumption abnormality). If yes, determining whether the low-power consumption is triggered. If no, marking the low-power consumption as yes, i.e. determining that the abnormal type corresponding to the performance data is a low-power consumption abnormality, and the adjustment corresponding to the abnormal type is to call the low-power consumption adjustment method (i.e. one of the function parameters).
[0105] determine whether the secondary abnormality (i.e., the secondary abnormality in the high-load abnormality) occurs, if yes, determine whether the secondary abnormality has been triggered, if no, mark the secondary abnormality as yes and mark the primary abnormality as no, i.e., determine that the abnormality type corresponding to the performance data is the secondary abnormality, and the adjustment corresponding to the abnormality type is to call the secondary adjustment method (i.e., one of the function parameters);
[0106] determine whether the primary abnormality (i.e., the primary abnormality in the high-load abnormality) occurs, if yes, determine whether the primary abnormality has been triggered, if no, mark the secondary abnormality as no and mark the primary abnormality as yes, i.e., determine that the abnormality type corresponding to the performance data is the primary abnormality, and the adjustment corresponding to the abnormality type is to call the primary adjustment method (i.e., one of the function parameters);
[0107] determine whether the adjustment has been triggered, if yes, mark the secondary abnormality as no, mark the primary abnormality as no, and mark the low-power-consumption abnormality as no, i.e., it is determined that the adjustment has been triggered, at this time, the function recovery needs to be performed, and the function recovery method needs to be called.
[0108] As shown in FIG. 4, when determining the abnormality type corresponding to the performance data, the priority of the abnormality type is, from large to small, in turn: the low-power-consumption abnormality, the secondary abnormality in the high-load abnormality, and the primary abnormality in the high-load abnormality. That is, the priorities of different factors affecting performance are different.
[0109] The technical scheme of the embodiment of the present disclosure can use the two most relevant first performance indicators of the UI frame rate and the battery temperature to measure the frame rate & heating of the current live electronic device, combine the second performance indicator to assist in attribution, and simultaneously consider the function data of the current live room to jointly determine the main reason for the current experience degradation. The scheme normalizes multiple business and performance factors to determine the current performance and the business function that needs to be adjusted, and the effectiveness of the determination is improved.
[0110] The scheme can be flexibly configured in multiple scenarios, multiple control thresholds and adjustment strategies are set, and the damaged business function is timely restored after the performance level is restored to normal.
[0111] When determining the abnormality, the scheme selects the performance indicator as the main standard for determining the performance level, rather than the device indicator given by the system, and after processing the abnormality, the user experience can be obviously improved.
[0112] In general, performance adjustment of a system (such as adjustment in a low-power consumption scenario) affects the maximum capability that can be provided by device-related capabilities of the device, and affects all applications in all devices, so that the resources available to the applications are greatly reduced. The method provided in the embodiments of the present disclosure starts to adjust in advance to reduce power consumption, thereby slowing down the speed of entering system adjustment, improving the use efficiency of the device, and preferentially guaranteeing the core business functions of a certain application.
[0113] FIG. 5 is a structural schematic diagram of a function parameter control apparatus provided by an embodiment of the present disclosure. As shown in FIG. 5, the apparatus includes an acquisition module 510, a determination module 520, and a control module 530.
[0114] The acquisition module 510 is configured to acquire performance data in a running process of a target service and function data in the running process of the target service, wherein the performance data includes data associated with the performance of an electronic device running the target service, and the function data includes data of a target function included in the target service.
[0115] The determination module 520 is configured to determine an abnormal type corresponding to the performance data.
[0116] The control module 530 is configured to control a function parameter of the target function according to the abnormal type and the function data.
[0117] The technical solution provided by the embodiments of the present disclosure acquires performance data in a running process of a target service and function data in the running process of the target service, wherein the performance data includes data associated with the performance of an electronic device running the target service, and the function data includes data of a target function included in the target service; determines an abnormal type corresponding to the performance data; and controls a function parameter of the target function according to the abnormal type and the function data. The above technical solution not only considers parameters related to the performance of the electronic device, but also considers function data related to the target function of the target service when judging and processing the abnormality of the electronic device, thereby improving the effectiveness of the judgment and processing of the abnormality of the electronic device.
[0118] In one embodiment, the determination module 520 is specifically configured to:
[0119] acquire target performance data required for determining each abnormal type, a performance threshold, and a relationship between the target performance data;
[0120] For each abnormal type, determine a performance result according to the corresponding target performance data, the performance threshold, and the relationship between the corresponding target performance data, and determine whether the abnormal type exists based on the performance result.
[0121] In an embodiment, the abnormality types include an abnormality type associated with power and an abnormality type associated with load, and the determining module 520 is specifically configured to:
[0122] For the abnormality type associated with power, a performance result corresponding to the target performance data is determined according to the target performance data, the performance threshold and the relationship between the target performance data, and whether the abnormality type associated with power exists is determined based on the performance result;
[0123] If not, for the abnormality type associated with load, a performance result corresponding to the target performance data is determined according to the target performance data, the performance threshold and the relationship between the target performance data, and whether the abnormality type associated with load exists is determined based on the performance result.
[0124] In an embodiment, the control module 530 is specifically configured to:
[0125] determine a function result according to a comparison result of the function data and the function threshold;
[0126] determine a target function to be controlled in the target function according to the abnormality type and the function result;
[0127] perform an adjustment corresponding to the abnormality type on a function parameter of the target function to be controlled.
[0128] In an embodiment, the control module 530 is specifically configured to:
[0129] select a candidate target function associated with the abnormality type from the target function according to a function adjustment strategy;
[0130] select a target function to be controlled from the candidate target function according to the function result.
[0131] In an embodiment, the apparatus further includes:
[0132] a recovery module configured to, in a case where an abnormality corresponding to an abnormality type is recovered, recover a function parameter of a target function corresponding to the recovered abnormality type.
[0133] In an embodiment, the target service includes a live broadcast, the performance data includes a first performance indicator and a second performance indicator, the first performance indicator includes an indicator associated with an indicator reaction intensity in a running process of the target service, and the second performance indicator includes an indicator associated with the first performance indicator.
[0134] The function parameter control apparatus provided in the embodiments of the present disclosure can perform the function parameter control method provided in any of the embodiments of the present disclosure, and has the corresponding function modules and beneficial effects of the execution method.
[0135] It is worth noting that the above-mentioned units and modules included in the apparatus are only divided according to the functional logic, and are not limited to the above-mentioned division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for the convenience of mutual differentiation, and do not limit the protection scope of the embodiments of the present disclosure.
[0136] FIG. 6 is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. Referring to FIG. 6, a structural schematic diagram of an electronic device (for example, a terminal device or a server in FIG. 6) 500 suitable for implementing an embodiment of the present disclosure is shown.
[0137] An electronic device provided by an embodiment of the present disclosure includes:
[0138] one or more processing apparatuses;
[0139] a storage apparatus configured to store one or more programs,
[0140] When the one or more programs are executed by the one or more processing apparatuses, the one or more processing apparatuses implement the function parameter control method provided by any of the embodiments of the present disclosure.
[0141] The terminal device in the embodiments of the present disclosure can include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Tablet Personal Computer), a PMP (Portable Multimedia Player), a vehicle terminal (for example, a vehicle navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in FIG. 6 is only an example, and should not bring any limitation to the functions and use range of the embodiments of the present disclosure.
[0142] As shown in FIG. 6, the electronic device 500 can include a processing apparatus (for example, a central processing unit, a graphics processing unit, and the like) 501, which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 502 or programs loaded from a storage apparatus 508 to a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing apparatus 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An edit / output (I / O) interface 505 is also connected to the bus 504.
[0143] Generally, the following devices can be connected to the I / O interface 505: input devices 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, and the like; output devices 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, and the like; storage devices 508 including, for example, a tape, a hard disk, and the like; and communication devices 509. The communication devices 509 can allow the electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although FIG. 6 illustrates the electronic device 500 having various devices, it is understood that all of the illustrated devices are not required to be implemented or possessed. More or fewer devices can be alternatively implemented or possessed.
[0144] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for executing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network through the communication devices 509, or installed from the storage devices 508, or installed from the ROM 502. When the computer program is executed by the processing devices 501, the above-mentioned functions defined in the methods of embodiments of the present disclosure are performed.
[0145] The names of the messages or information exchanged between the plurality of devices in the embodiments of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of the messages or information.
[0146] The electronic device provided by the embodiments of the present disclosure and the functional parameter control method provided by the above-mentioned embodiments belong to the same inventive concept, and the technical details not described in detail in the present embodiment can be referred to the above-mentioned embodiments, and the present embodiment has the same beneficial effects as the above-mentioned embodiments.
[0147] The embodiments of the present disclosure provide a computer storage medium having a computer program stored thereon, which, when executed by a processor, implements the functional parameter control method provided by the above-mentioned embodiments.
[0148] It should be noted that the computer readable medium of the present disclosure described above can be a computer readable signal medium or a computer readable storage medium or any combination of the above two.
[0149] The computer storage medium can be a storage medium of computer executable instructions, which, when executed by a computer processor, is used to execute the method as provided by the present disclosure.
[0150] A computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a computer readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium can be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, a computer readable signal medium can include a computer readable storage medium in baseband or propagated as a carrier wave in a propagated data signal, which can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable signal medium can be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium can be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0151] In some embodiments, the client, server, or both can communicate using any current known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include local area networks ("LANs"), wide area networks ("WANs"), the Internet, and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any current known or future developed networks.
[0152] The computer readable medium described above can be included in the electronic device described above; alternatively, the computer readable medium can exist as a separate entity in which the electronic device is incorporated.
[0153] The computer readable medium carries one or more programs when the one or more programs are executed by the electronic device, the electronic device is caused to: acquire performance data in a running process of a target service and function data in the running process of the target service, the performance data comprising data associated with performance of the electronic device running the target service, and the function data comprising data of a target function included in the target service; determine an exception type corresponding to the performance data; and control a function parameter of the target function according to the exception type and the function data.
[0154] Computer program code for carrying out operations of the present disclosure can be written in any one or more programming languages, including object oriented programming languages, such as Java, Smalltalk, C++, or conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the latter scenario, the remote computer can 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 the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0155] The flow diagrams and the block diagrams in the drawings are illustrations of architectures, functionalities, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of present disclosure. In this regard, each block in the flow diagrams or block diagrams can represent a module, a segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and / or flow diagrams, and combinations thereof, can be implemented by special purpose hardware-based systems that perform the specified functions or operations, or combinations of special purpose hardware and computer instructions.
[0156] The modules or units described in the embodiments of the present disclosure can be implemented by software, or by hardware, or by a combination of software and hardware. In some cases, the name of the module or unit does not constitute a limitation on the module or unit itself.
[0157] The functionality described herein above can be performed, at least in part, by one or more hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Application-specific Integrated Circuits (ASICs), Application-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), etc.
[0158] In the context of the present disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fibers, portable compact disc read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0159] According to one or more embodiments of the present disclosure, example 1 provides a functional parameter control method, comprising:
[0160] obtaining performance data in a running process of a target service and functional data in the running process of the target service, the performance data comprising data associated with performance of an electronic device running the target service, and the functional data comprising data of a target function included in the target service;
[0161] determining an abnormal type corresponding to the performance data;
[0162] controlling a functional parameter of the target function according to the abnormal type and the functional data.
[0163] According to one or more embodiments of the present disclosure, example 2 provides the method according to example 1,
[0164] The determining of the abnormal type corresponding to the performance data comprises:
[0165] obtaining target performance data required for determining each abnormal type, a performance threshold, and a relationship between the target performance data;
[0166] For each abnormal type, determining a performance result according to the corresponding target performance data, the performance threshold, and the relationship between the corresponding target performance data, and determining whether the abnormal type exists based on the performance result.
[0167] According to one or more embodiments of the present disclosure, example 3, the method according to example 2,
[0168] The abnormal types include an abnormal type associated with power and an abnormal type associated with load, and the determining, for each abnormal type, a performance result according to the corresponding target performance data, the performance threshold, and the relationship between the corresponding target performance data, and determining whether the abnormal type exists based on the performance result, includes:
[0169] For the abnormal type associated with power, the performance result is determined according to the corresponding target performance data, the performance threshold, and the relationship between the corresponding target performance data, and whether the abnormal type associated with power exists is determined based on the performance result.
[0170] If not, for the abnormal type associated with load, the performance result is determined according to the corresponding target performance data, the performance threshold, and the relationship between the corresponding target performance data, and whether the abnormal type associated with load exists is determined based on the performance result.
[0171] According to one or more embodiments of the present disclosure, example 4, the method according to example 1,
[0172] The controlling, according to the abnormal type and the function data, of the function parameter of the target function, includes:
[0173] Determining a function result according to a comparison result of the function data and a function threshold;
[0174] Determining a target function to be controlled in the target function according to the abnormal type and the function result;
[0175] Performing an adjustment corresponding to the abnormal type on the function parameter of the target function to be controlled.
[0176] According to one or more embodiments of the present disclosure, example 5, the method according to example 4,
[0177] The determining, according to the abnormal type and the function result, of the target function to be controlled in the target function, includes:
[0178] Selecting, according to a function adjustment strategy, a candidate target function associated with the abnormal type from the target function;
[0179] Selecting, according to the function result, the target function to be controlled from the candidate target function.
[0180] According to one or more embodiments of the present disclosure, example 6, the method according to example 1, further includes:
[0181] In the case of the exception type corresponding to the exception recovery, the function parameter of the target function corresponding to the recovered exception type is recovered.
[0182] According to one or more embodiments of the present disclosure, example 7 provides a method according to example 1,
[0183] The target service includes live broadcast, and the performance data includes a first performance indicator and a second performance indicator, the first performance indicator includes an indicator associated with the indicator reaction intensity during the running of the target service, and the second performance indicator includes an indicator associated with the first performance indicator.
[0184] According to one or more embodiments of the present disclosure, example 8 provides a function parameter control device, comprising:
[0185] The acquisition module is configured to acquire performance data during the running of the target service and function data during the running of the target service, the performance data including data associated with the performance of the electronic device running the target service, and the function data including data of a target function included in the target service;
[0186] The determination module is configured to determine an exception type corresponding to the performance data.
[0187] The control module is configured to control the function parameter of the target function according to the exception type and the function data.
[0188] According to one or more embodiments of the present disclosure, example 9 provides an electronic device, comprising:
[0189] One or more processing devices;
[0190] The storage device is configured to store one or more programs,
[0191] When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the function parameter control method as described in any one of examples 1-7.
[0192] According to one or more embodiments of the present disclosure, example 10 provides a storage medium containing computer executable instructions for executing the function parameter control method as described in any one of examples 1-7 when executed by a computer processor.
[0193] The above description merely illustrates the preferred embodiments of the disclosure and a principle for applying the technologies. It is understood by those skilled in the art that the disclosed scope of the disclosure is not limited to the technical solutions formed by the specific combinations of the technical features described above, and should also cover other technical solutions formed by the combinations of the technical features described above or their equivalent features without departing from the disclosed concept. For example, the technical solutions formed by the mutual replacement of the above-described features and the technical features with similar functions disclosed in the disclosure (but not limited to) can be formed.
[0194] Further, although operations are depicted in a particular, sequential order, this should not be understood as requiring or implying that the operations are performed in the order illustrated or sequentially. In certain circumstances, multitasking and parallel processing can be advantageous. Likewise, although specific implementation details are included for the purpose of providing a thorough disclosure, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable sub-combination.
[0195] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Claims
1. A method for controlling a function parameter, comprising: obtaining performance data and function data during running of a target service, the performance data comprising data associated with performance of an electronic device running the target service, and the function data comprising data of a target function included in the target service; determining an abnormal type corresponding to the performance data; controlling a function parameter of the target function according to the abnormal type and the function data.
2. The method of claim 1, wherein, The determining of the abnormal type corresponding to the performance data comprises: obtaining target performance data required for determining each abnormal type, a performance threshold, and a relationship between the target performance data; for each abnormal type, determining a performance result according to the corresponding target performance data, the performance threshold, and the relationship between the corresponding target performance data, and determining whether the abnormal type exists based on the performance result.
3. The method of claim 2, wherein, The abnormal type comprises an abnormal type associated with power and an abnormal type associated with load, and the determining of the performance result according to the corresponding target performance data, the performance threshold, and the relationship between the corresponding target performance data, and the determining of whether the abnormal type exists based on the performance result for each abnormal type comprises: for the abnormal type associated with power, determining a performance result according to the corresponding target performance data, the performance threshold, and the relationship between the corresponding target performance data, and determining whether the abnormal type associated with power exists based on the performance result; if not, for the abnormal type associated with load, determining a performance result according to the corresponding target performance data, the performance threshold, and the relationship between the corresponding target performance data, and determining whether the abnormal type associated with load exists based on the performance result.
4. The method according to any one of claims 1 to 3, wherein, The controlling of the function parameter of the target function according to the abnormal type and the function data comprises: determining a function result according to a comparison result of the function data and a function threshold; determining a target function to be controlled in the target function according to the abnormal type and the function result; performing an adjustment corresponding to the abnormal type on a function parameter of the target function to be controlled.
5. The method of claim 4, wherein, The determining of the target function to be controlled in the target function according to the abnormal type and the function result comprises: selecting a candidate target function associated with the abnormal type from the target function according to a function adjustment strategy; and selecting the target function to be controlled from the candidate target function according to the function result. 6.The method of any one of claims 1-5, further comprising: in a case where an abnormal type corresponding to the recovered abnormal type is recovered, restoring a function parameter of a target function corresponding to the recovered abnormal type.
7. The method according to any one of claims 1-6, wherein, The target service comprises a live broadcast, and the performance data comprises a first performance indicator and a second performance indicator, the first performance indicator comprising an indicator associated with a reaction intensity of an indicator during running of the target service, and the second performance indicator comprising an indicator associated with the first performance indicator. 8.A device for controlling a function parameter, comprising: An obtaining module configured to obtain performance data and function data in a running process of a target service, the performance data comprising data associated with performance of an electronic device running the target service, and the function data comprising data of a target function included in the target service; A determining module configured to determine an exception type corresponding to the performance data; A control module configured to control a function parameter of the target function according to the exception type and the function data. 9.An electronic device comprising: one or more processing devices; a storage device configured to store one or more programs, when the one or more programs are executed by the one or more processing devices, cause the one or more processing devices to implement the function parameter control method according to any one of claims 1-7.
10. A storage medium containing computer-executable instructions, wherein, The computer executable instructions when executed by a computer processor are for performing the function parameter control method according to any one of claims 1-7.
Citation Information
Patent Citations
Method and device for releasing resources
CN104778086A
Method for using application and application platform
CN108111562A
Application program processing method and device, equipment, storage medium and program product
CN112925577A
Control method, intelligent terminal and storage medium
CN117793246A
Device interrogation framework
US9626183B1