Monitoring Method, Device, Electronic Device and Storage Medium of System Resource Manager

By registering BHO components in Windows system and monitoring the timing of the resource manager using the DISPID parameters of the invoke method, the problem of the resource manager lacking multi-label functionality is solved, and a more efficient file management experience is achieved.

CN114896122BActive Publication Date: 2025-07-11ZHUHAI BAOQU TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210631445.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-06
Publication Date
2025-07-11
Estimated Expiration
2042-06-06

AI Technical Summary

Technical Problem

The existing Windows system explorer lacks multi-tag functionality, which causes users to have to open multiple explorer windows when managing documents, which has poor user experience.

Method used

By generating a component of the browser helper object (BHO), registering it with the operating system, and loading the component when the system explorer is started, using the DISPID parameters of the invoke method to determine the monitoring timing, and decide whether to take over or recommend a third-party resource manager based on the policy, or perform A/B testing.

Benefits of technology

Improves the user experience of the Explorer, and simplifies file management operations and improves efficiency and accuracy by taking over or recommending a third-party Explorer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114896122B_ABST
    Figure CN114896122B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention discloses a monitoring method, device, electronic device, and storage medium for a system resource manager, which relates to the field of computer technology and can efficiently and accurately monitor and process the system resource manager, thereby effectively improving the user experience of the resource manager. The method includes: registering a first component with an operating system, where the component type of the first component is a preset component type associated with the system resource manager; in response to the startup of the system resource manager, loading the first component and calling back a preset method in the first component; monitoring the system resource manager according to the parameters provided by the preset method, so as to perform corresponding processing operations on the system resource manager according to the monitoring results. The present invention can be used in computer management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular, to a method, device, electronic device and storage medium for monitoring a system resource manager. Background Art

[0002] The resource manager is a resource management tool provided by the Windows system, which allows users to view all resources of this computer. In particular, the tree-shaped file system structure it provides enables users to more clearly and intuitively understand the files and folders on the computer.

[0003] Although the resource manager provided by the Windows system has been relatively perfect, it is still inconvenient for many users. For example, the resource manager provided by the Windows system does not have the multi-tab function. In this way, users have to open multiple resource manager windows when moving or managing documents, resulting in a poor user experience. Summary of the Invention

[0004] In view of this, embodiments of the present invention provide a method, device, electronic device and storage medium for monitoring a system resource manager, which can efficiently and accurately monitor and process the system resource manager, thereby effectively improving the user experience of the resource manager.

[0005] In a first aspect, an embodiment of the present invention provides a method for monitoring a system resource manager, including: registering a first component with an operating system, where the component type of the first component is a preset component type associated with the system resource manager; in response to the startup of the system resource manager, loading the first component and calling back a preset method in the first component; monitoring the system resource manager according to the parameters provided by the preset method, so as to perform corresponding processing operations on the system resource manager according to the monitoring results.

[0006] In one implementation, the registering the first component with the operating system includes: generating a first component of the browser helper object (BHO) type; registering the first component with the operating system.

[0007] In one embodiment, the loading of the first component and the callback of a preset method in the first component in response to the startup of the system resource manager include: in response to the startup of the system resource manager, loading the first component and calling back the invoke method in the first component; the monitoring of the system resource manager according to the parameters provided by the preset method to perform corresponding processing operations on the system resource manager according to the monitoring results includes: determining the monitoring timing of the system resource manager according to the DISPID parameter provided by the activate invoke method; and performing corresponding processing operations on the system resource manager according to the monitoring timing.

[0008] In one embodiment, the determining of the monitoring timing of the system resource manager according to the DISPID parameter provided by the activate invoke method includes: when the parameter value of the DISPID parameter is a first value, determining the monitoring timing of the system resource manager as the takeover determination timing; the performing of corresponding processing operations on the system resource manager according to the monitoring timing includes: determining whether to use a third-party resource manager to take over the system resource manager according to a first preset policy.

[0009] In one embodiment, after determining whether to use a third-party resource manager to take over the system resource manager according to the first preset policy, the method further includes: when it is determined to use a third-party resource manager to take over the system resource manager, obtaining the path information of the target folder that the system resource manager needs to open through the activate invoke method; and using the third-party resource manager to replace the system resource manager to open the target folder according to the path information.

[0010] In one embodiment, the determining of the monitoring timing of the system resource manager according to the DISPID parameter provided by the activate invoke method includes: when the parameter value of the DISPID parameter is not the first value, determining the monitoring timing of the system resource manager as the recommendation determination timing; the performing of corresponding processing operations on the system resource manager according to the monitoring timing includes: determining whether to recommend to the user to use a third-party resource manager to replace the system resource manager according to a second preset policy.

