CN111966421B - Page component operation monitoring method, device, equipment and storage medium - Google Patents
Page component operation monitoring method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN111966421B CN111966421B CN202010605991.1A CN202010605991A CN111966421B CN 111966421 B CN111966421 B CN 111966421B CN 202010605991 A CN202010605991 A CN 202010605991A CN 111966421 B CN111966421 B CN 111966421B
- Authority
- CN
- China
- Prior art keywords
- life cycle
- function
- calling
- page component
- functions
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 95
- 238000000034 method Methods 0.000 title claims abstract description 56
- 230000006870 function Effects 0.000 claims abstract description 175
- 230000015654 memory Effects 0.000 claims description 21
- 238000012806 monitoring device Methods 0.000 claims description 9
- 230000005856 abnormality Effects 0.000 description 14
- 230000008569 process Effects 0.000 description 11
- 238000004590 computer program Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 230000002159 abnormal effect Effects 0.000 description 6
- 230000006399 behavior Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/485—Task life-cycle, e.g. stopping, restarting, resuming execution
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- Mathematical Physics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the application discloses a method, a device, equipment and a storage medium for monitoring operation of a page component, and relates to the technical fields of page component monitoring and cloud computing. The specific implementation scheme is as follows: calling and monitoring a plurality of life cycle functions of the page component; each time a call is monitored, determining a call moment for a called life cycle function; and monitoring the operation of the page component according to the calling moments of the lifecycle functions of the page component. According to the embodiment of the application, the exception handling efficiency can be improved.
Description
Technical Field
The application relates to the technical field of computers, in particular to the technical field of page component monitoring and cloud computing, and specifically relates to a method, a device, equipment and a storage medium for monitoring operation of a page component.
Background
San is a MVVM (Model-View-ViewModel) component framework. The system has small volume (11K), good compatibility (IE 6) and excellent performance, and is a reliable and dependable solution for realizing a responsive user interface. In general, data defined in San will be encapsulated, so that when data is effectively changed, san components (page components) are notified, the page components rely on node relation trees generated in a template compiling stage to determine the minimum view to be changed, and asynchronous updating of views is further completed, so that high efficiency of view updating is guaranteed. However, an abnormality occurs in the operation process of the page component, so a scheme for monitoring the operation process of the page component is needed.
Disclosure of Invention
The application provides a method, a device, equipment and a storage medium for monitoring the operation of a page component, and provides a scheme for monitoring the operation of the page component, so that when an abnormality occurs in the operation process of the page component, the scene and the operation behavior of a user when the abnormality occurs can be restored, conditions are provided for positioning and solving the problem, and the abnormality processing efficiency is improved.
In a first aspect, an embodiment of the present application provides a method for monitoring operation of a page component, including:
calling and monitoring a plurality of life cycle functions of the page component;
each time a call is monitored, determining a call moment for a called life cycle function;
and monitoring the operation of the page component according to the calling moments of the lifecycle functions of the page component.
In a second aspect, an embodiment of the present application provides an operation monitoring device for a page component, including:
the first monitoring module is used for calling and monitoring a plurality of life cycle functions of the page component;
the determining module is used for determining the calling moment of the called life cycle function every time the calling is monitored;
and the second monitoring module is used for monitoring the operation of the page component according to the calling moments of the life cycle functions of the page component.
In a third aspect, an embodiment of the present application provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of operation monitoring of a page component as described in the first aspect of the present application.
In a fourth aspect, embodiments of the present application provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method of operation monitoring of a page component according to the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product, including a computer program, which when executed by a processor implements the method for monitoring operation of a page component according to the first aspect.
According to the embodiment of the application, the exception handling efficiency can be improved.
It should be understood that the description of this section is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows.
Drawings
The drawings are for better understanding of the present solution and do not constitute a limitation of the present application. Wherein:
FIG. 1 is a schematic flow chart of a method for monitoring operation of a page component according to an embodiment of the present application;
FIG. 2 is a flow diagram of another method for monitoring operation of a page component according to an embodiment of the present application;
FIG. 3 is a flow chart diagram of generating operational monitoring data according to an embodiment of the present application;
FIG. 4 is a schematic diagram of the overall operation of a page component provided in accordance with an embodiment of the present application;
FIG. 5 is a schematic structural diagram of an operation monitoring device for a page component according to an embodiment of the present application;
FIG. 6 is a block diagram of an electronic device for implementing a method of operation monitoring of a page component of an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The following describes an operation monitoring method, device, equipment and storage medium of a page component provided in the embodiments of the present application with specific reference to the accompanying drawings, and first describes an operation monitoring method of a page component provided in the embodiments of the present application with reference to fig. 1. Fig. 1 is a flowchart of a method for monitoring operation of a page component according to an embodiment of the present application, referring to fig. 1, the method includes the following steps:
s101, calling and monitoring a plurality of life cycle functions of the page component.
The operation monitoring method of the page component provided by the embodiment of the invention can be executed by the operation monitoring device of the page component provided by the embodiment of the invention, and the device can be configured in electronic equipment to monitor the operation process of the page component.
In the embodiment of the invention, the page component refers to a san component in a san framework. The plurality of lifecycle functions of the san component may include: a complete function, an inited function, a create function, an attched function, a desched function, a disjunced function, and an updated function, for a total of 7 lifecycle functions. Wherein, the completed represents that the compiling of the component view template is completed; inited indicates that component instance initialization is complete; the created represents that the creation of the component element is completed; attached indicates that a component has been attached to the page; updated represents component data updates; the removed represents that the component is removed from the page; di speed indicates that component offloading is complete. For example, a completed function may be called when the component compilation is complete; the component is mounted in the page to call an attached function; component uninstallation from the page invokes the discrete function.
Optionally, the call monitoring can be performed on a plurality of life cycle functions of the page component through a preset life cycle function monitor; alternatively, whether or not a plurality of lifecycle functions of the page component are used is monitored, call monitoring is performed on a plurality of lifecycle functions of the page component, and the like, which is not particularly limited herein.
S102, determining the calling moment when the calling is carried out every time the calling is monitored.
Alternatively, a plurality of life cycle functions in the page component can be called at any time, and a time exists corresponding to the called life cycle functions, so that when any life cycle function is detected to be called, the calling time of the called life cycle functions can be determined.
As an alternative implementation, the call time when the lifecycle function is called may be determined, and the call lifecycle function call time may be recorded by using an application program interface (performanceApi) provided by the browser.
For example, when the lifecycle function combined function and the attached function call are monitored, call lifecycle function call moments may be recorded based on the performanceApi provided by the browser, respectively.
Furthermore, in order to conveniently determine the call time of the life cycle function, when the application interface provided by the browser records the call time of the life cycle function, the embodiment of the application can also use the marking function to mark the call time of the life cycle function. In this embodiment, the marking function may be performance.
That is, determining the call time for the called lifecycle function in this embodiment includes: and calling an application program interface provided by the browser, and marking the calling time of the life cycle function by adopting a marking function in the application program interface so as to quickly and accurately determine the calling time of the life cycle based on the marking function.
And S103, monitoring the operation of the page component according to the call moments of the life cycle functions of the page component.
Optionally, after determining the call time of multiple lifecycle functions in the page component, the embodiment may rewrite the lifecycle functions of the page component by using a decorator (decoector) provided by a new standard (ES 6) of JavaScript language, where the call time of each lifecycle function is recorded, and further analyze the operation performance of the page component according to the call time of the lifecycle, so as to determine whether an abnormality occurs in the operation process of the page component.
According to the technical scheme, the calling monitoring is carried out on the plurality of life cycle functions of the page component, the calling time is determined when the calling is carried out every time the calling is monitored, and then the operation of the page component is monitored according to the calling time of the plurality of life cycle functions of the page component. Therefore, based on the operation condition of the page component, whether the page component is abnormal or not is determined, when the page component is abnormal in the operation process, the scene and the user operation behavior when the abnormality occurs can be restored, conditions are provided for positioning and solving the problems, and the abnormality processing efficiency is improved.
Fig. 2 is a flowchart of another method for monitoring operation of a page component according to an embodiment of the present application. This embodiment is an alternative to the embodiments described above. As shown in fig. 2, the method comprises the steps of:
s201, calling and monitoring a plurality of life cycle functions of the page component.
S202, determining calling time when calling is carried out on the called life cycle function every time calling is monitored.
And S203, when the call to the uninstall function is monitored, generating operation monitoring data according to the monitored call time of each life cycle function.
Wherein the plurality of lifecycle functions includes an uninstall function for uninstalling the page component. For example, a closed function.
Typically, when the uninstall function is called, it is generally referred to that all performance data of the page component has been counted, and at this time, operation monitoring data of the page component may be generated. Therefore, when the call operation of the uninstalled function (the uninstalled function) in the plurality of life cycle functions of the page component is monitored, the embodiment can generate the operation monitoring data of the page component according to the call time of all the life cycle functions monitored before, thereby providing conditions for the follow-up determination of the operation performance of the page component.
As an alternative implementation, the present application may generate operation monitoring data through fig. 3.
As shown in fig. 3, the method comprises the steps of:
s301, determining and setting the calling time interval between the two life cycle functions according to the monitored calling time of each life cycle function.
The set two life cycle functions may be any two life cycle functions of the plurality of life cycles of the page component. In this embodiment, two life cycle functions are set into multiple groups, where one group sets the two life cycle functions to be used to load the page component into the page and compile a view template of the page component.
In order to facilitate understanding of the scheme, the whole operation process of the page component is described below based on fig. 4, specifically, when a new page component request (new) is triggered, firstly determining whether a code (Has 'el' option) of a component template exists currently, if so, the parsfrom analyzes the code of an event view template, namely, compiles a component template representation to obtain a compiling result (init data); if not, edit (combile) is directly based to complete component instantiation. And then, loading the page component in the page through call attach triggering, completing the creation of the component element based on the create component element creation function, attaching the component to the function in the page based on attach, and attaching the created component element to the page. The remove page component request from the page is then triggered by call detach to remove the component from the page based on the detach remove function. Finally, the page component request is unloaded from the page by triggering a call dispose to remove the page component from the page based on the detach, and the removed page component is unloaded from the page based on the dispose.
That is, as can be seen from fig. 4, in the present embodiment, setting the two life cycle functions includes the following cases: in case one, the combined function and the inited function are set as two life cycle functions; secondly, the initial function and the created function are set as two life cycle functions; thirdly, setting the created function and the attached function as two life cycle functions; in the fourth case, the attached function and the detached function are set as two life cycle functions; in case five, the released function and the di speed function are set as two life cycle functions.
Optionally, whether the uninstall function in the page component is called or not can be monitored through the monitor, and if the call of the uninstall function is monitored, the call time between the two life cycle functions is determined according to the monitored call time of each life cycle function. In particular, the application program interface provided by the browser can be called, and the statistical function in the program interface is adopted to count the calling time of the set two life cycle functions so as to obtain the calling time interval between the set two life cycle functions. Thereby realizing the automatic determination and setting of the calling time interval between the two dough periodical functions.
The application program interface may be performanceApi. The statistical functions within the application program interface may be: performance.measure ().
For example, if the two life cycle functions are respectively an attached function and a combed function, a statistical function in the program interface is adopted, and according to the respective call moments of the attached function and the combed function, the call moment interval of the page component hanging in the page can be determined.
For another example, if the two life cycle functions are the combed function and the inited function respectively, a statistical function in the application program interface is adopted, and according to the respective call moments of the combed function and the inited function, the call moment interval from compiling the page component view template to creating the page component element can be determined.
S302, the calling time interval between the two life cycle functions is set to be used as the operation monitoring data.
Optionally, after determining the call time interval between the two lifecycle functions set in the page component, the embodiment may set the call time interval between the two lifecycle functions as operation monitoring data of the page component.
S204, the operation monitoring data is sent to a server side.
Optionally, in order to count the operation performance of the page component, after generating operation monitoring data according to the monitored call time of each life cycle function, the embodiment may send the operation monitoring data of the page component to the server, so that the server determines the operation performance of the page component based on the operation monitoring data of the page component.
According to the technical scheme, through calling and monitoring the plurality of life cycle functions of the page component, each time calling is monitored, the calling time is determined for the called life cycle functions, when calling of the uninstalled functions is monitored, operation monitoring data are generated according to the monitored calling time of each life cycle function, and the operation monitoring data are sent to the server side. Therefore, the server end analyzes the operation performance of the page assembly based on the operation monitoring data, and when the abnormality occurs in the operation process of the page assembly, the scene and the user operation behavior when the abnormality occurs can be restored, conditions are provided for positioning the problem and solving the problem, and the abnormality processing efficiency is improved.
Fig. 5 is a schematic structural diagram of an operation monitoring device for a page component according to an embodiment of the present application. Referring to fig. 5, an embodiment of the present application discloses an operation monitoring apparatus 500 for a page component, where the apparatus 500 may be configured in an electronic device, and the apparatus 500 includes: a first monitoring module 510, a determining module 520, and a second monitoring module 530;
the first monitoring module 510 is configured to call and monitor a plurality of lifecycle functions of the page component.
A determining module 520, configured to determine a call time when the call is made to the lifecycle function whenever the call is detected.
A second monitoring module 530, configured to monitor operation of the page component according to the call moments of the lifecycle functions of the page component.
Optionally, the plurality of life cycle functions include an uninstall function for uninstalling the page component; the first monitoring module 510 includes:
the monitoring data generating unit is used for generating operation monitoring data according to the monitored calling time of each life cycle function when the calling of the unloading function is monitored;
and the monitoring data transmitting module is used for transmitting the operation monitoring data to the server side.
Optionally, the monitoring data generating unit is specifically configured to:
determining and setting a calling time interval between two life cycle functions according to the monitored calling time of each life cycle function;
and taking the calling time interval between the set two life cycle functions as the operation monitoring data.
Optionally, the monitoring data generating unit is further configured to:
and calling an application program interface provided by the browser, and counting the calling time of the set two life cycle functions by adopting a statistical function in the application program interface so as to obtain the calling time interval between the set two life cycle functions.
Optionally, the set two life cycle functions are multiple groups, wherein one group of the set two life cycle functions is used for loading the page component into a page and compiling a view template of the page component.
Optionally, the determining module 520 is specifically configured to:
and calling an application program interface provided by the browser, and marking the calling time of the life cycle function by adopting a marking function in the application program interface.
It should be noted that the foregoing explanation of the embodiment of the operation monitoring method for a page component is also applicable to the operation monitoring device for a page component of this embodiment, and the implementation principle is similar, which is not repeated herein.
According to the technical scheme, the calling monitoring is carried out on the plurality of life cycle functions of the page component, the calling time is determined when the calling is carried out every time the calling is monitored, and then the operation of the page component is monitored according to the calling time of the plurality of life cycle functions of the page component. Therefore, based on the operation condition of the page component, whether the page component is abnormal or not is determined, when the page component is abnormal in the operation process, the scene and the user operation behavior when the abnormality occurs can be restored, conditions are provided for positioning and solving the problems, and the abnormality processing efficiency is improved.
In order to achieve the above embodiments, an embodiment of the present application provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of monitoring operation of a page component as described in the foregoing method embodiments of the present application.
To achieve the above embodiments, the present embodiments provide a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the operation monitoring method of the page component as described in the foregoing method embodiments.
In order to implement the above embodiments, the embodiments of the present application provide a computer program product, including a computer program, which when executed by a processor implements the method for monitoring operation of a page component according to the foregoing method embodiments.
According to embodiments of the present application, an electronic device and a readable storage medium are also provided.
As shown in fig. 6, a block diagram of an electronic device of a method for monitoring operation of a page component according to an embodiment of the present application is shown. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the application described and/or claimed herein.
As shown in fig. 6, the electronic device includes: one or more processors 601, memory 602, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 601 is illustrated in fig. 6.
Memory 602 is a non-transitory computer-readable storage medium provided herein. The memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method for monitoring operation of a page component provided herein. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the method of operation monitoring of a page component provided herein.
The memory 602 is used as a non-transitory computer readable storage medium for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the first monitoring module 510, the determining module 520, and the second monitoring module 530) corresponding to the operation monitoring method of the page component in the embodiments of the present application. The processor 601 executes various functional applications of the server and data processing by running non-transitory software programs, instructions, and modules stored in the memory 602, i.e., implements the operation monitoring method of the page component in the above-described method embodiment.
The memory 602 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for a function; the storage data area may store data created according to the use of the electronic device of the operation monitoring method of the page component, and the like. In addition, the memory 602 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 602 may optionally include memory remotely located relative to processor 601, which may be connected to an audio-video synchronized playback electronic device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the operation monitoring method of the page component may further include: an input device 603 and an output device 604. The processor 601, memory 602, input device 603 and output device 604 may be connected by a bus or otherwise, for example in fig. 6.
The input device 603 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device for live webpages, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointer stick, one or more mouse buttons, a track ball, a joystick, and the like. The output means 604 may include a display device, auxiliary lighting means (e.g., LEDs), tactile feedback means (e.g., vibration motors), and the like. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASIC (application specific integrated circuit), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
These computing programs (also referred to as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), the internet, and blockchain networks.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme, the calling monitoring is carried out on the plurality of life cycle functions of the page component, the calling time is determined when the calling is carried out every time the calling is monitored, and then the operation of the page component is monitored according to the calling time of the plurality of life cycle functions of the page component. Therefore, based on the operation condition of the page component, whether the page component is abnormal or not is determined, when the page component is abnormal in the operation process, the scene and the user operation behavior when the abnormality occurs can be restored, conditions are provided for positioning and solving the problems, and the abnormality processing efficiency is improved.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the technical solutions disclosed in the present application can be achieved, and are not limited herein.
The above embodiments do not limit the scope of the application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application are intended to be included within the scope of the present application.
Claims (10)
1. A method for monitoring operation of a page component, comprising:
calling and monitoring a plurality of life cycle functions of the page component;
each time a call is monitored, determining a call moment for a called life cycle function; wherein the plurality of lifecycle functions include an uninstall function for uninstalling the page component;
when the call to the uninstalled function is monitored, determining and setting a call time interval between the two life cycle functions according to the monitored call time of each life cycle function;
taking the calling time interval between the set two life cycle functions as operation monitoring data;
and sending the operation monitoring data to a server side.
2. The operation monitoring method according to claim 1, wherein the determining, according to the monitored call time of each lifecycle function, to set a call time interval between two lifecycle functions includes:
and calling an application program interface provided by the browser, and counting the calling time of the set two life cycle functions by adopting a statistical function in the application program interface so as to obtain the calling time interval between the set two life cycle functions.
3. The operation monitoring method according to claim 1, wherein the set two life cycle functions are multiple sets, wherein one set of the set two life cycle functions is used for loading the page component into a page and compiling a view template of the page component.
4. A method of operational monitoring according to any one of claims 1-3, wherein determining a call time for the called lifecycle function comprises:
and calling an application program interface provided by the browser, and marking the calling time of the life cycle function by adopting a marking function in the application program interface.
5. An operation monitoring device for a page assembly, comprising:
the first monitoring module is used for calling and monitoring a plurality of life cycle functions of the page component;
the determining module is used for determining the calling moment of the called life cycle function every time the calling is monitored; wherein the plurality of lifecycle functions include an uninstall function for uninstalling the page component;
a second monitoring module comprising:
the monitoring data generating unit is used for determining and setting the calling time interval between the two life cycle functions according to the monitored calling time of each life cycle function when the calling of the unloading function is monitored; taking the calling time interval between the set two life cycle functions as operation monitoring data;
and the monitoring data transmitting unit is used for transmitting the operation monitoring data to the server side.
6. The operation monitoring device according to claim 5, wherein the monitoring data generating unit is further configured to:
and calling an application program interface provided by the browser, and counting the calling time of the set two life cycle functions by adopting a statistical function in the application program interface so as to obtain the calling time interval between the set two life cycle functions.
7. The operation monitoring device according to claim 5, wherein the set two life cycle functions are multiple sets, wherein one set of the set two life cycle functions is used for loading the page component into a page and compiling a view template of the page component, respectively.
8. The operation monitoring device according to any one of claims 5-7, wherein the determining module is specifically configured to:
and calling an application program interface provided by the browser, and marking the calling time of the life cycle function by adopting a marking function in the application program interface.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of operation monitoring of a page component of any one of claims 1-4.
10. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of operation monitoring of a page component of any of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010605991.1A CN111966421B (en) | 2020-06-29 | 2020-06-29 | Page component operation monitoring method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010605991.1A CN111966421B (en) | 2020-06-29 | 2020-06-29 | Page component operation monitoring method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111966421A CN111966421A (en) | 2020-11-20 |
CN111966421B true CN111966421B (en) | 2024-01-09 |
Family
ID=73360991
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010605991.1A Active CN111966421B (en) | 2020-06-29 | 2020-06-29 | Page component operation monitoring method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111966421B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112860455B (en) * | 2021-02-08 | 2023-07-21 | 北京百度网讯科技有限公司 | Life cycle event processing method and device and electronic equipment |
CN114035829A (en) * | 2021-12-17 | 2022-02-11 | 北京百度网讯科技有限公司 | Page component updating method, apparatus, electronic device and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101629184B1 (en) * | 2014-12-10 | 2016-06-13 | 현대오트론 주식회사 | Method for calling periodic function to enhance process speed of EEPROM in AUTOSAR |
CN109558304A (en) * | 2017-09-27 | 2019-04-02 | 北京邮电大学 | A kind of component liaison analysis method, device and electronic equipment |
CN109918101A (en) * | 2019-01-28 | 2019-06-21 | 努比亚技术有限公司 | Terminal and its application component management method, computer readable storage medium |
CN110496395A (en) * | 2019-08-22 | 2019-11-26 | 阿里巴巴集团控股有限公司 | It is a kind of for the assembly operating method of illusory engine, system and equipment |
CN111078225A (en) * | 2019-11-21 | 2020-04-28 | 贝壳技术有限公司 | Hot reloading method and device, electronic equipment and storage medium |
CN111125698A (en) * | 2019-11-28 | 2020-05-08 | 中金金融认证中心有限公司 | System and method for preventing interface hijacking in Android application |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10701030B2 (en) * | 2016-07-06 | 2020-06-30 | Hiro Media Ltd. | Real-time monitoring of web page code |
-
2020
- 2020-06-29 CN CN202010605991.1A patent/CN111966421B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101629184B1 (en) * | 2014-12-10 | 2016-06-13 | 현대오트론 주식회사 | Method for calling periodic function to enhance process speed of EEPROM in AUTOSAR |
CN109558304A (en) * | 2017-09-27 | 2019-04-02 | 北京邮电大学 | A kind of component liaison analysis method, device and electronic equipment |
CN109918101A (en) * | 2019-01-28 | 2019-06-21 | 努比亚技术有限公司 | Terminal and its application component management method, computer readable storage medium |
CN110496395A (en) * | 2019-08-22 | 2019-11-26 | 阿里巴巴集团控股有限公司 | It is a kind of for the assembly operating method of illusory engine, system and equipment |
CN111078225A (en) * | 2019-11-21 | 2020-04-28 | 贝壳技术有限公司 | Hot reloading method and device, electronic equipment and storage medium |
CN111125698A (en) * | 2019-11-28 | 2020-05-08 | 中金金融认证中心有限公司 | System and method for preventing interface hijacking in Android application |
Also Published As
Publication number | Publication date |
---|---|
CN111966421A (en) | 2020-11-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112527748B (en) | Method, device, equipment and storage medium for analyzing user operation behavior | |
US8713581B2 (en) | Selected alert delivery in a distributed processing system | |
US8737231B2 (en) | Dynamic administration of event pools for relevant event and alert analysis during event storms | |
US8364813B2 (en) | Administering incident pools for event and alert analysis | |
US8621277B2 (en) | Dynamic administration of component event reporting in a distributed processing system | |
US8386602B2 (en) | Relevant alert delivery in a distributed processing system | |
CN111694857B (en) | Method, device, electronic equipment and computer readable medium for storing resource data | |
US9178936B2 (en) | Selected alert delivery in a distributed processing system | |
US8954811B2 (en) | Administering incident pools for incident analysis | |
CN111475259B (en) | Applet loading method and device and electronic equipment | |
US10055436B2 (en) | Alert management | |
CN113051043A (en) | Micro-service anomaly compensation method and device | |
CN111966421B (en) | Page component operation monitoring method, device, equipment and storage medium | |
CN111813623B (en) | Page monitoring method and device, electronic equipment and storage medium | |
CN111782147B (en) | Method and device for cluster expansion and contraction capacity | |
CN112346512B (en) | Time synchronization method and device | |
CN110765075A (en) | Storage method and equipment of automatic driving data | |
CN114185734A (en) | Cluster monitoring method and device and electronic equipment | |
CN104881256A (en) | Method and device for monitoring availability of data sources | |
CN111581049A (en) | Method, device, equipment and storage medium for monitoring running state of distributed system | |
US20240111579A1 (en) | Termination of sidecar containers | |
CN113655906B (en) | Folding screen control method and device | |
CN112148596B (en) | Method and device for generating error reporting content of deep learning framework | |
CN111966576A (en) | Abnormal code positioning method and device, electronic equipment and storage medium | |
CN111767170A (en) | Operation restoration method and device for equipment, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |