Memory cleaning method for display device and browser

By monitoring and calculating the browser's memory usage, fragmentation index, and redundancy score, the system automatically identifies and cleans up memory anomalies, resolving the problem of insufficient browser storage space and improving the memory management efficiency and user experience of display devices.

CN122045535APending Publication Date: 2026-05-15VIDAA (NETHERLANDS) INT HLDG LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
VIDAA (NETHERLANDS) INT HLDG LTD
Filing Date
2026-02-02
Publication Date
2026-05-15

AI Technical Summary

Technical Problem

After prolonged use, browsers on existing display devices experience a decrease in available memory, leading to reduced data read/write efficiency, a poor user experience, and inefficient storage cleanup due to user-initiated commands.

Method used

By monitoring the browser's memory usage, fragmentation index, and redundancy score, a memory anomaly index is calculated, and targeted memory cleanup operations are automatically performed when an anomaly occurs, including fragment consolidation and redundant data cleanup.

Benefits of technology

It enables automated memory cleanup while the browser is running, improving the efficiency of storage space cleanup, reducing user intervention, and enhancing browser performance and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122045535A_ABST
    Figure CN122045535A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a display device and a browser memory cleaning method, and the method can obtain a memory occupancy rate of a browser, a fragmentation index of the browser and a redundancy score of the browser under the condition that the browser is in a running state, calculate a memory exception index, and improve the memory exception index of the browser. And under the condition that the memory exception index is smaller than a preset exception index threshold value, determining that the browser is in a memory exception state, and executing corresponding memory cleaning operation on the browser according to different memory exception states. According to the embodiment, the memory related parameters of the browser can be automatically monitored and the memory abnormal index can be calculated under the condition that the browser is in the running state, the memory abnormal state of the browser can be accurately identified when the memory abnormal index is too low, and different memory cleaning operations can be automatically executed according to different memory abnormal states, so that the memory cleaning efficiency is improved. The manual operation process of the user is reduced, and the automation of browser memory cleaning is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of display device technology, and in particular to a method for clearing memory in a display device and a browser. Background Technology

[0002] The browser built into a display device is the core application for users to access internet content. Browsers typically use local storage technology to store various types of data in their storage space, such as key-value pairs, structure tree data, and API data. This allows display devices to achieve fast data reading and writing and offline access without relying on remote servers.

[0003] When a browser runs for an extended period of time, the browser's available memory will gradually decrease, reducing the browser's efficiency in reading and writing data and impacting the user experience.

[0004] Currently, browser storage management primarily relies on the display device passively responding to user-initiated control commands to clear storage space. The display device responds to user input by entering the browser's storage interface to optimize storage and free up memory. However, this approach is inherently passive; the display device typically only prompts the user to clear storage space when it's already low, impacting the efficiency of this process. Summary of the Invention

[0005] This application provides a method for cleaning up memory in a display device and a browser, in order to solve the problem that the display device needs to passively respond to control commands actively issued by the user to clean up the browser's storage space.

[0006] In a first aspect, some embodiments of this application provide a display device, including a display and a controller, wherein the display is configured to display a user interface, and the controller is configured to: When the browser is detected to be running, the browser's memory usage rate, fragmentation index, and redundancy score are obtained. The memory usage rate is used to represent the ratio of the browser's occupied memory to the total memory, the fragmentation index is used to represent the browser's fragmentation ratio, and the redundancy score is used to represent the browser's redundant data ratio. Based on the memory usage rate, the fragmentation index, and the redundancy score, the browser's memory anomaly index is calculated, which is used to characterize the health status of the browser's storage space. If the memory anomaly index is greater than a preset anomaly index threshold, the browser is determined to be in at least one memory anomaly state based on a combination relationship determined by at least one of the parameters: memory occupancy rate, fragmentation index, and redundancy score. Based on different memory anomaly states, different memory cleanup operations are performed on the browser to clean up the data to be cleaned corresponding to the memory anomaly relationships.

[0007] The above technical solution has the following beneficial effects or advantages: This embodiment can actively monitor the browser's memory usage, fragmentation index and redundancy score, and calculate the memory anomaly index. When the memory anomaly index is poor, it can perform targeted memory cleanup operations based on the browser's memory anomaly status. Users do not need to manually clean up the browser's storage space, and it will not cause browser lag or other effects on users, ensuring the efficiency and timeliness of storage space cleanup.

[0008] In some embodiments, the controller calculates the browser's memory anomaly index based on the memory usage rate, the fragmentation index, and the redundancy score, specifically configured as follows: The memory usage rate is set as a first weight, the fragmentation index as a second weight, and the redundancy score as a third weight, wherein the first weight is greater than the second weight, the second weight is greater than the third weight, and the first weight, the second weight, and the third weight are all positively correlated with the total memory of the browser. Based on the first weight, the second weight, and the third weight, the memory occupancy rate, the fragmentation index, and the redundancy score are weighted and summed to obtain the memory anomaly index.

[0009] The above technical solution has the following beneficial effects or advantages: By setting differentiated weights for memory usage, fragmentation index, and redundancy score, and calculating the memory anomaly index through weighted summation, the calculation method of the memory anomaly index can reflect the actual memory status of the browser. By integrating multi-dimensional memory status information, compared with the evaluation of a single indicator, it can more comprehensively capture memory health status, providing an accurate and reliable basis for subsequent targeted memory cleanup operations, and improving the effectiveness of memory cleanup.

[0010] In some embodiments, the controller, upon detecting that the browser is running, acquires the browser's memory usage, fragmentation index, and redundancy score, specifically configured as follows: When the browser is detected to be running, monitor the number of memory fragments and the average amount of memory in the browser. Calculate the product of the number of memory fragments and the average memory amount of the memory fragments to obtain the total memory amount of the memory fragments; The fragmentation index is obtained by calculating the ratio of the total amount of memory fragments to the total amount of memory in the browser.

[0011] The above technical solution has the following beneficial effects or advantages: by monitoring the number of memory fragments and the average memory amount of all memory fragments, and calculating the total memory amount corresponding to all memory fragments, a fragmentation index is obtained. This fragmentation index can accurately quantify the degree of browser memory fragmentation, providing accurate data support for accurately assessing the memory anomaly index and identifying memory anomalies caused by memory fragmentation.

[0012] In some embodiments, the controller, upon detecting that the browser is running, acquires the browser's memory usage, fragmentation index, and redundancy score, specifically configured as follows: Upon detecting that the browser is running, the browser's data set is obtained. The data set includes multiple browser data items with hash values, where the hash values ​​are data identifiers for the browser data. Within the dataset, query target browser data with the same hash value; The redundancy score is obtained by calculating the ratio of the number of target browser data to the total number of browser data in the dataset.

[0013] The above technical solution has the following beneficial effects or advantages: by acquiring browser datasets and merging duplicate target browser data based on hash values, and then calculating redundancy scores, it is possible to assess the proportion of duplicate browser data in the browser, enabling display devices to accurately locate the browser's redundant data problem.

[0014] In some embodiments, when the memory anomaly index is greater than a preset anomaly index threshold, the controller determines at least one memory anomaly state of the browser based on a combination relationship determined by at least one parameter among the memory occupancy rate, the fragmentation index, and the redundancy score. Specifically, this is configured as follows: Calculate the growth rate of memory usage over a preset number of days; Based on the first combination relationship between the growth rate and the fragmentation index, if the growth rate is greater than or equal to a preset rate threshold and the fragmentation index is greater than or equal to a preset index threshold, then the browser is determined to be in a first memory abnormal state. The first memory abnormal state is used to indicate that the difference between the amount of data stored by the browser and the amount of memory used by the browser is greater than a trigger value.

[0015] The above technical solution has the following beneficial effects or advantages: By combining the growth rate of memory usage and the fragmentation index to jointly determine that the browser is in the first memory abnormal state, this method of judging memory abnormalities by combining the growth rate and the fragmentation index can more accurately identify the compound memory abnormality caused by the aggravation of memory fragmentation and the rapid increase of memory usage through at least two dimensions, avoiding the limitations of single index judgment and improving the accuracy of state recognition.

[0016] In some embodiments, the controller performs different memory cleanup operations on the browser based on different memory anomaly states to clean up the data to be cleaned corresponding to the memory anomaly relationships, specifically configured as follows: Based on the first memory anomaly state, fragment consolidation and data cleanup operations are performed on the browser to merge the browser's memory fragments and clean up the expired browser data stored in the browser.

[0017] The above technical solutions have the following beneficial effects or advantages: For the first memory abnormal state, by performing the operations of merging memory fragments and cleaning up expired browser data, the problem of low memory usage efficiency caused by memory fragments and expired data can be alleviated. Merging fragments can integrate scattered memory space to improve memory utilization, while cleaning up expired data can directly release the memory occupied by useless data, thereby improving the browser's running performance.

[0018] In some embodiments, when the memory anomaly index is greater than a preset anomaly index threshold, the controller determines at least one memory anomaly state of the browser based on a combination relationship determined by at least one parameter among the memory occupancy rate, the fragmentation index, and the redundancy score. Specifically, this is configured as follows: Determine the hash value corresponding to the target browser data, determine the data source of the target browser data, and the last access time of the target browser data; If the number of data sources is greater than or equal to a preset threshold, the browser is determined to be in a second memory anomaly state based on a second combination of the redundancy score and the last access time. The second memory anomaly state indicates that the browser has redundant browser data.

[0019] The above technical solution has the following beneficial effects or advantages: by determining the hash value of the target browser data, the number of data sources, and the last access time, it is possible to accurately identify redundant browser data when the data sources are diverse and the data has not been accessed for a long time, thereby determining that the browser is in a second memory abnormal state. This facilitates the subsequent execution of corresponding memory cleanup operations for the second memory abnormal state, improves the accuracy of determining the memory abnormal state, and enables timely cleanup of redundant browser data.

[0020] In some embodiments, the controller performs different memory cleanup operations on the browser based on different memory anomaly states to clean up the data to be cleaned corresponding to the memory anomaly relationships, specifically configured as follows: Based on the second memory anomaly state, the target data source is determined from among the multiple data sources of the target browser data; While retaining the target browser data corresponding to the target data source, remove any duplicate target browser data.

[0021] The above technical solution has the following beneficial effects or advantages: In response to the second memory abnormal state, by identifying the source of the target data and retaining the data corresponding to that source while clearing other duplicate data, a copy of duplicate browser data is selectively retained. This not only cleans up redundant browser data and releases memory, but also avoids data loss due to accidental deletion, ensuring that the browser can still operate normally after cleaning, and improving the rationality of memory cleaning.

[0022] In some embodiments, a memory is further included, the memory storing an abnormal state identification model. The controller, when the memory anomaly index exceeds a preset anomaly index threshold, determines at least one memory anomaly state of the browser based on a combination of at least one parameter among the memory occupancy rate, the fragmentation index, and the redundancy score. Specifically, this is configured as follows: Based on the aforementioned abnormal state identification model, the abnormal state identification is performed on the combination relationship determined by at least one of the parameters, namely the memory occupancy rate, the fragmentation index, and the redundancy score, through the decision tree algorithm and the sliding window algorithm, to determine at least one memory abnormal state in which the browser is located.

[0023] The above technical solution has the following beneficial effects or advantages: by adopting an abnormal state recognition model that integrates decision tree algorithm and sliding window algorithm to judge memory abnormal state, the decision tree algorithm can be used to process multi-dimensional features and make efficient classification decisions, while the sliding window algorithm is used to analyze the trend of multi-dimensional features changing over time, thereby achieving more intelligent and accurate dynamic recognition and prediction of memory abnormal state, and improving the automation and accuracy of determining memory abnormal state.

[0024] Secondly, some embodiments of this application provide a browser memory cleanup method, applied to the display device provided in the first aspect, including: When the browser is detected to be running, the browser's memory usage rate, fragmentation index, and redundancy score are obtained. The memory usage rate is used to represent the ratio of the browser's occupied memory to the total memory, the fragmentation index is used to represent the browser's fragmentation ratio, and the redundancy score is used to represent the browser's redundant data ratio. Based on the memory usage rate, the fragmentation index, and the redundancy score, the browser's memory anomaly index is calculated, which is used to characterize the health status of the browser's storage space. If the memory anomaly index is greater than a preset anomaly index threshold, the browser is determined to be in at least one memory anomaly state based on a combination relationship determined by at least one of the parameters: memory occupancy rate, fragmentation index, and redundancy score. Based on different memory anomaly states, different memory cleanup operations are performed on the browser to clean up the data to be cleaned corresponding to the memory anomaly relationships.

[0025] As can be seen from the above technical solutions, some embodiments of this application provide a memory cleanup method for display devices and browsers. This method can obtain the browser's memory usage rate, fragmentation index, and redundancy score while the browser is running, and calculate a memory anomaly index. If the memory anomaly index is less than a preset anomaly index threshold, the method determines the browser's memory anomaly state and performs corresponding memory cleanup operations for different memory anomaly states. This embodiment can automatically monitor the browser's memory-related parameters and calculate the memory anomaly index while the browser is running. When the memory anomaly index is too low, it can accurately identify the browser's memory anomaly state and automatically perform different memory cleanup operations based on different memory anomaly states, reducing manual operation steps for users and improving the automation of browser memory cleanup. Attached Figure Description

[0026] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0027] Figure 1This is a schematic diagram illustrating an operational scenario between a display device and a control device provided in some embodiments of this application; Figure 2 This is a schematic diagram of the hardware configuration of a display device provided in some embodiments of this application; Figure 3 This is a schematic diagram of the software configuration of a display device provided in some embodiments of this application; Figure 4 A flowchart illustrating a method for a display device to perform a browser memory cleanup as provided in some embodiments of this application; Figure 5 Timing diagrams of a browser memory cleanup method executed on a display device according to some embodiments of this application; Figure 6 A flowchart illustrating the calculation of a memory health index for a display device provided in some embodiments of this application; Figure 7 A flowchart for calculating the fragmentation index of a display device provided in some embodiments of this application; Figure 8 A flowchart for calculating redundancy scores for display devices provided in some embodiments of this application; Figure 9 A flowchart for determining a browser in a first memory error state provided in some embodiments of this application; Figure 10 This is a flowchart illustrating how a display device determines a browser in a second memory error state, as provided in some embodiments of this application. Detailed Implementation