[0011] In one embodiment, the monitoring timing of the system resource manager is the recommendation determination timing; the method further includes: obtaining the current browsing object information of the user; and determining whether to recommend applications and / or functions related to the browsing object to the user according to the browsing object information.

[0012] In one embodiment, after monitoring the system resource manager according to the parameters provided by the preset method, the method further includes: stopping monitoring the system resource manager according to the first configuration information.

[0013] In one embodiment, before loading the first component and calling back the preset method in the first component in response to the startup of the system resource manager, the method further includes: determining whether to perform a monitoring test on the system resource manager according to the second configuration information; the step of loading the first component and calling back the preset method in the first component in response to the startup of the system resource manager includes: in the case where it is determined to perform a monitoring test on the system resource manager, loading the first component and calling back the preset method in the first component in response to the startup of the system resource manager; or, in the case where it is determined not to perform a monitoring test on the system resource manager, prohibiting loading the first component and calling back the preset method in the first component in response to the startup of the system resource manager; after loading the first component and calling back the preset method in the first component in response to the startup of the system resource manager, the method further includes: implementing an A / B test on the monitoring effect of the system resource manager according to whether the first component is loaded and the preset method in the first component is called back.

[0014] In a second aspect, an embodiment of the present invention further provides a monitoring device for a system resource manager, including: a registration unit configured to register a first component with an operating system, where the component type of the first component is a preset component type associated with the system resource manager; a loading unit configured to load the first component and call back a preset method in the first component in response to the startup of the system resource manager; a monitoring unit configured to monitor the system resource manager according to the parameters provided by the preset method, so as to perform corresponding processing operations on the system resource manager according to the monitoring results.

[0015] In one embodiment, the registration unit includes: a generation module configured to generate a first component of the Browser Helper Object (BHO) type; a registration module configured to register the first component with the operating system.

[0016] In one embodiment, the loading unit is specifically configured to load the first component and call back an activation invoke method in the first component in response to the startup of the system resource manager; the monitoring unit includes: an opportunity determination module configured to determine the monitoring opportunity of the system resource manager according to the DISPID parameter provided by the activation invoke method; a processing module configured to perform corresponding processing operations on the system resource manager according to the monitoring opportunity.

[0017] In one implementation, the timing determination module is specifically configured to determine the monitoring timing of the system resource manager as the takeover determination timing when the parameter value of the DISPID parameter is the first value; the processing module is specifically configured to determine whether to use a third-party resource manager to take over the system resource manager according to a first preset policy.

[0018] In one implementation, the monitoring unit further includes: a path acquisition module, configured to, when it is determined to use a third-party resource manager to take over the system resource manager, obtain the path information of the target folder that the system resource manager needs to open through the activation invoke method; a replacement module, configured to, according to the path information, use the third-party resource manager to replace the system resource manager and open the target folder.

[0019] In one implementation, the timing determination module is specifically configured to determine the monitoring timing of the system resource manager as the recommendation determination timing when the parameter value of the DISPID parameter is not the first value; the processing module is specifically configured to determine whether to recommend to the user to use a third-party resource manager to replace the system resource manager according to a second preset policy.

[0020] In one implementation, the timing determination module determines the monitoring timing of the system resource manager as the recommendation determination timing; the monitoring unit further includes: a browsing object acquisition module, configured to acquire the current browsing object information of the user; the processing module is further configured to determine whether to recommend applications and / or functions related to the browsing object to the user according to the browsing object information.

[0021] In one implementation, the device further includes: a stop unit, configured to stop monitoring the system resource manager according to the first configuration information after monitoring the system resource manager according to the parameters provided by the preset method.

[0022] In one embodiment, the device further includes: a test determination unit configured to determine whether to perform a monitoring test on the system resource manager according to second configuration information before loading the first component and calling back a preset method in the first component in response to the startup of the system resource manager; the loading unit is specifically configured to: in the case of determining to perform a monitoring test on the system resource manager, load the first component and call back a preset method in the first component in response to the startup of the system resource manager; or, in the case of determining not to perform a monitoring test on the system resource manager, prohibit loading the first component and call back a preset method in the first component in response to the startup of the system resource manager; the device further includes a test implementation unit configured to implement an A / B test on the monitoring effect of the system resource manager according to whether the loading unit loads the first component and calls back a preset method in the first component after loading the first component and calling back a preset method in the first component in response to the startup of the system resource manager.

[0023] In a third aspect, an embodiment of the present invention further provides an electronic device, which includes: a housing, a processor, a memory, a circuit board, and a power supply circuit. Wherein, the circuit board is disposed inside the space surrounded by the housing, and the processor and the memory are disposed on the circuit board; the power supply circuit is configured to supply power to each circuit or device of the above-mentioned electronic device; the memory is used to store executable program codes; the processor runs a program corresponding to the executable program codes by reading the executable program codes stored in the memory, and is used to execute any one of the monitoring methods of the system resource manager provided by the embodiments of the present invention.

