Stuttering adjustment method, device, readable medium and electronic device

By determining whether the first indicator data in the stuttering market meets the preset conditions and determining and stop printing the target log, the problem of lag caused by excessive log printing of smart devices is solved, and effective lag relief and log retention are achieved.

CN115033383BActive Publication Date: 2025-03-14BEIJING YOUZHUJU NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210725383.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-23
Publication Date
2025-03-14
Estimated Expiration
2042-06-23

AI Technical Summary

Technical Problem

Smart devices will cause user experience lag when too many code programs run. The existing technology solves lag by deleting logs, but this will cause insufficient logs to be unable to troubleshoot problems, or cannot accurately reflect the user's real experience.

Method used

By determining whether the first indicator data in the stuttering market meets the preset conditions, determining the target log and generating a log list, sending it to the device to control the stop printing of the target log, thereby alleviating the lag.

Benefits of technology

Effectively and instantly alleviate the problem of equipment lag, and stopping the printing of target logs has little impact on subsequent troubleshooting problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115033383B_ABST
    Figure CN115033383B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a jamming adjustment method, device, readable medium and electronic device, the jamming adjustment method comprising: judging whether first indicator data in a jamming disk meets a preset condition, the jamming disk is used to store second indicator data corresponding to multiple devices that characterize jamming situations, the first indicator data being determined based on the second indicator data; in response to the first indicator data meeting the preset condition, determining a target log, and generating a log list based on the target log; sending the log list to the multiple devices to control the multiple devices to stop printing the target logs in the log list. The present disclosure determines whether all devices are jammed by detecting the first indicator data of all devices in the jamming disk, and when jamming occurs in all devices, a decision is made to stop printing a part of the logs, thereby quickly resolving the jamming problem of the devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of smart devices, and in particular to a freeze adjustment method, device, readable medium and electronic device. Background Art

[0002] When too many code programs are running on a smart device, the user experience will be very laggy, and in severe cases, the device may freeze and restart. Lag is a major performance issue for smart devices. One of the reasons for the lag is that the device prints too many logs, which increases the amount of logs and occupies too many system resources.

[0003] Currently, the solution to device freezes is to directly delete the logs, or delete the logs based on current resource capabilities, such as when the CPU usage is high or the memory is insufficient. The first method, directly deleting the logs, will result in insufficient logs if the problem needs to be investigated later, and it will be impossible to assist developers in solving the problems encountered by users; the second method, the CPU or memory cannot directly reflect whether the user is actually experiencing freezes. In addition, the same problems as the first method still exist after deleting the logs. Therefore, both methods have certain problems. Summary of the invention

[0004] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0005] In a first aspect, the present disclosure provides a method for adjusting a jam, comprising:

[0006] Determine whether first indicator data in the jamming dashboard meets a preset condition, wherein the jamming dashboard is used to store second indicator data corresponding to multiple devices and representing jamming conditions, and the first indicator data is determined based on the second indicator data;

[0007] In response to the first indicator data satisfying the preset condition, determining a target log, and generating a log list according to the target log;

[0008] The log list is sent to the plurality of devices to control the plurality of devices to stop printing target logs in the log list.

[0009] In a second aspect, the present disclosure provides a jamming adjustment device, comprising:

[0010] A jamming judgment module, used to judge whether the first indicator data in the jamming dashboard meets a preset condition, wherein the jamming dashboard is used to store second indicator data corresponding to a plurality of devices and representing the jamming situation, wherein the first indicator data is determined based on the second indicator data;

[0011] a log decision module, configured to determine a target log in response to the first indicator data satisfying the preset condition, and generate a log list according to the target log;

[0012] The device control module is used to send the log list to the multiple devices to control the multiple devices to stop printing the target logs in the log list.

[0013] In a third aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of the method described in the first aspect.

[0014] In a fourth aspect, the present disclosure provides an electronic device, including:

[0015] a storage device having a computer program stored thereon;

[0016] A processing device is used to execute the computer program in the storage device to implement the steps of the method described in the first aspect.

[0017] In the above scheme, the first indicator data can reflect the real-time jamming situation of all devices in the jamming market. By judging whether the first indicator data meets the preset conditions, the real usage experience of online users can be determined, and then it can be determined whether it is necessary to make log optimization decisions. If log optimization decisions are required, the target logs that need to stop printing are determined, and a log list is generated based on the target logs, and then the log list is sent to each device. After the device receives the log list, it will no longer print the logs in the log list, which can effectively and immediately alleviate the jamming problem of the device. Moreover, other logs in the device that are not target logs are still printed normally, so stopping printing the target logs has little impact on subsequent troubleshooting.

[0018] Other features and advantages of the present disclosure will be described in detail in the following detailed 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 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. In the drawings:

[0020] Figure 1 A flow chart of a jamming adjustment method provided by an exemplary embodiment is shown;

[0021] Figure 2 A schematic diagram of a configuration file in an exemplary embodiment is shown;

[0022] Figure 3 A schematic diagram of a jam regulation system constructed in an exemplary embodiment is shown;

[0023] Figure 4 A block diagram of a jam adjustment device provided by an exemplary embodiment is shown;

[0024] Figure 5 A block diagram of an electronic device provided by an exemplary embodiment is shown. DETAILED DESCRIPTION

[0025] 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.

[0026] 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.

[0027] 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.

[0028] 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.

[0029] 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".

[0030] 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.

[0031] 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.

[0032] 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.

[0033] 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.

[0034] 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.

[0035] At the same time, 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.

[0036] In view of the problems existing in the background technology, an embodiment of the present disclosure provides a method for adjusting freezes to improve the freeze problem of a device. Figure 1 A flowchart of a jam adjustment method provided by an exemplary embodiment is shown. Figure 1 , the method comprising:

[0037] S101, determining whether first indicator data in the jamming disk meets a preset condition. The jamming disk is used to store second indicator data corresponding to multiple devices and representing jamming conditions. The first indicator data is determined based on the second indicator data.

[0038] Among them, the first indicator data is obtained based on the second indicator data corresponding to each device in the lag disk, and is used to reflect the overall lag situation of all devices in the lag disk.

[0039] In a possible implementation, the second indicator data is the frame rate of the device. When the frame rate of the device is less than a certain value, it indicates that the device may be stuck, and the smaller the frame rate, the more serious the stuck. The first indicator data may be the proportion of devices with a frame rate lower than the first preset value in the stuck disk during the current period.

[0040] It should be understood that the second indicator data may also be other indicators that can characterize the jamming of the device, such as the second indicator data is the execution time interval between two messages in the device. When the execution time interval of the device is greater than a certain value, it means that the device may be jammed, and the larger the execution time interval, the more serious the jamming. Correspondingly, the first indicator data may be the proportion of devices in the jamming market in the current period whose execution time interval is greater than the second preset value. The present disclosure does not specifically limit which indicator is used to characterize the jamming of the device itself.

[0041] For ease of description, the following describes the solution in detail by taking the second indicator data as the frame rate of the device and the first indicator data as the proportion of devices with a frame rate lower than a preset value in the current period in the jammed market as an example.

[0042] In the specific implementation, a jam disk is pre-built, which stores the second indicator data representing the jam situation corresponding to multiple devices. It is worth noting that the jam disk stores the data of all online devices, not the data of a single device, so the jam disk can truly reflect the actual user experience.

[0043] A resident service is run in each device, which will continuously detect the current frame rate of the device. When the current frame rate of the device is less than the preset value, the current frame rate information and time information of the device are reported. In other embodiments, the current CPU occupancy information and / or current memory information of the device can also be reported at the same time. After receiving the frame rate information and time information reported by the device, it is stored in the card disk. If the current frame rate of the device is not less than the preset value, it is not necessary to report.

[0044] The function of the jam dashboard is to warn of jams in all devices and trigger log optimization decisions. If the first indicator data in the jam dashboard meets the preset conditions, it indicates that all devices are experiencing jams and log optimization decisions need to be made to control the log printing of the devices.

[0045] S102: In response to the first indicator data satisfying the preset condition, determining a target log, and generating a log list according to the target log.

[0046] After determining that the first indicator data in the jam dashboard meets the preset conditions, the target log is determined, and a log list is generated based on the target log. This process is called log optimization decision.

[0047] S103, sending the log list to multiple devices to control the multiple devices to stop printing the target logs in the log list.

[0048] After the log list is generated, it is sent to each device. After receiving the log list, each device stops printing the target log in the log list.

[0049] In the above scheme, the first indicator data can reflect the real-time jamming situation of all devices in the jamming market. By judging whether the first indicator data meets the preset conditions, the real user experience of online users can be determined, and then it can be determined whether it is necessary to make log optimization decisions. If log optimization decisions are required, the target logs that need to be stopped from printing are determined, and a log list is generated based on the target logs, and then the log list is sent to each device. After the device receives the log list, it will no longer print the logs in the log list, which can effectively and immediately alleviate the jamming problem of the device.

[0050] Moreover, other logs in the device that are not the target logs are still printed normally, so stopping printing the target logs has little impact on subsequent troubleshooting.

[0051] In an exemplary embodiment, step S101 includes: determining first indicator data, the first indicator data is the proportion of devices in the jammed disk with a frame rate lower than a preset value in the current time period, and then judging whether the proportion of devices in the jammed disk with a frame rate lower than the preset value in the current time period is within a preset proportion range based on the first indicator data; if the proportion of devices in the jammed disk with a frame rate lower than the preset value in the current time period is within the preset proportion range, it is determined that the first indicator data meets the preset conditions.

[0052] Exemplarily, if the proportion of devices with a frame rate lower than a preset value in the jammed market during the current period reaches 30% and is within the preset proportion range [30%, 100%], it is determined that the first indicator data meets the preset condition.

[0053] It should be understood that if the frame rate of more than 30% of the devices is lower than the preset value, it means that all the online devices are stuck, so log optimization decisions need to be made. Otherwise, if the frame rate of less than 30% of the devices is lower than the preset value, this situation is regarded as normal for daily use, and no log optimization decision is made to avoid excessive impact on the device's log printing.

[0054] In an exemplary embodiment, step S102 includes: sorting all logs in descending order according to the number of calls of each log, and selecting a plurality of logs at the end as target logs.

[0055] It should be understood that when developers receive user feedback or bug reports from the business platform, they will obtain the device logs through the log data platform. Every time a log is called, the number of calls for the log will increase by 1. By counting the number of calls for each log, you can know which logs are actually used and are valid logs with value, and which logs are invalid logs with no use value.

[0056] Therefore, all logs are sorted in descending order according to the number of calls of each log. The logs at the top are valid logs with high usage frequency, and the logs at the bottom are invalid logs with low usage frequency. The target log obtained through the above steps is an invalid log with low usage frequency.

[0057] It is worth noting that the log list in the present disclosure can be updated along with the usage of the log.

[0058] In the above steps, by counting the number of calls for each log, only logs with low call counts are decided as target logs. This can avoid the problem that valid logs are cut off in a one-size-fits-all manner and cannot assist in subsequent troubleshooting.

[0059] In order to further protect the valid logs, the preset ratio interval is divided into multiple ratio sub-intervals, each of which represents a different degree of jamming severity. In the above steps, the target ratio sub-interval in which the proportion of devices with a frame rate lower than the preset value in the jamming market during the current period is determined, and according to the preset number M corresponding to the target ratio sub-interval, the M logs at the end are selected as the target logs; wherein the preset number M corresponding to the multiple ratio sub-intervals is proportional to the value in the corresponding ratio sub-interval.

[0060] In this way, the number of target logs in the log list can be adjusted intelligently and dynamically according to the severity of the jamming of all devices. For example, the higher the proportion of devices with a frame rate lower than the preset value, the more severe the jamming, and the larger the corresponding preset number M. At this time, more target logs will be decided and printing will be stopped. When the jamming is alleviated, the proportion of devices with a frame rate lower than the preset value decreases, and the corresponding preset number M decreases accordingly. At this time, fewer target logs will be decided. This not only solves the jamming problem of the device, but also protects the output of valid logs with the highest probability.

[0061] In an exemplary embodiment, in step S103, the log list is sent to a plurality of devices to control the plurality of devices to stop printing target logs in the log list.

[0062] Specifically, it includes: generating a configuration file in the form of a key value, wherein the key is filled with a preset name and the value is filled with a unique identifier corresponding to the target log. If there are multiple target logs, the key corresponds to multiple values, and each value is filled with a unique identifier corresponding to a target log. Then, the configuration file is sent to each device to instruct each device to stop printing the log corresponding to each unique identifier in the value of the configuration file. Figure 2 A schematic diagram of a configuration file in an exemplary embodiment is shown.

[0063] Furthermore, after the lag of all devices is alleviated, the printing of logs on each device can be resumed.

[0064] Optionally, within a preset time after receiving the log list, if the device does not receive any new instructions, the printing of all logs may be automatically resumed.

[0065] Optionally, after sending the log list to each device, continue to execute step S101, that is, continue to determine whether the first indicator data in the jamming disk meets the preset conditions. In response to the first indicator data changing from meeting the preset conditions to not meeting the preset conditions, indicating that all devices are no longer jammed or the jamming is very slight, the log list is cleared to control the multiple devices to resume printing of all logs.

[0066] In a specific implementation, the key in the configuration file is unchanged, and the value is filled with empty to generate a new configuration file, and the new configuration file is sent to each device. After each device receives the new configuration file, since the value in the configuration file is empty, it no longer stops printing any logs, and thus resumes printing all logs.

[0067] Optionally, in the process of controlling each device to resume printing of all logs, the printing of all logs may be resumed step by step in stages according to the severity of the jams of all devices in the jam disk, in accordance with the aforementioned implementation.

[0068] As an example, assuming that the proportion of devices with a frame rate lower than the preset value in the jammed disk during the current period is 70%, the 100 logs with the last call count will be selected as the target logs, and each device will be controlled to stop printing these 100 logs. After taking the above measures, the jamming of all devices is alleviated. In the current period, the proportion of devices with a frame rate lower than the preset value in the jammed disk drops to 60%. Therefore, the 80 logs with the last call count will be selected as the target logs, and each device will be controlled to stop printing these 80 logs. The jamming of all devices continues to be alleviated. The proportion of devices with a frame rate lower than the preset value drops to 50%, so the 50 logs with the lowest number of calls are selected as target logs, and so on. The proportion of devices with a frame rate lower than the preset value in the jam disk in the current period continues to drop to 40%...30%, and the number of determined target logs gradually decreases until the proportion of devices with a frame rate lower than the preset value in the jam disk in the current period is not within the preset proportion range, and the first indicator data in the jam disk does not meet the preset conditions. At this time, the log list will be cleared, and each device will no longer be controlled to stop printing logs, thereby restoring the printing of all logs for each device.

[0069] This phased recovery method can solve the device lag problem and protect valid logs.

[0070] Based on the specific implementation of the above-mentioned jamming adjustment method, a jamming adjustment system is constructed. Figure 3A schematic diagram of a jam adjustment system constructed by an exemplary embodiment is shown, please refer to Figure 3 The lag adjustment system includes: lag experience feedback service, log call statistics service, decision-making platform and configuration platform.

[0071] Among them, the jam experience feedback service is used to determine whether the first indicator data in the jam disk meets the preset conditions, wherein the first indicator data is the proportion of devices with a frame rate lower than the preset value in the jam disk during the current period. If the proportion of devices with a frame rate lower than the preset value in the jam disk during the current period is within the preset proportion range, it is determined that the first indicator data meets the preset conditions, and the log decision optimization is triggered to the decision platform. After the log decision optimization is triggered, the decision platform requests the log call statistics service to sort the log list.

[0072] It should be understood that when developers receive user feedback or bug reports from the business platform, they will obtain the device logs through the log data platform. The log call statistics service counts the call status of each log. Every time a log is called, the number of calls for the log is increased by one, and all logs are sorted in descending order according to the number of calls for each log. The logs at the top are valid logs with high usage frequency, and the logs at the end are invalid logs with low usage frequency. The log call statistics service outputs a sorted list of logs based on the request of the decision platform.

[0073] After obtaining the sorted list of logs, the decision platform determines the target log based on the log at the end, then generates a log list based on the determined target log, and outputs the log list to the configuration platform. The decision platform can intelligently and dynamically adjust the number of target logs in the log list based on the severity of the jamming of all devices.

[0074] The configuration platform generates a configuration file in the form of key value, where the key is filled with the preset name and the value is filled with the unique identifier corresponding to the target log. The configuration platform sends the generated configuration file to each device. After the device receives the configuration file, it stops printing the log corresponding to each unique identifier in the value of the configuration file according to the configuration file.

[0075] It should be noted that the log call statistics service can also be used to help developers analyze the effectiveness of logs, standardize log output, and avoid introducing too many invalid logs as business development progresses.

[0076] It should be noted that the devices in the present disclosure include but are not limited to various smart devices, such as smart desk lamps, smart speakers, smart learning machines, etc.

[0077] Figure 4 A block diagram of a jam adjustment device provided by an exemplary embodiment is shown, please refer to Figure 4 , the Caton adjustment device 200 includes:

[0078] A jamming judgment module 201 is used to judge whether the first indicator data in the jamming disk meets a preset condition, wherein the jamming disk is used to store second indicator data corresponding to multiple devices and representing the jamming situation, and the first indicator data is determined based on the second indicator data;

[0079] A log decision module 202, configured to determine a target log in response to the first indicator data satisfying the preset condition, and generate a log list according to the target log;

[0080] The device control module 203 is used to send the log list to the multiple devices to control the multiple devices to stop printing the target logs in the log list.

[0081] Optionally, the log decision module 202 is used to:

[0082] All logs are sorted in descending order according to the number of calls of each log, and multiple logs at the end are selected as the target logs.

[0083] Optionally, the second indicator data is a frame rate of the device, and the freeze determination module 201 includes:

[0084] An indicator determination module, used to determine first indicator data, where the first indicator data is the proportion of devices with a frame rate lower than a preset value in the jamming market in a current period;

[0085] An indicator judgment module, used for judging whether the proportion of devices with a frame rate lower than a preset value in the jamming market in the current period is within a preset proportion range according to the first indicator data;

[0086] The condition determination module is used to determine that the first indicator data meets the preset condition if the proportion of devices with a frame rate lower than a preset value in the jamming market during the current period is within the preset proportion range.

[0087] Optionally, the log decision module 202 includes:

[0088] A sub-interval determination module, used to determine a target proportion sub-interval in which the proportion of devices with a frame rate lower than a preset value in the jamming market in the current period is located;

[0089] A target log determination module, configured to select the M logs at the end as the target logs according to a preset number M corresponding to the target ratio sub-interval;

[0090] The preset number M corresponding to the plurality of proportional subintervals is proportional to the value in the corresponding proportional subinterval.

[0091] Optionally, the device control module 203 includes:

[0092] The configuration generation module is used to generate a configuration file in key-value format; the key is filled with a preset name and the value is filled with a unique identifier corresponding to the target log;

[0093] The configuration sending module is used to send the configuration file to the multiple devices to instruct the multiple devices to stop printing the log corresponding to each unique identifier in the value of the configuration file.

[0094] Optionally, the device 200 further includes:

[0095] The recovery control module is used for clearing the log list in response to the first indicator data changing from satisfying the preset condition to not satisfying the preset condition, so as to control the multiple devices to resume printing of all logs.

[0096] Optionally, the recovery control module is used to fill the values ​​in the configuration file with blanks, generate a new configuration file, and send the new configuration file to the multiple devices.

[0097] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0098] Reference below Figure 5 , which shows a block diagram of an electronic device 300 suitable for implementing the embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include but are not limited to servers, server clusters, notebook computers, desktop computers, etc. Figure 5 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.

[0099] like Figure 5 As shown, the electronic device 300 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0100] Typically, the following devices may be connected to the I / O interface 305: input devices 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 308 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 309. The communication devices 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 5 The electronic device 300 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.

[0101] 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 the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0102] 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.

[0103] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0104] 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 whether the first indicator data in the jam disk meets the preset conditions, and the jam disk is used to store the second indicator data representing the jam conditions corresponding to multiple devices, and the first indicator data is determined based on the second indicator data; in response to the first indicator data meeting the preset conditions, determines the target log, and generates a log list based on the target log; sends the log list to the multiple devices to control the multiple devices to stop printing the target logs in the log list.

[0105] 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., via the Internet using an Internet service provider).

[0106] 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.

[0107] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a module does not limit the module itself in some cases. For example, the jamming judgment module may also be described as a "module for judging whether the first indicator data in the jamming disk meets the preset conditions."

[0108] 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.

[0109] 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.

[0110] According to one or more embodiments of the present disclosure, Example 1 provides a jamming adjustment method, including:

[0111] Determine whether first indicator data in the jamming dashboard meets a preset condition, wherein the jamming dashboard is used to store second indicator data corresponding to multiple devices and representing jamming conditions, and the first indicator data is determined based on the second indicator data;

[0112] In response to the first indicator data satisfying the preset condition, determining a target log, and generating a log list according to the target log;

[0113] The log list is sent to the plurality of devices to control the plurality of devices to stop printing target logs in the log list.

[0114] According to one or more embodiments of the present disclosure, Example 2 provides the method of Example 1, wherein determining the target log includes:

[0115] All logs are sorted in descending order according to the number of calls of each log, and multiple logs at the end are selected as the target logs.

[0116] According to one or more embodiments of the present disclosure, Example 3 provides the method of Example 2, wherein the second indicator data is a frame rate of the device, and the determining whether the first indicator data in the jamming disk meets a preset condition includes:

[0117] Determine first indicator data, where the first indicator data is the proportion of devices with a frame rate lower than a preset value in the jamming market in the current period;

[0118] According to the first indicator data, determine whether the proportion of devices with a frame rate lower than a preset value in the jamming market in the current period is within a preset proportion range;

[0119] If the proportion of devices with a frame rate lower than a preset value in the jamming market during the current period is within the preset proportion range, it is determined that the first indicator data meets the preset condition.

[0120] According to one or more embodiments of the present disclosure, Example 4 provides the method of Example 3, wherein the preset proportion interval is divided into a plurality of proportion sub-intervals; and in response to the first indicator data satisfying the preset condition, determining the target log includes:

[0121] Determine a target ratio sub-interval in which the ratio of devices having a frame rate lower than a preset value in the jamming market in the current period falls;

[0122] According to the preset number M corresponding to the target ratio sub-interval, select the M logs at the end as the target logs;

[0123] The preset number M corresponding to the plurality of proportional subintervals is proportional to the value in the corresponding proportional subinterval.

[0124] According to one or more embodiments of the present disclosure, Example 5 provides a method of any one of Examples 1 to 4, wherein sending the log list to the multiple devices to control the multiple devices to stop printing target logs in the log list includes:

[0125] Generate a configuration file in key-value format, where the key is filled with the preset name and the value is filled with the unique identifier corresponding to the target log;

[0126] The configuration file is sent to the multiple devices to instruct the multiple devices to stop printing the log corresponding to each unique identifier in the value of the configuration file.

[0127] According to one or more embodiments of the present disclosure, Example 6 provides the method of Example 5, wherein the method further includes:

[0128] In response to the first indicator data changing from satisfying the preset condition to not satisfying the preset condition, the log list is cleared to control the multiple devices to resume printing of all logs.

[0129] According to one or more embodiments of the present disclosure, Example 7 provides the method of Example 6, wherein clearing the log list to control the multiple devices to resume printing the target log includes:

[0130] Fill the values ​​in the configuration file with blanks to generate a new configuration file, and send the new configuration file to the multiple devices.

[0131] According to one or more embodiments of the present disclosure, Example 8 provides a jamming adjustment device, including:

[0132] A jamming judgment module, used to judge whether the first indicator data in the jamming dashboard meets a preset condition, wherein the jamming dashboard is used to store second indicator data corresponding to multiple devices representing the jamming situation, and the first indicator data is determined based on the second indicator data;

[0133] a log decision module, configured to determine a target log in response to the first indicator data satisfying the preset condition, and generate a log list according to the target log;

[0134] The device control module is used to send the log list to the multiple devices to control the multiple devices to stop printing the target logs in the log list.

[0135] According to one or more embodiments of the present disclosure, Example 9 provides a computer-readable medium having a computer program stored thereon, which implements the steps of the method described in any one of Examples 1 to 7 when executed by a processing device.

[0136] According to one or more embodiments of the present disclosure, Example 10 provides an electronic device, including:

[0137] a storage device having a computer program stored thereon;

[0138] A processing device is used to execute the computer program in the storage device to implement the steps of the method described in any one of Examples 1 to 7.

[0139] 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.

[0140] 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.

[0141] 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 method for adjusting a jam, characterized in that: include: Determine whether first indicator data in the jamming dashboard meets a preset condition, the jamming dashboard is used to store second indicator data corresponding to multiple devices that characterize jamming situations, the first indicator data is a ratio of devices with jamming among the multiple devices, and the devices with jamming are determined based on the second indicator data; In response to the first indicator data satisfying the preset condition, determining a target log, and generating a log list according to the target log; The log list is sent to the plurality of devices to control the plurality of devices to stop printing target logs in the log list.

2. The method according to claim 1, characterized in that The determining of the target log includes: All logs are sorted in descending order according to the number of calls of each log, and multiple logs at the end are selected as the target logs.

3. The method according to claim 2, characterized in that The second indicator data is the frame rate of the device, and the determination of whether the first indicator data in the jamming disk meets the preset condition includes: Determine first indicator data, where the first indicator data is the proportion of devices with a frame rate lower than a preset value in the jamming market in the current period; According to the first indicator data, determine whether the proportion of devices with a frame rate lower than a preset value in the jamming market in the current period is within a preset proportion range; If the proportion of devices with a frame rate lower than a preset value in the jamming market during the current period is within the preset proportion range, it is determined that the first indicator data meets the preset condition.

4. The method according to claim 3, characterized in that The preset ratio interval is divided into a plurality of ratio sub-intervals; In response to the first indicator data satisfying the preset condition, determining the target log includes: Determine a target ratio sub-interval in which the ratio of devices having a frame rate lower than a preset value in the jamming market in the current period falls; According to the preset number M corresponding to the target ratio sub-interval, select the M logs at the end as the target logs; The preset number M corresponding to the plurality of proportional subintervals is proportional to the value in the corresponding proportional subinterval.

5. The method according to any one of claims 1 to 4, characterized in that: The sending the log list to the multiple devices to control the multiple devices to stop printing the target logs in the log list includes: Generate a configuration file in key-value format, where the key is filled with the preset name and the value is filled with the unique identifier corresponding to the target log; The configuration file is sent to the multiple devices to instruct the multiple devices to stop printing the log corresponding to each unique identifier in the value of the configuration file.

6. The method according to claim 5, characterized in that The method further comprises: In response to the first indicator data changing from satisfying the preset condition to not satisfying the preset condition, the log list is cleared to control the multiple devices to resume printing of all logs.

7. The method according to claim 6, characterized in that The clearing the log list to control the multiple devices to resume printing the target log includes: Fill the values ​​in the configuration file with blanks to generate a new configuration file, and send the new configuration file to the multiple devices.

8. A jamming adjustment device, characterized in that: include: A jamming judgment module, used to judge whether the first indicator data in the jamming dashboard meets a preset condition, the jamming dashboard is used to store second indicator data corresponding to multiple devices representing the jamming situation, the first indicator data is the ratio of the devices with jamming among the multiple devices, and the devices with jamming are determined according to the second indicator data; a log decision module, configured to determine a target log in response to the first indicator data satisfying the preset condition, and generate a log list according to the target log; The device control module is used to send the log list to the multiple devices to control the multiple devices to stop printing the target logs in the log list.

9. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processing device, the steps of the method described in any one of claims 1 to 7 are implemented.

10. An electronic device, characterized in that: include: a storage device having a computer program stored thereon; A processing device, configured to execute the computer program in the storage device to implement the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Halt detection method and device and computing device

    CN105677573A

  • Cached data deletion method, terminal and computer readable storage medium

    CN108052280A