[0028] The embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described below do not represent all embodiments consistent with this application. They are merely examples of systems and methods consistent with some aspects of this application as detailed in the claims.

[0029] In this embodiment, the display device 200 generally refers to a device with screen display and data processing capabilities. For example, the display device 200 includes, but is not limited to, smart TVs, mobile terminals, computers, monitors, advertising screens, wearable devices, virtual reality devices, augmented reality devices, etc.

[0030] Figure 1 This is a schematic diagram illustrating an operational scenario between a display device and a control device provided in some embodiments of this application. For example... Figure 1As shown, a user can operate the display device 200 via touch operation, a mobile terminal 300, and a control device 100. The control device 100 receives user input commands and converts them into control commands that the display device 200 can recognize and respond to. For example, the control device 100 can be a remote control, a stylus, a gamepad, etc.

[0031] The mobile terminal 300 can function as a control device for human-computer interaction between the user and the display device 200. It can also function as a communication device for establishing a communication connection with the display device 200 and exchanging data. In some embodiments, the mobile terminal 300 can have software applications installed on it and communicate with the display device 200 via network communication protocols to achieve one-to-one control and data communication. Furthermore, it can transmit audio and video content displayed on the mobile terminal 300 to the display device 200 for synchronized display.

[0032] In some embodiments, the mobile terminal 300 or other electronic devices may also simulate the functions of the control device 100 by running an application that controls the display device 200.

[0033] like Figure 1 The diagram also shows that the display device 200 communicates with the server 400 via various communication methods. This allows the display device 200 to communicate via a local area network (LAN), a wireless local area network (WLAN), and other networks.

[0034] Display device 200 can provide broadcast television reception function, and can also be equipped with intelligent network television function that provides computer support function, including but not limited to network television, smart television, Internet Protocol television (IPTV), etc.

[0035] Figure 2 Provided for some embodiments of this application Figure 1 Hardware configuration block diagram of display device 200.

[0036] In some embodiments, the display device 200 may include at least one of a tuner 210, a communication device 220, a detector 230, a device interface 240, a controller 250, a display 260, an audio output device 270, a memory, a power supply, and a user input interface 280.

[0037] In some embodiments, detector 230 is used to acquire signals from the external environment or to interact with the outside world. For example, detector 230 includes a light receiver, a sensor for acquiring ambient light intensity; or, detector 230 includes an image acquisition device, such as a camera, which can be used to acquire external environmental scenes, user attributes, or user interaction gestures; or, detector 230 includes a sound acquisition device, such as a microphone, for receiving external sounds.

[0038] In some embodiments, the display 260 includes display function components for presenting images and driving components for driving image display. The display 260 is used to receive and display image signals output from the controller 250. For example, the display 260 can be used to display video content, image content, menu control interface components, and user control UI interfaces, etc.

[0039] In some embodiments, the communication device 220 is a component used to communicate with external devices or the server 400 according to various communication protocol types. The display device 200 may have multiple communication devices 220 depending on the supported communication methods. For example, when the display device 200 supports wireless network communication, it may have a communication device 220 with WiFi functionality. When the display device 200 supports Bluetooth connectivity, it needs to have a communication device 220 with Bluetooth functionality.

[0040] The communication device 220 enables the display device 200 to communicate with external devices or the server 400 via wireless or wired connections. Wired connections utilize data cables, interfaces, or other components to connect the display device 200 to external devices. Wireless connections utilize wireless signals or wireless networks. The display device 200 can directly establish a connection with external devices or indirectly through gateways, routers, or other connection devices.

[0041] In some embodiments, the controller 250 may include at least one of a central processing unit, a video processor, an audio processor, a graphics processor, and a power processor, and a first to an nth interface for input / output. The controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in memory. The controller 250 controls the overall operation of the display device 200.

[0042] In some embodiments, the controller 250 and the tuner 210 may be located in different separate devices, that is, the tuner 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.

[0043] In some embodiments, a user can input user commands through a graphical user interface (GUI) displayed on a display 260, and the user input interface 280 receives the user input commands through the graphical user interface (GUI).

[0044] In some embodiments, the audio output device 270 can be a built-in speaker of the display device 200 or an external audio output device connected to the display device 200. For the external audio output device connected to the display device 200, the display device 200 may also be provided with an external audio output terminal, through which the audio output device can be connected to the display device 200 to output sound from the display device 200.

[0045] In some embodiments, the user input interface 280 can be used to receive instructions from user input.

[0046] To enable user interaction, in some embodiments, the display device 200 may run an operating system. The operating system is a computer program used to manage and control the hardware and software resources of the display device 200. The operating system can control the display device to provide a user interface; for example, the operating system can directly control the display device to provide a user interface, or it can provide a user interface by running an application. The operating system also allows users to interact with the display device 200.

[0047] It should be noted that the operating system can be a native operating system based on a specific operating platform, a third-party operating system that is deeply customized based on a specific operating platform, or an independent operating system specifically developed for display devices.

[0048] An operating system can be divided into different modules or levels based on the functions it implements, for example... Figure 3 As shown, in some embodiments, the system is divided into four layers, from top to bottom: the Applications layer (referred to as the "Application Layer"), the Application Framework layer (referred to as the "Framework Layer"), the System Library layer, and the Kernel layer.

[0049] In some embodiments, the application layer provides services and interfaces for applications, enabling the display device 200 to run applications and interact with the user based on the applications. The application layer may contain at least one application, which may be a built-in Windows program, system settings program, or clock program of the operating system; or it may be an application developed by a third-party developer. In specific implementations, the application packages in the application layer are not limited to the examples above.

[0050] The framework layer provides application programming interfaces (APIs) and a programming framework for applications. The application framework layer includes predefined functions. It acts as a central processing unit, determining the actions taken by applications within the application layer. Through the API, applications can access system resources and obtain system services during execution.

[0051] like Figure 3 As shown, Figure 3 The diagram below illustrates the software configuration of a display device according to some embodiments of this application. In some embodiments, the system of the display device 200 can be divided into three layers, from top to bottom: the application layer, the middleware layer, and the hardware layer.

[0052] The application layer mainly includes TV applications and application frameworks. The applications are mainly browser-based applications, such as HTML5 apps, and native apps. An application framework is a complete program model that has all the basic functions required by standard application software, such as file access, data exchange, and the user interface for these functions (toolbar, status bar, menu, dialog box).

[0053] Native apps can support online or offline access, push notifications, or access to local resources.

[0054] The middleware layer includes various television protocols, multimedia protocols, and system components. Middleware can use the basic services (functions) provided by system software to connect different parts of application systems or different applications on the network, achieving resource sharing and function sharing.

[0055] The hardware layer mainly includes the HAL interface, hardware, and drivers. The HAL interface is a unified interface for all TV chips, with the specific logic implemented by each chip. The drivers mainly include: audio drivers, display drivers, Bluetooth drivers, camera drivers, Wi-Fi drivers, USB drivers, HDMI drivers, sensor drivers (such as fingerprint sensors, temperature sensors, pressure sensors, etc.), and power drivers.

[0056] It should be noted that the above examples are merely a simple division of operating system functions and do not limit the specific form of the operating system of the display device 200 in this application embodiment. Depending on the function of the display device, the type of operating system, and other factors, the number of levels and the specific level type of the operating system may be expressed in other forms.

[0057] In some embodiments, the display device 200 can access internet resources, such as web pages, videos, and audio, through a browser. A browser is an application that can parse and display network resources, and can handle core functions such as resource requests, data parsing, content rendering, and user interaction.

[0058] In some embodiments, the browser of the display device 200 can run on the operating system of the display device 200, and rely on the middleware and hardware layer support of the operating system to achieve efficient access to and display of various network resources. The browser can display a visual interactive interface to the user, thereby providing the user with various interactive functions, such as opening web pages, watching videos, and listening to audio. Based on each interaction, the display device 200 can generate different application processes, such as web page processes, video processes, and audio processes.

[0059] In some embodiments, browsers can employ various storage technologies to store different types of data in their storage space. For example, this data may include key-value pairs, structure tree data, interface data, etc., enabling display devices to achieve fast data read / write and offline access without relying on remote servers. For example, various storage technologies may include IndexedDB, LocalStorage, and Cache APIs.

[0060] When a browser runs for an extended period, its available memory will continuously decrease, reducing the efficiency of data reading and writing and impacting the user experience. For example, when a display device frequently adds or deletes data in the browser, it generates a large amount of memory fragmentation. These fragments continuously consume memory, reducing the available memory. Another example is that during prolonged browser operation, the browser adds a large amount of cached data, consuming memory. Yet another example is that the browser stores multiple identical data entries, resulting in redundant data occupying storage space.

[0061] Therefore, the display device 200 needs to clean up the browser's storage space to free up browser memory. However, the browser's storage space management mainly relies on the passive control of the display device 200. The display device responds to user input commands and enters the browser's storage interface to optimize storage space and release spare memory. However, this approach is clearly passive; the display device 200 usually only prompts the user to clean up storage space when the browser's storage space is insufficient, affecting the efficiency of browser storage space cleanup.

[0062] Some embodiments of this application provide a display device 200, including a display 260 and a controller 250, wherein the display 260 is configured to display a user interface.

[0063] Figure 4 This is a flowchart illustrating a browser memory cleanup method performed on a display device according to some embodiments of this application. Figure 5 Timing diagrams for executing a browser memory cleanup method on a display device provided in some embodiments of this application.

[0064] See Figure 4 and Figure 5 The controller 250 is configured to perform the following steps, including: S100: When the browser is detected to be running, obtain the browser's memory usage, fragmentation index, and redundancy score.

[0065] In some embodiments, the display device 200 can respond to a user's startup command based on browser input, run a browser, and display a visually interactive user interface on the display 260 based on the browser. The user interface can display various interactive applications, such as video playback applications, news applications, online shopping applications, social chat applications, etc. Users can select and open the corresponding interactive applications on the user interface through remote control, voice, or touch, so as to realize functions such as information browsing, content viewing, and online communication through the browser.

[0066] During browser operation, as users access different web pages, use various applications, and cache data, the browser's memory usage gradually changes. Based on this, the display device 200 can obtain the browser's memory usage rate, browser fragmentation index, and browser redundancy score.

[0067] In some embodiments, the browser can implement its corresponding application functions through the application layer. To this end, the display device 200 can obtain the browser's memory usage, fragmentation index, and redundancy score through the API interface of the application layer.

[0068] Memory utilization rate is used to represent the ratio of the amount of memory occupied by the browser to the total memory of the browser. For example, when the total memory of the browser is 1GB and the amount of memory occupied is 600MB, its memory utilization rate is 60%.

[0069] The fragmentation index is used to characterize the fragmentation ratio of a browser. The browser's storage space includes multiple memory fragments, and the fragmentation index is the ratio of the sum of the memory amounts of all memory fragments to the total memory of the browser.

[0070] Memory fragmentation occurs due to mismatched memory allocation. For example, when there are multiple non-contiguous memory fragments in the browser's memory, although the total amount of these fragments may meet the memory allocation requirements, if the size of each individual fragment is smaller than the required memory size, the browser needs to create a new memory fragment. For instance, if there are five memory fragments in the browser's memory with sizes of 10MB, 15MB, 8MB, 12MB, and 20MB, and a 25MB contiguous memory space needs to be allocated, a new 25MB memory fragment will be created because there is no single memory fragment to meet the requirement, leading to an increase in the fragmentation index.

[0071] Redundancy score is used to characterize the proportion of redundant data in the browser. Redundant data can be duplicated browser data, expired cache files, unused temporary variables, and invalid data remaining after a page is closed. Expired cache files can include cookies and sessionStorage files. Cookies are local data stored in the browser on the display device 200, sent and stored by the server, and have a limited validity period. After this period, cookies become invalid and expired. SessionStorage files are storage objects created by the browser for a single session. When the user closes the current session window or browser, the data in the sessionStorage file also becomes invalid. If not cleared in time, it will become redundant.

[0072] For example, during operation, browsers cache a large amount of web page images, file data, etc. that users have viewed but will not access again in the short term, as well as some temporary data that is not released in time after the application exits. Display device 200 can monitor this redundant data. If the size of this redundant data is 200MB, and the total memory currently occupied by the browser is 600MB, then the redundancy score may be 33.3%. The higher the redundancy score, the more redundant data there is in the browser's storage space.

[0073] In some embodiments, the display device 200 can be configured to monitor memory usage, fragmentation index, and redundancy score. These monitoring methods may include scheduled monitoring, manual monitoring, and event-triggered monitoring. Scheduled monitoring involves monitoring at a set time, such as monitoring memory usage, fragmentation index, and redundancy score at 2:00 AM daily. Manual monitoring is a method where the display device 200 responds to a user's monitoring command, triggering the monitoring of memory usage, fragmentation index, and redundancy score. Event-triggered monitoring is based on changes in the browser's storage space triggered by the display device 200. For example, if the browser's storage space suddenly decreases and the change reaches a preset threshold, monitoring of memory usage, fragmentation index, and redundancy score is triggered.

[0074] S200: Calculates the browser's memory anomaly index based on memory usage, fragmentation index, and redundancy score.

[0075] In some embodiments, the memory anomaly index is used to represent the health status of the browser's storage space. The memory anomaly index is negatively correlated with the health status and operating efficiency of the storage space. That is, the higher the memory anomaly index, the worse the health status of the storage space and the lower the operating efficiency. Conversely, the lower the memory anomaly index, the better the health status of the storage space and the higher the operating efficiency.

[0076] In some embodiments, the memory anomaly index can be calculated by considering memory usage, fragmentation index, and redundancy score. The display device 200 can assign different weight values ​​to memory usage, fragmentation index, and redundancy score, respectively. The weight values ​​are preset based on the degree of impact of memory usage, fragmentation index, and redundancy score on the browser's operating performance.

[0077] After setting the weight values, the display device 200 can perform a weighted summation of memory usage, fragmentation index, and redundancy score based on multiple weight values ​​to obtain the memory anomaly index.

[0078] S300: When the memory anomaly index is greater than the preset anomaly index threshold, the browser is determined to be in at least one memory anomaly state based on the combination relationship determined by at least one of the parameters among memory occupancy rate, fragmentation index and redundancy score.

[0079] The anomaly index threshold is a pre-set threshold parameter used to determine whether a browser is in at least one memory anomaly state. The anomaly index threshold can be automatically adjusted based on the hardware configuration of the display device 200, the browser's operating environment, and the user's performance requirements for the browser.

[0080] In some embodiments, if the memory anomaly index is greater than the anomaly index threshold, it indicates that the browser is in a memory anomaly state. In this case, the display device 200 can determine the memory anomaly state of the display device 200 based on a combination relationship determined by at least one parameter: memory usage rate, fragmentation index, and redundancy score. The browser may be in one memory anomaly state or simultaneously in multiple different memory anomaly states.

[0081] In some embodiments, the combination relationship can be a combination of any two or more parameters among memory utilization, fragmentation index and redundancy score, or a combination of one parameter with other parameters besides memory utilization, fragmentation index and redundancy score.

[0082] In some embodiments, the display device 200 may determine whether the browser is in one of the abnormal memory states based on one of the parameters of memory usage rate, fragmentation index and redundancy score, or it may combine at least two parameters to determine whether the browser is in one of the abnormal memory states.

[0083] In some embodiments, the display device 200 may pre-set judgment thresholds corresponding to memory utilization rate, fragmentation index and redundancy score respectively, so as to determine whether the browser is in the corresponding memory abnormal state according to the judgment thresholds. For example, the memory utilization rate may correspond to the utilization rate threshold. When the memory utilization rate is greater than the utilization rate threshold, it indicates that the browser is in a low memory abnormal state.

[0084] S400: Based on different memory abnormal states, perform corresponding memory cleanup operations on the browser to clean up the data to be cleaned corresponding to the memory abnormal relationship.

[0085] Different memory anomaly states correspond to different memory cleanup operations. After determining the browser's memory anomaly state, the display device 200 can generate corresponding memory cleanup requests in real time. For example, if the browser is in a low memory anomaly state, the display device 200 can generate a memory cleanup request to resolve the low memory anomaly state. The display device 200 can automatically respond to the memory cleanup request, perform memory cleanup operations on the browser, thereby freeing up the browser's storage space and increasing the browser's memory usage.

[0086] In some embodiments, the browser's storage space can be located in a memory. Therefore, the display device 200 can determine the browser's storage space in the memory and perform a memory cleanup operation on the browser's storage space to clean up the data to be cleaned corresponding to the memory anomaly. Different memory anomaly states can correspond to different data to be cleaned. For example, the data to be cleaned can be memory fragments, expired browser data, or redundant browser data, etc.

[0087] As can be seen from the above technical solution, it can actively monitor the browser's memory usage, fragmentation index, and redundancy score, and calculate a memory anomaly index. If the memory anomaly index is less than a preset threshold, it determines the browser's memory anomaly state and performs corresponding memory cleanup operations for different memory anomaly states. This embodiment can automatically monitor the browser's memory-related parameters and calculate the memory anomaly index while the browser is running. When the memory anomaly index is too low, it can accurately identify the browser's memory anomaly state and automatically perform different memory cleanup operations based on different memory anomaly states, reducing manual operation steps for users and improving the automation of browser memory cleanup.

[0088] Figure 6 A flowchart illustrating the calculation of memory health index for a display device provided in some embodiments of this application.

[0089] See Figure 6 In some embodiments, step S200 may include steps S210-S220.

[0090] S210: Set the first weight for memory utilization, the second weight for fragmentation index, and the third weight for redundancy score.

[0091] In some embodiments, the display device 200 can assign a first weight to memory usage, a second weight to fragmentation index, and a third weight to redundancy score. As described in the foregoing embodiments, the weight values ​​are preset based on the degree of impact of memory usage, fragmentation index, and redundancy score on the browser's performance. Therefore, a high memory usage rate can cause browser lag and crashes, thus it can be assigned the highest weight, severely impacting the display device 200's browser operation; the fragmentation index reduces memory allocation efficiency, affecting the browser's response speed, and can be assigned the second highest weight; the redundancy score reflects the accumulation of duplicate data, and although its impact on browser operation is relatively mild, long-term accumulation will occupy a large amount of storage space, affecting overall operating efficiency, and can be assigned the lowest weight. Therefore, the first weight is greater than the second weight, and the second weight is greater than the third weight. For example, the first weight can be 0.5, the second weight can be 0.3, and the third weight can be 0.2.

[0092] In some embodiments, the first weight, the second weight, and the third weight can each be positively correlated with the total memory of the browser. For example, for a display device 200 with a browser total memory of 1GB, the first weight can be 0.5, the second weight can be 0.3, and the third weight can be 0.2. For a display device 200 with a browser total memory of 2GB, the first weight can be 1, the second weight can be 0.6, and the third weight can be 0.4.

[0093] S220: Based on the first weight, second weight, and third weight, the memory occupancy rate, fragmentation index, and redundancy score are weighted and summed to obtain the memory anomaly index.

[0094] In some embodiments, the display device 200 can obtain a comprehensive index reflecting the browser's memory health status, namely a memory anomaly index, by weighted summation. The display device 200 calculates the memory anomaly index by multiplying memory usage rate, fragmentation index, and redundancy score by their respective weight values, and then summing the three products. For example, the formula for calculating the memory anomaly index can be expressed as: Memory Anomaly Index = Memory Usage Rate × First Weight + Fragmentation Index × Second Weight + Redundancy Score × Third Weight. For instance, when the memory usage rate is 80% (i.e., 0.8), the first weight is 0.5, the fragmentation index is 0.6, the second weight is 0.3, the redundancy score is 0.4, and the third weight is 0.2, the memory anomaly index = 0.8 × 0.5 + 0.6 × 0.3 + 0.4 × 0.2 = 0.4 + 0.18 + 0.08 = 0.66. By using this weighted summation method, the three different dimensions of parameters—memory utilization, fragmentation index, and redundancy score—can be integrated into a memory anomaly index.

[0095] As can be seen from the above technical solution, this embodiment sets different weight values ​​for memory usage, fragmentation index, and redundancy score, and calculates the memory anomaly index through weighted summation. This allows the calculation method of the memory anomaly index to reflect the actual memory status of the browser. By comprehensively considering multiple dimensions of memory status parameters (i.e., memory usage, fragmentation index, and redundancy score), compared to evaluation based on a single indicator, a more comprehensive determination of memory health status can be made. This provides an accurate and reliable basis for subsequent targeted memory cleanup operations, improving the effectiveness of memory cleanup.

[0096] Figure 7 A flowchart illustrating the calculation of the fragmentation index for a display device provided in some embodiments of this application.

[0097] See Figure 7 In some embodiments, step S100 may include steps S110-S130.

[0098] S110: When the browser is detected to be running, monitor the number of memory fragments and the average amount of memory fragments.

[0099] In some embodiments, the display device 200 can detect the browser's storage space during browser operation to determine the number of memory fragments and the average memory amount of the memory fragments. For example, if the browser includes 3 memory fragments with corresponding memory amounts of 10MB, 20MB and 30MB respectively, the average memory amount of the memory fragments is 20MB.

[0100] S120: Calculate the product of the number of memory fragments and the average memory size of the memory fragments to obtain the total memory size of the memory fragments.

[0101] Using the example above, the total amount of memory fragments can be calculated by dividing the number of memory fragments (3) by the average memory size of the fragments (20MB), resulting in a total memory size of 60MB.

[0102] S130: Calculate the ratio of the total amount of fragmented memory to the total amount of browser memory to obtain the fragmentation index.

[0103] To determine the proportion of memory fragments in the browser's storage space, the display device 200 can calculate the ratio of the total amount of fragmented memory to the total amount of browser memory, thus obtaining a fragmentation index. For example, if the total amount of fragmented memory is 60MB and the total browser memory is 1GB (1024MB), the fragmentation index = 60 ÷ 1024 ≈ 0.059, meaning the fragmentation index is 0.059.

[0104] Based on the above technical solutions, by monitoring the number of memory fragments and the average memory amount of all memory fragments, and calculating the total memory amount corresponding to all memory fragments, a fragmentation index is obtained. This fragmentation index can accurately quantify the degree of browser memory fragmentation, providing accurate data support for accurately assessing memory anomaly indexes and identifying memory anomalies caused by memory fragmentation.

[0105] Figure 8 A flowchart for calculating redundancy scores for display devices provided in some embodiments of this application.

[0106] See Figure 8 In some embodiments, step S100 may include steps S140-S160.

[0107] S140: When the browser is detected to be running, obtain the browser's data set.

[0108] A dataset represents various types of browser data stored by the browser. For example, browser data may include page element data, program runtime data, cached data, and user configuration data. Each piece of browser data has a hash value, which serves as a unique identifier, preventing data confusion. For instance, image resources within page element data generate a specific hash value. When this image resource is accessed on different pages, the browser can quickly identify and locate the data using the hash value. Furthermore, hash values ​​can be used to verify data integrity; if browser data is tampered with during storage or transmission, its hash value will change.

[0109] S150: In the dataset, query the target browser data with the same hash value.

[0110] In some embodiments, the display device 200 can compare hash values ​​to query all browser data with the same hash value in the dataset and mark these data with the same hash value as target browser data. For example, when a user visits the same website multiple times in the browser, static resource data such as the website's icons and style sheets may be stored multiple times. The hash values ​​corresponding to these static resource data are the same. In this case, the display device 200 identifies these identical static resource data as target browser data. Based on this, the display device 200 can effectively filter out duplicate data in the browser data, which facilitates the subsequent calculation of the browser's redundancy score.

[0111] S160: Calculate the ratio of the number of data in the target browser to the total number of browser data in the dataset to obtain the redundancy score.

[0112] In some embodiments, the display device 200 can determine the proportion of target browser data with the same hash value in the data set by calculating the ratio of the number of target browser data entries to the total number of browser data entries in the data set, i.e., a redundancy score. For example, if the total number of browser data entries in the data set is 100, and there are 30 target browser data entries, then the redundancy score is 30 ÷ 100 = 0.3. Through the redundancy score, the display device 200 can determine which target browser data needs to be cleaned up, improving the intelligence of browser storage space management.

[0113] Based on the above technical solutions, this embodiment obtains browser datasets and merges duplicate target browser data based on hash values, and then calculates redundancy scores to determine the proportion of duplicate browser data in the browser, enabling the display device 200 to accurately determine the browser's redundant data problem.

[0114] It should be noted that memory usage can be obtained directly by scanning the browser's storage space or by calling the browser's management interface, without the need for multi-step calculations. This embodiment does not impose specific limitations on the method of obtaining memory usage.

[0115] Figure 9 This is a flowchart illustrating how a display device determines a browser in a first memory error state, as provided in some embodiments of this application.

[0116] See Figure 9 In some embodiments, step S300 may include steps S310-S320.

[0117] S310: Calculates the growth rate of memory usage for a preset number of days.

[0118] For example, the preset number of days can be 7 days. The display device 200 can obtain the memory usage rate for each day of the 7 days and calculate the difference between the memory usage rates of two adjacent days. The average of these differences is used as the growth rate of the memory usage rate within the preset number of days. For example, if the memory usage rates for the 7 days are 20%, 22%, 25%, 28%, 30%, 33%, and 35%, then the differences between adjacent days are 2%, 3%, 3%, 2%, 3%, and 2%, respectively. The average value is (2%+3%+3%+2%+3%+2%)÷6≈2.5%, meaning that the growth rate of the memory usage rate within the 7 days is approximately 2.5% per day. By calculating the growth rate, the changing trend of browser memory usage can be dynamically reflected, providing data support for subsequent judgments on whether memory cleanup is necessary.

[0119] It should be noted that the growth rate does not include situations where the browser installs new applications or updates its version, which may cause a sudden and significant increase in memory usage. These situations are normal memory changes caused by feature expansion or version iteration and should not be included in the calculation of the daily memory growth rate, so as to ensure that the growth rate can truly reflect the memory consumption trend of the browser under normal usage.

[0120] In some embodiments, the growth rate can also be represented by memory usage. For example, if the memory usage rates for two consecutive days are 20% and 22% respectively, then 20% corresponds to 200MB of used memory, and 22% corresponds to 220MB of used memory. In this case, the growth rate can be represented as 20MB / day.

[0121] S320: Based on the first combination relationship between the growth rate and the fragmentation index, if the growth rate is greater than or equal to a preset rate threshold and the fragmentation index is greater than or equal to a preset index threshold, then the browser is determined to be in a first memory abnormal state.

[0122] In some embodiments, the display device 200 can determine whether the browser is in a first memory abnormal state based on a first combination relationship formed by the growth rate and the fragmentation index. The first memory abnormal state indicates that the difference between the amount of browser data and the amount of memory used by the browser is greater than a trigger value. The trigger value is used to determine whether the amount of browser data exceeds the reasonable range that the currently used memory can handle. For example, if the difference between the amount of browser data and the currently used memory exceeds a preset trigger value, it indicates that there is a large amount of unused memory, i.e., memory fragmentation, in the used memory, causing memory resources to be unable to efficiently serve the current data processing needs.

[0123] If the growth rate of memory usage exceeds the preset threshold within a preset number of days, for example, a growth rate of 20MB / day is greater than the preset threshold of 5MB / day, it indicates that the browser memory is growing abnormally. Combined with the fragmentation index being greater than or equal to the preset index threshold, it indicates that the browser is severely fragmented in the current state, and the amount of memory used includes a large number of memory fragments. Display device 200 can determine that the browser is in the first abnormal memory state.

[0124] Based on the above technical solutions, this embodiment determines that the browser is in the first memory abnormal state by combining the growth rate of memory usage and the fragmentation index. This method of judging memory abnormalities by combining the growth rate and the fragmentation index can more accurately identify the composite memory abnormality caused by the aggravation of memory fragmentation and the rapid increase of memory usage through at least two dimensions, avoiding the limitations of single-indicator judgment and improving the accuracy of state recognition.

[0125] In some embodiments, when the browser is in a first memory abnormal state, the display device 200 can determine a first memory cleanup operation based on the first memory abnormal state. Since the browser stores a large number of memory fragments in the first memory abnormal state, the first memory cleanup operation can be to perform fragment consolidation and data cleanup operations on the browser to eliminate the impact of memory fragmentation on memory allocation efficiency and release invalid memory space occupied by fragments.

[0126] In some embodiments, the display device 200 may call the application layer memory interface to scan the browser's storage space and mark memory fragments, thereby integrating memory fragments that are not physically contiguous but logically mergeable into larger memory blocks, so that the browser can directly allocate larger memory when requesting larger memory space to run application processes, while improving the overall memory utilization.

[0127] In some embodiments, to further improve the browser's storage space, the display device 200 can also scan the browser's stored expired browser data, such as cookie files and sessionStorage files, through the memory interface and clean them up to free up the browser's storage space and improve the browser's operating efficiency.

[0128] Based on the above technical solutions, for the first memory abnormal state, by performing operations to merge memory fragments and clean up expired browser data, the problem of low memory utilization efficiency caused by memory fragments and expired data can be alleviated. Merging fragments can integrate scattered memory space to improve memory utilization, while cleaning up expired data can directly release the memory occupied by useless data, thereby improving the browser's running performance.

[0129] Figure 10 This is a flowchart illustrating how a display device determines a browser in a second memory error state, as provided in some embodiments of this application.

[0130] See Figure 10 In some embodiments, step S300 may include steps S330-S340.

[0131] S330: Determine the hash value corresponding to the target browser data, determine the data source of the target browser data, and the last access time of the target browser data.

[0132] In some embodiments, based on the hash value corresponding to the target browser data, multiple data sources of the target browser data can be determined. Each data source can be a storage domain, and each storage domain corresponds to an independent storage space to isolate browser data from different sources, ensuring the security and independence of data storage. For example, different storage domains can correspond to different web pages. If the hash value corresponding to the target browser data is found in storage domain A corresponding to web page A and storage domain B corresponding to web page B, it indicates that the browser has accessed the target browser data on both web page A and web page B. The browser will then store two identical copies of the target browser data in the two storage domains corresponding to web page A and web page B, respectively, forming redundant data.

[0133] The last access time of the target browser data refers to the specific time when the target browser data was last read or modified by the browser in each storage domain. For example, if webpage A accesses and modifies the target browser data in storage domain A at 14:30 on October 15, 2023, and webpage B accesses the target browser data in storage domain B at 10:15 on October 14, 2023, then the last access time of the target browser data is 14:30 on October 15, 2023.

[0134] S340: If the number of data sources is greater than or equal to a preset threshold, the browser is determined to be in a second memory abnormal state based on the second combination relationship between the redundancy score and the last access time.

[0135] In some embodiments, the display device 200 may determine whether the browser is in a second abnormal state based on a second combination relationship formed by the redundancy score and the last access time.

[0136] The second memory anomaly state indicates that the browser contains redundant browser data. Before determining whether the browser is in the second memory anomaly state, the display device 200 can determine the number of data sources for the target browser data. For example, if the hash value corresponding to the target browser data is found in storage domain A corresponding to webpage A and storage domain B corresponding to webpage B, it indicates that the target browser data corresponds to two data sources. After determining the number of data sources, the number of data sources can be compared with a preset number threshold by combining the last access time of the target browser data. For example, if the number of data sources is greater than or equal to the preset number threshold, the process of determining the memory anomaly state by combining the redundancy score and the last access time can be triggered. If the redundancy score is greater than the preset redundancy threshold and the difference between the last access time and the current time is greater than the preset time threshold, it indicates that there is redundant browser data in the browser memory accumulated due to long-term inactivity from multiple different storage domains. This data occupies additional memory space and may lead to a decrease in browser operating efficiency. Therefore, the display device 200 can mark the browser as being in the second memory anomaly state.

[0137] Based on the above technical solution, by determining the hash value, number of data sources, and last access time of the target browser data, redundant browser data can be accurately identified when the browser data has multiple data sources and has not been accessed for a long time. This allows the browser to be determined to be in a second memory abnormal state, so that corresponding memory cleanup operations can be performed on the second memory abnormal state, thereby improving the accuracy of determining the second memory abnormal state and enabling timely cleanup of redundant browser data.

[0138] In some embodiments, when the browser is in a second memory abnormality state, the display device 200 can determine a second memory cleanup operation based on the second memory abnormality state. The display device 200 can determine the target data source from multiple data sources of the target browser, where the target browser data corresponding to the target data source is the target browser data that needs to be retained. For example, the data source of the target browser data whose last access time is closest to the current time can be marked as the target data source to ensure that the target browser data recently used by the user is saved. After determining the target data source, while retaining the target browser data corresponding to the target data source, other duplicate target browser data can be cleaned up to free up browser storage space and clean up redundant browser data.

[0139] In other embodiments, if the difference between the last access time and the current time is greater than a preset time threshold, it indicates that the target browser data has expired. Therefore, the display device 200 can also clear all target browser data.

[0140] Based on the above technical solutions, for the second memory abnormal state, by identifying the source of the target data and retaining the data corresponding to that source while clearing other duplicate data, a copy of duplicate browser data is selectively retained. This not only cleans up redundant browser data and releases memory, but also avoids data loss due to accidental deletion, ensuring that the browser can still operate normally after cleaning, thus improving the rationality of memory cleaning.

[0141] In some embodiments, the memory of the display device 200 may include an anomaly identification model, which can run decision tree algorithms and sliding window algorithms to accurately identify the abnormal memory state of the browser. The display device 200 can input memory usage, fragmentation index, and redundancy score into the anomaly identification model, which can perform multi-dimensional analysis and dynamic evaluation of these input parameters through decision tree algorithms and sliding window algorithms.

[0142] In some embodiments, the decision tree algorithm can construct a classification tree based on the combination relationship determined by at least one of the parameters of memory usage, fragmentation index, and redundancy score as feature attributes. The classification tree may include multiple layers of nodes, and multiple nodes may correspond to memory usage, fragmentation index, and redundancy score, as well as the combination relationship corresponding to each parameter. The memory usage, fragmentation index, and redundancy score are determined by multiple thresholds in the aforementioned embodiments.

[0143] The sliding window algorithm can track and calculate the trend of memory parameter changes in real time within a certain time window. For example, by setting the time window size (e.g., 5 minutes) and the sliding step size (e.g., 1 minute), it can continuously monitor the change range of each parameter in memory occupancy, fragmentation index and redundancy score, thereby effectively identifying abnormal states with different characteristics such as sudden memory anomalies (e.g., sudden increase or decrease).

[0144] Based on the above technical solutions, an abnormal state recognition model that integrates decision tree algorithm and sliding window algorithm is used to determine memory abnormal state. The decision tree algorithm can process multi-dimensional features and make efficient classification decisions, while the sliding window algorithm can analyze the trend of multi-dimensional features changing over time. This enables more intelligent and accurate dynamic recognition and prediction of memory abnormal state, improving the automation and accuracy of determining memory abnormal state.

[0145] Some embodiments of this application also provide a browser memory cleanup method, applied to the display device 200 provided in the foregoing embodiments. The method may include the steps S100-S400 described above. The implementation methods and beneficial effects of this method can be found in the foregoing embodiments, and will not be repeated here.

[0146] As can be seen from the above technical solutions, some embodiments of this application provide a memory cleanup method for display devices and browsers. This method can obtain the browser's memory usage rate, fragmentation index, and redundancy score while the browser is running, and calculate a memory anomaly index. If the memory anomaly index is less than a preset anomaly index threshold, the method determines the browser's memory anomaly state and performs corresponding memory cleanup operations for different memory anomaly states. This embodiment can automatically monitor the browser's memory-related parameters and calculate the memory anomaly index while the browser is running. When the memory anomaly index is too low, it can accurately identify the browser's memory anomaly state and automatically perform different memory cleanup operations based on different memory anomaly states, reducing manual operation steps for users and improving the automation of browser memory cleanup.

[0147] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

[0148] For ease of explanation, the above description has been provided in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Various modifications and variations can be obtained based on the above teachings. The selection and description of the above embodiments are for the purpose of better explaining the principles and practical applications, thereby enabling those skilled in the art to better utilize the described embodiments and various different variations of embodiments suitable for specific use considerations.

Claims

1. A display device, characterized in that, include: The display is configured to show the user interface. The controller is configured as follows: When the browser is detected to be running, the browser's memory usage rate, fragmentation index, and redundancy score are obtained. The memory usage rate is used to represent the ratio of the browser's occupied memory to the total memory, the fragmentation index is used to represent the browser's fragmentation ratio, and the redundancy score is used to represent the browser's redundant data ratio. Based on the memory usage rate, the fragmentation index, and the redundancy score, the browser's memory anomaly index is calculated, which is used to characterize the health status of the browser's storage space. If the memory anomaly index is greater than a preset anomaly index threshold, the browser is determined to be in at least one memory anomaly state based on a combination relationship determined by at least one of the parameters: memory occupancy rate, fragmentation index, and redundancy score. Based on different memory anomaly states, different memory cleanup operations are performed on the browser to clean up the data to be cleaned corresponding to the memory anomaly relationships.

2. The display device according to claim 1, characterized in that, The controller calculates the browser's memory anomaly index based on the memory usage rate, the fragmentation index, and the redundancy score, specifically configured as follows: The memory usage rate is set as a first weight, the fragmentation index as a second weight, and the redundancy score as a third weight, wherein the first weight is greater than the second weight, the second weight is greater than the third weight, and the first weight, the second weight, and the third weight are all positively correlated with the total memory of the browser. Based on the first weight, the second weight, and the third weight, the memory occupancy rate, the fragmentation index, and the redundancy score are weighted and summed to obtain the memory anomaly index.

3. The display device according to claim 1, characterized in that, The controller, upon detecting that the browser is running, acquires the browser's memory usage, fragmentation index, and redundancy score, specifically configured as follows: When the browser is detected to be running, monitor the number of memory fragments and the average amount of memory in the browser. Calculate the product of the number of memory fragments and the average memory amount of the memory fragments to obtain the total memory amount of the memory fragments; The fragmentation index is obtained by calculating the ratio of the total amount of memory fragments to the total amount of memory in the browser.

4. The display device according to claim 3, characterized in that, The controller, upon detecting that the browser is running, acquires the browser's memory usage, fragmentation index, and redundancy score, specifically configured as follows: Upon detecting that the browser is running, the browser's data set is obtained. The data set includes multiple browser data items with hash values, where the hash values ​​are data identifiers for the browser data. Within the dataset, query target browser data with the same hash value; The redundancy score is obtained by calculating the ratio of the number of target browser data to the total number of browser data in the dataset.

5. The display device according to claim 4, characterized in that, When the memory anomaly index exceeds a preset anomaly index threshold, the controller determines at least one memory anomaly state of the browser based on a combination of at least one parameter among the memory occupancy rate, the fragmentation index, and the redundancy score. Specifically, this is configured as follows: Calculate the growth rate of memory usage over a preset number of days; Based on the first combination relationship between the growth rate and the fragmentation index, if the growth rate is greater than or equal to a preset rate threshold and the fragmentation index is greater than or equal to a preset index threshold, then the browser is determined to be in a first memory abnormal state. The first memory abnormal state is used to indicate that the difference between the amount of data stored by the browser and the amount of memory used by the browser is greater than a trigger value.

6. The display device according to claim 5, characterized in that, The controller performs different memory cleanup operations on the browser based on different memory anomaly states to clean up the data to be cleaned corresponding to the memory anomaly relationships. Specifically, it is configured as follows: Based on the first memory anomaly state, fragment consolidation and data cleanup operations are performed on the browser to merge the browser's memory fragments and clean up the expired browser data stored in the browser.

7. The display device according to claim 4, characterized in that, When the memory anomaly index exceeds a preset anomaly index threshold, the controller determines at least one memory anomaly state of the browser based on a combination of at least one parameter among the memory occupancy rate, the fragmentation index, and the redundancy score. Specifically, this is configured as follows: Determine the hash value corresponding to the target browser data, determine the data source of the target browser data, and the last access time of the target browser data; If the number of data sources is greater than or equal to a preset threshold, the browser is determined to be in a second memory anomaly state based on a second combination of the redundancy score and the last access time. The second memory anomaly state indicates that the browser has redundant browser data.

8. The display device according to claim 7, characterized in that, The controller performs different memory cleanup operations on the browser based on different memory anomaly states to clean up the data to be cleaned corresponding to the memory anomaly relationships. Specifically, it is configured as follows: Based on the second memory anomaly state, the target data source is determined from among the multiple data sources of the target browser data; While retaining the target browser data corresponding to the target data source, remove any duplicate target browser data.

9. The display device according to claim 1, characterized in that, It also includes a memory that stores an abnormal state identification model. When the memory anomaly index exceeds a preset anomaly index threshold, the controller determines at least one memory anomaly state of the browser based on a combination of at least one parameter among the memory occupancy rate, the fragmentation index, and the redundancy score. Specifically, it is configured as follows: Based on the aforementioned abnormal state identification model, the abnormal state identification is performed on the combination relationship determined by at least one of the parameters, namely the memory occupancy rate, the fragmentation index, and the redundancy score, through the decision tree algorithm and the sliding window algorithm, to determine at least one memory abnormal state in which the browser is located.

10. A method for clearing browser memory, characterized in that, include: When the browser is detected to be running, the browser's memory usage rate, fragmentation index, and redundancy score are obtained. The memory usage rate is used to represent the ratio of the browser's occupied memory to the total memory, the fragmentation index is used to represent the browser's fragmentation ratio, and the redundancy score is used to represent the browser's redundant data ratio. Based on the memory usage rate, the fragmentation index, and the redundancy score, the browser's memory anomaly index is calculated, which is used to characterize the health status of the browser's storage space. If the memory anomaly index is greater than a preset anomaly index threshold, the browser is determined to be in at least one memory anomaly state based on a combination relationship determined by at least one of the parameters: memory occupancy rate, fragmentation index, and redundancy score. Based on different memory anomaly states, different memory cleanup operations are performed on the browser to clean up the data to be cleaned corresponding to the memory anomaly relationships.