[0024] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement any one of the monitoring methods of the system resource manager provided by the embodiments of the present invention.

[0025] The monitoring method, device, electronic device and storage medium of a system resource manager provided by an embodiment of the present invention can register a first component with an operating system. Since the component type of the first component is a preset component type associated with the system resource manager, when the system resource manager is started, in response to the start of the system resource manager, the first component is loaded and a preset method in the first component is called back. Thus, according to the parameters provided by the preset method, the system resource manager is monitored, and corresponding processing operations are performed on the system resource manager according to the monitoring results. In this way, the first component can be instantiated by means of the preset component type, and various methods and functions encapsulated in the first component are used to conveniently and efficiently monitor the system resource manager and perform corresponding processing operations on the system resource manager accordingly. Therefore, the system resource manager can be monitored and processed efficiently and accurately, thereby effectively improving the user experience of the resource manager. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following briefly introduces the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present invention, and those of ordinary skill in the art can also obtain other drawings based on these drawings without creative efforts.

[0027] Figure 1 FIG. is a flowchart of a monitoring method of a system resource manager provided by an embodiment of the present invention;

[0028] Figure 2 FIG. is a detailed flowchart of a monitoring method of a system resource manager provided by an embodiment of the present invention;

[0029] Figure 3 FIG. is a schematic structural diagram of a monitoring device of a system resource manager provided by an embodiment of the present invention;

[0030] Figure 4 FIG. is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0031] The following describes the embodiments of the present invention in detail with reference to the drawings.

[0032] It should be clear that the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts belong to the scope of protection of the present invention.

[0033] In a first aspect, an embodiment of the present invention provides a method for monitoring a system resource manager, which can efficiently and accurately monitor and process the system resource manager, thereby effectively improving the user experience of the resource manager.

[0034] As Figure 1 shown, the method for monitoring a system resource manager provided by the embodiment of the present invention may include:

[0035] S11, registering a first component with the operating system, where the component type of the first component is a preset component type associated with the system resource manager;

[0036] In the embodiment of the present invention, a first component of the preset component type can be developed in advance, where the preset component type is a component type associated with the system resource manager, that is to say, a series of specifications have been formulated for this type of component so that components of this type can communicate with the system resource manager. Optionally, the preset component type can be any type associated with the system resource manager as long as components of this type can communicate with the system resource manager. The embodiment of the present invention does not limit this.

[0037] After registering the first component with the operating system, the first component establishes a connection with the operating system, and the first component can be used during the subsequent operation of the operating system.

[0038] S12, in response to the startup of the system resource manager, loading the first component and calling back a preset method in the first component;

[0039] Since the component type of the first component is a preset component type associated with the system resource manager, in this step, when the system resource manager starts up, it can respond to the startup of the system resource manager, load the first component and call back a preset method in the first component. Among them, the number of preset methods can be one or more. The embodiment of the present invention does not limit this.

[0040] S13, monitoring the system resource manager according to the parameters provided by the preset method, and performing corresponding processing operations on the system resource manager according to the monitoring results.

[0041] Since the component type of the first component is a preset component type associated with the system resource manager, the first component can communicate with the system resource manager. For example, the first component can obtain various operation information and / or status information of the system resource manager from the system resource manager as needed. These operation information and / or status information can be obtained in the form of different parameters through various preset methods in the first component, so as to monitor the system resource manager according to these parameters, and perform corresponding processing operations on the system resource manager according to the monitoring results, thereby improving the user experience of the resource manager.

[0042] The monitoring method of the system resource manager provided by the embodiment of the present invention can register the first component with the operating system. Since the component type of the first component is a preset component type associated with the system resource manager, when the system resource manager starts, it can respond to the start of the system resource manager, load the first component and call back the preset method in the first component, so as to monitor the system resource manager according to the parameters provided by the preset method, and perform corresponding processing operations on the system resource manager according to the monitoring results. In this way, the first component can be instantiated by means of the preset component type, and the system resource manager can be monitored conveniently and efficiently through various methods and functions already encapsulated in the first component, and corresponding processing operations can be performed on the system resource manager accordingly. Therefore, the system resource manager can be monitored and processed efficiently and accurately, thereby effectively improving the user experience of the resource manager.

[0043] Specifically, in an embodiment of the present invention, step S11 of registering the first component with the operating system may include: generating a first component of the browser helper object (BHO) type; registering the first component with the operating system. That is to say, in this embodiment, the preset component type is the BHO type, and the first component can be generated according to the component specification of the BHO type and registered with the operating system, such as the Windows system.

[0044] After registering the first component with the operating system, when the system resource manager starts, in step S12, in response to the start of the system resource manager, the first component can be loaded and a preset method in the first component can be called back. In a specific implementation, loading the first component and calling back the preset method in the first component in response to the start of the system resource manager can include: loading the first component and calling back the activation invoke method in the first component in response to the start of the system resource manager; based on this, step S13 can specifically include monitoring the system resource manager according to the parameters provided by the preset method and performing corresponding processing operations on the system resource manager according to the monitoring results: determining the monitoring timing of the system resource manager according to the DISPID parameter provided by the activation invoke method; and performing corresponding processing operations on the system resource manager according to the monitoring timing.

[0045] Among them, the invoke method is a method provided in component (com) technology. This method has multiple parameters, and DISPID is the first of them. According to the different states of the invoke object, this parameter can have different parameter values. For example, in an embodiment of the present invention, the parameter value of DISPID can be equal to DISPID_BEFORENAVIGATE, representing before the object starts to process. In another embodiment of the present invention, the parameter value of DISPID can be equal to DISPID_NAVIGATECOMPLETE, representing that the object has been processed. The monitoring method provided by the embodiments of the present invention can determine what monitoring timing the resource manager is currently in based on the change of the parameter value of DISPID, and different processing operations can be taken on the system resource manager at different monitoring timings.

[0046] For example, in an embodiment of the present invention, determining the monitoring timing of the system resource manager according to the DISPID parameter provided by the activation invoke method may specifically include: when the parameter value of the DISPID parameter is a first value, determining the monitoring timing of the system resource manager as the takeover determination timing. For example, the first value may be DISPID_BEFORENAVIGATE. Based on this, according to the monitoring timing, the corresponding processing operation on the system resource manager may specifically include: determining whether to use a third-party resource manager to take over the system resource manager according to a first preset policy. That is to say, when the system resource manager has not started navigation, the monitoring timing is the takeover determination timing, so it is convenient to determine whether to take over the system resource manager, that is, to determine whether to end or block the operation of the system resource manager and use a third-party resource manager to complete the responsibilities of the system resource manager. Optionally, the first preset policy can be set according to specific needs. For example, in an embodiment of the present invention, the first preset policy may be that when the user allows the system resource manager to be taken over, it is determined to use a third-party resource manager to take over the system resource manager, and when the user does not allow the system resource manager to be taken over, it is determined not to use a third-party resource manager to take over the system resource manager.

[0047] Further, after determining whether to use a third-party resource manager to take over the system resource manager according to the first preset policy, the system resource manager monitoring method provided by the embodiment of the present invention may further include: when it is determined to use a third-party resource manager to take over the system resource manager, obtaining the path information of the target folder that the system resource manager needs to open through the activation invoke method; according to the path information, using the third-party resource manager to replace the system resource manager and open the target folder. This embodiment provides a specific takeover method for the system resource manager when it is determined to use a third-party resource manager to take over the system resource manager, that is, obtaining the path information of the target folder that the system resource manager needs to open through the invoke method in the first component. For example, in an implementation manner, the path of the target folder that the system resource manager needs to open can be learned through the IWebBrowser2 interface in the invoke method as "E:\media\films", then stop the operation of the system resource manager, and start a third-party resource manager, so that the third-party resource manager opens the target folder according to the path "E:\media\films" and presents the user interface of the third-party resource manager.

[0048] The above embodiments specifically illustrate the case where the parameter value of the DISPID parameter is the first value, and the monitoring timing of the system resource manager is determined as the takeover determination timing. However, the embodiments of the present invention are not limited thereto. In other embodiments of the present invention, the parameter value of the DISPID parameter may not be the first value, so as to determine the monitoring timing of the system resource manager as other timings. In this case, it is not necessary to directly determine whether to take over the system resource manager, but to try to recommend a third-party resource manager to the user.

[0049] For example, in another embodiment of the present invention, determining the monitoring timing of the system resource manager according to the DISPID parameter provided by the activation invoke method may specifically include: when the parameter value of the DISPID parameter is not the first value, determining the monitoring timing of the system resource manager as the recommendation determination timing. For example, the first value may be DISPID_BEFORENAVIGATE. Then, based on this, the corresponding processing operation on the system resource manager according to the monitoring timing may specifically include: determining whether to recommend to the user to use a third-party resource manager to replace the system resource manager according to a second preset policy. That is to say, when the system resource manager is not in the case of not yet starting navigation (for example, when the system resource manager is in the case of navigation completion), the monitoring timing is the recommendation determination timing, which is convenient for determining whether to recommend a third-party resource manager to the user at this time. Optionally, the second preset policy can be set according to specific needs. For example, in an embodiment of the present invention, the second preset policy may be: first determine whether a third-party resource manager has been recommended to the user. If not, it can be recommended to the user, such as popping up a recommendation bubble, etc. If it has been recommended and the user has not enabled the third-party resource manager, the last recommendation time can be further determined. If the current time is greater than the preset time interval from the last recommendation time, it can be recommended again. If it is less than or equal to the preset time interval, it is not recommended.

[0050] Furthermore, in the monitoring method of the system resource manager provided by the embodiments of the present invention, in addition to recommending a third-party resource manager to the user, other applications and / or functions can also be recommended to the user. Specifically, in an embodiment of the present invention, the monitoring timing of the system resource manager is the recommendation determination timing. Then, the monitoring method of the system resource manager provided by the embodiments of the present invention may further include: obtaining the current browsing object information of the user; determining whether to recommend applications and / or functions related to the browsing object to the user according to the browsing object information. For example, if the current browsing object of the user is a PDF document, a function of converting the PDF document to a Word document can be recommended to the user.

[0051] In the above embodiments, in view of the various drawbacks and inconveniences of the system resource manager, it is possible to monitor the startup and operation of the system manager, and at an appropriate time, use a third-party resource manager to take over the system manager, or recommend to the user to use a third-party resource manager and other related applications. However, the embodiments of the present invention are not limited thereto. In other embodiments of the present invention, more detailed control of the monitoring of the system resource manager can also be achieved through configuration information.

[0052] Specifically, in one embodiment of the present invention, after monitoring the system resource manager according to the parameters provided by the preset method, the method for monitoring the system resource manager provided by the embodiments of the present invention may further include: stopping the monitoring of the system resource manager according to the first configuration information. That is to say, the online or offline of the system resource manager can be controlled through the first configuration information, so as to facilitate program debugging and management, and timely make up for loopholes and risks.

[0053] Optionally, in another embodiment of the present invention, before step S12 responds to the startup of the system resource manager, loads the first component, and calls back the preset method in the first component, the method for monitoring the system resource manager provided by the embodiments of the present invention may further include: determining whether to perform a monitoring test on the system resource manager according to the second configuration information; based on this, step S12 specifically may include: in the case of determining to perform a monitoring test on the system resource manager, in response to the startup of the system resource manager, loading the first component and calling back the preset method in the first component; or, in the case of determining not to perform a monitoring test on the system resource manager, in response to the startup of the system resource manager, prohibiting the loading of the first component and calling back the preset method in the first component; then, after step S12 responds to the startup of the system resource manager, loads the first component, and calls back the preset method in the first component, the method for monitoring the system resource manager provided by the embodiments of the present invention may further include: implementing an A / B test on the monitoring effect of the system resource manager according to whether the first component is loaded and the preset method in the first component is called back. That is to say, in this embodiment, the monitoring function of the system resource manager can be controlled to be open to the user through the second configuration information, so as to compare the situation where the monitoring function of the system resource manager is open with the situation where the monitoring function of the system resource manager is not enabled, and implement an A / B test.

[0054] In addition, in other embodiments of the present invention, the minimum time interval, default time interval, etc. between two recommendation operations can also be configured to manage the recommendation operations more flexibly.

[0055] The following provides a detailed description of the monitoring method of the system resource manager provided by the embodiments of the present invention through specific embodiments.

[0056] As Figure 2 shown, the monitoring method of the system resource manager provided by the embodiments of the present invention may include:

[0057] S201. Generate a first component of the browser helper object (BHO) type.

[0058] Among them, the BHO type is a preset component type associated with the system resource manager.

[0059] S202. Register the first component with the operating system.

[0060] S203. In response to the startup of the system resource manager, load the first component and call back the activate invoke method in the first component.

[0061] S204. Obtain the DISPID parameter provided by the activate invoke method, and determine whether the DISPID parameter is the first value; if so, execute step S205, if not, execute step S209.

[0062] Exemplarily, the first value may be DISPID_BEFORENAVIGATE.

[0063] S205. In the case where the parameter value of the DISPID parameter is the first value, determine that the monitoring timing of the system resource manager is the takeover determination timing.

[0064] S206. According to the first preset policy, determine whether to use a third-party resource manager to take over the system resource manager.

[0065] S207. In the case of determining to use a third-party resource manager to take over the system resource manager, obtain the path information of the target folder that the system resource manager needs to open through the activate invoke method;

[0066] S208. According to the path information, use the third-party resource manager to replace the system resource manager and open the target folder, and the process ends.

[0067] S209. In the case where the parameter value of the DISPID parameter is not the first value, determine that the monitoring timing of the system resource manager is the recommendation determination timing.

[0068] S210. According to the second preset policy, determine whether to recommend to the user to use a third-party resource manager to replace the system resource manager.

[0069] S211. When it is determined to recommend to the user to use a third-party resource manager to replace the system resource manager, a pop-up prompt is given to the user, and the process ends.

[0070] In a second aspect, an embodiment of the present invention provides a monitoring device for a system resource manager, which can efficiently and accurately monitor and process the system resource manager, thereby effectively improving the user experience of the resource manager.

[0071] As Figure 3 shown, the monitoring device for a system resource manager provided by an embodiment of the present invention may include:

[0072] A registration unit 31, configured to register a first component with an operating system, where a component type of the first component is a preset component type associated with the system resource manager;

[0073] A loading unit 32, configured to load the first component and call back a preset method in the first component in response to the startup of the system resource manager;

[0074] A monitoring unit 33, configured to monitor the system resource manager according to parameters provided by the preset method, so as to perform corresponding processing operations on the system resource manager according to a monitoring result.

[0075] The monitoring device for a system resource manager provided by an embodiment of the present invention can register a first component with an operating system. Since the component type of the first component is a preset component type associated with the system resource manager, when the system resource manager starts up, it can respond to the startup of the system resource manager, load the first component and call back a preset method in the first component, thereby monitoring the system resource manager according to parameters provided by the preset method, so as to perform corresponding processing operations on the system resource manager according to a monitoring result. In this way, the first component can be instantiated by means of the preset component type, and various methods and functions already encapsulated in the first component can be used to conveniently and efficiently monitor the system resource manager and perform corresponding processing operations on the system resource manager accordingly. Therefore, the system resource manager can be monitored and processed efficiently and accurately, thereby effectively improving the user experience of the resource manager.

[0076] In an implementation manner, the registration unit 31 may include:

[0077] A generation module, configured to generate a first component of a browser helper object (BHO) type;

[0078] A registration module, configured to register the first component with the operating system.

[0079] In one embodiment, the loading unit 32 is specifically configured to, in response to the startup of the system resource manager, load the first component and call back the activation invoke method in the first component;

[0080] The monitoring unit 33 may include:

[0081] A timing determination module, configured to determine the monitoring timing of the system resource manager according to the DISPID parameter provided by the activation invoke method;

[0082] A processing module, configured to perform corresponding processing operations on the system resource manager according to the monitoring timing.

[0083] In one embodiment, the timing determination module is specifically configured to, when the parameter value of the DISPID parameter is the first value, determine the monitoring timing of the system resource manager as the takeover determination timing; the processing module is specifically configured to determine whether to use a third-party resource manager to take over the system resource manager according to a first preset policy.

[0084] In one embodiment, the monitoring unit 33 may further include:

[0085] A path acquisition module, configured to, when it is determined to use a third-party resource manager to take over the system resource manager, obtain the path information of the target folder that the system resource manager needs to open through the activation invoke method;

[0086] A replacement module, configured to use the third-party resource manager to replace the system resource manager and open the target folder according to the path information.

[0087] In one embodiment, the timing determination module is specifically configured to, when the parameter value of the DISPID parameter is not the first value, determine the monitoring timing of the system resource manager as the recommendation determination timing; the processing module is specifically configured to determine whether to recommend to the user to use a third-party resource manager to replace the system resource manager according to a second preset policy.

[0088] In one embodiment, the timing determination module determines the monitoring timing of the system resource manager as the recommendation determination timing; the monitoring unit may further include: a browsing object acquisition module, configured to acquire the current browsing object information of the user; the processing module may further be configured to determine whether to recommend applications and / or functions related to the browsing object to the user according to the browsing object information.

[0089] In one embodiment, the monitoring device may further include: a stop unit configured to stop monitoring the system resource manager according to first configuration information after monitoring the system resource manager according to the parameters provided by the preset method.

[0090] In one embodiment, the monitoring device may further include: a test determination unit configured to determine whether to perform a monitoring test on the system resource manager according to second configuration information before loading the first component and calling back a preset method in the first component in response to the startup of the system resource manager; a loading unit 31, specifically configured to: in the case of determining to perform a monitoring test on the system resource manager, load the first component and call back the preset method in the first component in response to the startup of the system resource manager; or, in the case of determining not to perform a monitoring test on the system resource manager, prohibit loading the first component and call back the preset method in the first component in response to the startup of the system resource manager; the monitoring device may further include a test implementation unit configured to perform an A / B test on the monitoring effect of the system resource manager according to whether the loading unit loads the first component and calls back the preset method in the first component after loading the first component and calling back the preset method in the first component in response to the startup of the system resource manager.

[0091] In a third aspect, an embodiment of the present invention provides an electronic device, which can effectively improve the monitoring efficiency and accuracy of the system resource manager.

[0092] As Figure 4 shown, the electronic device provided by the embodiment of the present invention may include: a housing 51, a processor 52, a memory 53, a circuit board 54, and a power supply circuit 55, wherein the circuit board 54 is disposed inside the space surrounded by the housing 51, and the processor 52 and the memory 53 are disposed on the circuit board 54; the power supply circuit 55 is configured to supply power to each circuit or device of the above-mentioned electronic device; the memory 53 is configured to store executable program codes; the processor 52 runs a program corresponding to the executable program codes by reading the executable program codes stored in the memory 53, and is configured to execute the monitoring method of the system resource manager provided in any of the foregoing embodiments.

[0093] The specific execution process of the processor 52 for the above steps and the further steps executed by the processor 52 by running the executable program codes may refer to the description of the foregoing embodiments and will not be elaborated herein.

[0094] The above-mentioned electronic device exists in various forms, including but not limited to:

[0095] (1) Mobile communication devices: These devices are characterized by having mobile communication functions and mainly aim to provide voice and data communication. Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones, etc.

[0096] (2) Ultra-mobile personal computer devices: These devices belong to the category of personal computers, have computing and processing functions, and generally also have the characteristic of mobile Internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as iPad.

[0097] (3) Portable entertainment devices: These devices can display and play multimedia content. Such devices include: audio and video players (such as iPod), handheld game consoles, e-books, and smart toys and portable in-vehicle navigation devices.

[0098] (4) Servers: Devices that provide computing services. The composition of a server includes a processor, hard disk, memory, system bus, etc. A server is similar to a general computer architecture, but due to the need to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, manageability, etc.

[0099] (5) Other electronic devices with data interaction functions.

[0100] Correspondingly, in a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium. The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement any one of the monitoring methods of the system resource manager provided in the foregoing embodiments, and thus can also achieve corresponding technical effects, which have been described in detail above and will not be elaborated here.

[0101] It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of another identical element in the process, method, article or device including the said element.

[0102] Each embodiment in this specification is described in a related manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments.

[0103] In particular, for the device embodiments, since they are basically similar to the method embodiments, the description is relatively simple. For the relevant parts, reference can be made to the partial description of the method embodiments.

[0104] For the convenience of description, the above device is described by dividing its functions into various units / modules. Of course, when implementing the present invention, the functions of each unit / module can be realized in the same or multiple software and / or hardware.

[0105] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above method embodiments. Among them, the storage medium can be a magnetic disk, an optical disc, a read-only memory (ROM), or a random access memory (RAM), etc.

[0106] As mentioned above, the above are only specific implementation manners of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed by the present invention should be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims

1. A monitoring method for a system resource manager, characterized in that, Including: Register a first component with the operating system, where the component type of the first component is a preset component type associated with the system resource manager; In response to the startup of the system resource manager, load the first component and call back a preset method in the first component; Monitor the system resource manager according to the parameters provided by the preset method, so as to perform corresponding processing operations on the system resource manager according to the monitoring results; Among them, the "In response to the startup of the system resource manager, load the first component and call back a preset method in the first component" includes: In response to the startup of the system resource manager, load the first component and call back the activation invoke method in the first component; The "Monitor the system resource manager according to the parameters provided by the preset method, so as to perform corresponding processing operations on the system resource manager according to the monitoring results" includes: Determine the monitoring timing of the system resource manager according to the DISPID parameter provided by the activation invoke method; Perform corresponding processing operations on the system resource manager according to the monitoring timing; The "Determine the monitoring timing of the system resource manager according to the DISPID parameter provided by the activation invoke method" includes: In the case where the parameter value of the DISPID parameter is the first value, determine the monitoring timing of the system resource manager as the takeover determination timing; The "Perform corresponding processing operations on the system resource manager according to the monitoring timing" includes: Determine whether to use a third-party resource manager to take over the system resource manager according to a first preset policy.

2. The monitoring method according to claim 1, wherein The "Register a first component with the operating system" includes: Generate a first component of the browser helper object (BHO) type; Register the first component with the operating system.

3. The monitoring method according to claim 1, wherein After the "Determine whether to use a third-party resource manager to take over the system resource manager according to a first preset policy", the method further includes: In the case of determining to use a third-party resource manager to take over the system resource manager, obtain the path information of the target folder that the system resource manager needs to open through the activation invoke method; According to the path information, use the third-party resource manager to replace the system resource manager and open the target folder.

4. The monitoring method according to claim 1, wherein The "Determine the monitoring timing of the system resource manager according to the DISPID parameter provided by the activation invoke method" includes: In the case where the parameter value of the DISPID parameter is not the first value, determine the monitoring timing of the system resource manager as the recommendation determination timing; The "Perform corresponding processing operations on the system resource manager according to the monitoring timing" includes: Determine whether to recommend to the user to use a third-party resource manager to replace the system resource manager according to a second preset policy.

5. The monitoring method according to claim 4, characterized in that, The monitoring timing of the system resource manager is the recommendation determination timing; the method further includes: Obtain the current browsing object information of the user; According to the browsing object information, determine whether to recommend applications and / or functions related to the browsing object to the user.

6. The monitoring method according to any one of claims 1 to 5, characterized in that After monitoring the system resource manager according to the parameters provided by the preset method, the method further includes: Stopping monitoring the system resource manager according to the first configuration information.

7. The monitoring method according to any one of claims 1 to 5, characterized in that, Before responding to the startup of the system resource manager, loading the first component and calling back the preset method in the first component, the method further includes: Determining whether to perform a monitoring test on the system resource manager according to the second configuration information; Responding to the startup of the system resource manager, loading the first component and calling back the preset method in the first component includes: In the case of determining to perform a monitoring test on the system resource manager, in response to the startup of the system resource manager, loading the first component and calling back the preset method in the first component; Or In the case of determining not to perform a monitoring test on the system resource manager, in response to the startup of the system resource manager, prohibiting the loading of the first component and calling back the preset method in the first component; After responding to the startup of the system resource manager, loading the first component and calling back the preset method in the first component, the method further includes: Implementing an A / B test on the monitoring effect of the system resource manager according to whether the first component is loaded and the preset method in the first component is called back.

8. A monitoring device for a system resource manager, characterized in that, Includes: A registration unit for registering the first component with the operating system, where the component type of the first component is a preset component type associated with the system resource manager; A loading unit for, in response to the startup of the system resource manager, loading the first component and calling back the preset method in the first component; A monitoring unit for monitoring the system resource manager according to the parameters provided by the preset method, so as to perform corresponding processing operations on the system resource manager according to the monitoring results; Among them, the loading unit is specifically used for, in response to the startup of the system resource manager, loading the first component and calling back the activation invoke method in the first component; The monitoring unit includes: An opportunity determination module for determining the monitoring opportunity of the system resource manager according to the DISPID parameter provided by the activation invoke method; A processing module for performing corresponding processing operations on the system resource manager according to the monitoring opportunity; The opportunity determination module is specifically used for, when the parameter value of the DISPID parameter is the first value, determining the monitoring opportunity of the system resource manager as the takeover determination opportunity; The processing module is specifically used for determining whether to use a third-party resource manager to take over the system resource manager according to the first preset policy.

9. The monitoring device according to claim 8, characterized in that The registration unit includes: A generation module for generating a first component of the browser helper object BHO type; A registration module for registering the first component with the operating system.

10. The monitoring device according to claim 8, characterized in that, The monitoring unit further includes: A path acquisition module for, in the case of determining to use a third-party resource manager to take over the system resource manager, obtaining the path information of the target folder that the system resource manager needs to open through the activation invoke method; A replacement module, configured to use the third-party resource manager to replace the system resource manager according to the path information and open the target folder.

11. The monitoring device according to claim 8, wherein the timing determination module is specifically configured to determine the monitoring timing of the system resource manager as the recommended determination timing when the parameter value of the DISPID parameter is not the first value; the processing module is specifically configured to determine whether to recommend to the user to use a third-party resource manager to replace the system resource manager according to a second preset policy.

12. The monitoring device according to claim 11, wherein The timing determination module determines the monitoring timing of the system resource manager as the recommended determination timing; the monitoring unit further includes: a browsing object acquisition module, configured to acquire the current browsing object information of the user; the processing module is further configured to determine whether to recommend an application and / or function related to the browsing object to the user according to the browsing object information.

13. The monitoring device according to any one of claims 8 to 12, characterized in that It further includes: A stop unit, configured to stop monitoring the system resource manager according to the first configuration information after monitoring the system resource manager according to the parameters provided by the preset method.

14. The monitoring device according to any one of claims 8 to 12, characterized in that It further includes: A test determination unit, configured to determine whether to perform a monitoring test on the system resource manager according to the second configuration information before loading the first component and calling back the preset method in the first component in response to the startup of the system resource manager; The loading unit is specifically configured to: in the case of determining to perform a monitoring test on the system resource manager, load the first component and call back the preset method in the first component in response to the startup of the system resource manager; or in the case of determining not to perform a monitoring test on the system resource manager, prohibit loading the first component and call back the preset method in the first component in response to the startup of the system resource manager; The device further includes a test implementation unit, configured to perform an A / B test on the monitoring effect of the system resource manager according to whether the loading unit loads the first component and calls back the preset method in the first component after loading the first component and calling back the preset method in the first component in response to the startup of the system resource manager.

15. An electronic device, characterized in that, The electronic device includes: a housing, a processor, a memory, a circuit board, and a power circuit. The circuit board is disposed inside the space surrounded by the housing, and the processor and the memory are disposed on the circuit board; the power circuit is configured to supply power to each circuit or device of the electronic device; the memory is configured to store executable program codes; the processor runs a program corresponding to the executable program codes by reading the executable program codes stored in the memory, and is configured to execute the monitoring method of the system resource manager according to any one of the preceding claims 1 to 7.

16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the monitoring method of the system resource manager according to any one of the preceding claims 1 to 7.

Citation Information

Patent Citations

  • Method and device for monitoring running status of browser

    CN103412812A