CN110032493A - Monitoring method, device, terminal and the readable storage medium storing program for executing of the page - Google Patents
Monitoring method, device, terminal and the readable storage medium storing program for executing of the page Download PDFInfo
- Publication number
- CN110032493A CN110032493A CN201910189625.XA CN201910189625A CN110032493A CN 110032493 A CN110032493 A CN 110032493A CN 201910189625 A CN201910189625 A CN 201910189625A CN 110032493 A CN110032493 A CN 110032493A
- Authority
- CN
- China
- Prior art keywords
- page
- monitoring
- data
- dynamic
- file
- 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.)
- Pending
Links
Classifications
-
- 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/3089—Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
- G06F11/3093—Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3452—Performance evaluation by statistical analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/865—Monitoring of software
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Evolutionary Biology (AREA)
- Probability & Statistics with Applications (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of monitoring method of page, device, terminal and readable storage medium storing program for executing, wherein the monitoring method of the page includes: to send loading page request to controlled server, obtains page file;It is loaded into the page file and obtains the monitoring page, the dynamic display portion that the monitoring page includes frame part and is embedded in the frame part;Dynamic data is obtained according to the page file, and is rendered according to the dynamic data, to refresh the dynamic display portion;Obtain the control mark of each target widget on the monitoring page;The all properties data of the target widget are acquired, are saved and for statistical analysis.Rendering of the scheme proposed by the present invention based on data acquisition and dynamic data without a technology of burying, so as to be monitored to dynamic display portion in webpage.
Description
Technical field
The present invention relates to data statistics technical field more particularly to a kind of monitoring method of the page, device, terminal and calculating
Machine readable storage medium storing program for executing.
Background technique
In order to quickly show Webpage, improve response speed, prevent crawler, existing web displaying technology is generallyd use
The data shown needed for repeatedly obtaining, browser first obtain some master datas from server end to show basic webpage page
Then face obtains other dynamic datas again to fill basic Webpage, shows the page finally completely.Existing web monitor
Technology is only capable of being monitored basic Webpage, and cannot be monitored to the part of dynamic data.
Therefore, it is necessary to provide a kind of monitoring method of page, to solve the above technical problems.
Summary of the invention
The main purpose of the present invention is to provide a kind of monitoring method of page, device, terminal and computer-readable storages
Medium, it is intended to it solves existing web monitor technology and is only capable of being monitored basic Webpage, and cannot be to dynamic data
The technical issues of part is monitored.
To achieve the above object, the present invention proposes that a kind of monitoring method of page, the monitoring method of the page include:
Loading page request is sent to controlled server, obtains page file;
It is loaded into the page file and obtains the monitoring page, the monitoring page includes frame part and is embedded in the frame
Dynamic display portion in part;
Dynamic data is obtained according to the page file, and is rendered according to the dynamic data, it is described dynamic to refresh
State display portion;
Obtain the control mark of each target widget on the monitoring page;
The all properties data for acquiring the target widget are supervised according to control mark and the performance data
Control.
Preferably, the performance data includes that the load time of the target widget is completed in load, the mesh is completed in load
Mark the uninterrupted of control and the request number of times of the target widget;The all properties data of the acquisition target widget,
The step of being monitored according to control mark and the performance data, comprising:
Acquire all properties data of the target widget;
According to preset threshold table, the first preset threshold corresponding with the target widget and the performance data is determined;
Judge whether the performance data is greater than first preset threshold;
If the performance data is greater than first preset threshold, exception information is generated.
Preferably, if the performance data is greater than first preset threshold, the step of generating exception information it
Afterwards, comprising:
According to contacts list is prestored, the target widget and the performance data corresponding engineering teacher contact details are searched;
By engineer's contact details, the exception information is sent to engineer.
Preferably, described that dynamic data is obtained according to the page file, and rendered according to the dynamic data, with
The step of refreshing the dynamic display portion, comprising:
The page file is parsed, determines the function called in the page file comprising Ajax;
The triggering function called comprising Ajax, obtains the dynamic data;
It calls rendering engine to parse the dynamic data, and typesetting and layout is carried out according to the dynamic data, to refresh
The dynamic display portion.
Preferably, the calling rendering engine parses the dynamic data, and according to the dynamic data carry out typesetting and
Layout, to refresh dynamic display portion the step of include:
It calls the rendering engine to parse the dynamic data, generates multiple nodes;
Multiple nodes are built into node tree;
Typesetting and layout are carried out to the node tree, to refresh the dynamic display portion.
Preferably, it after described the step of sending loading page request to controlled server, obtaining page file, also wraps
It includes:
Acquisition obtains the acquisition duration of the page file;
Judge whether the acquisition duration is greater than the second preset threshold;
If the acquisition duration is greater than second preset threshold, increasing is issued to the controlled server and is referred to processing
It enables.
Preferably, described the step of sending loading page request to controlled server, obtaining page file, includes:
Login page load request is sent to the controlled server, obtains log file, the log file includes knowing
Distinguishing label;
The login page file is loaded, and user corresponding with the identification label is inquired according to default log-on message table
Name and password;
The username and password is added in the loading page request, is obtained and the matched page of the user name
Face file.
In addition, the present invention also provides a kind of monitoring device of page, the monitoring device of the page includes:
Sending module, the sending module are used to send loading page request to controlled server, obtain page file;
First rendering module, first rendering module obtain the monitoring page, the prison for being loaded into the page file
Control the dynamic display portion that the page includes frame part and is embedded in the frame part;
Second rendering module, second rendering module are also used to obtain dynamic data, and root according to the page file
It is rendered according to the dynamic data, to refresh the dynamic display portion;
Obtain module, the control mark for obtaining module and being used to obtain each target widget on the monitoring page;
Collection analysis module, the collection analysis module are used to acquire all properties data of the target widget, according to
The control mark and the performance data are monitored.
The present invention also provides a kind of terminal, including processor, memory and be stored on the memory can be by institute
State the page monitoring programme of processor execution, wherein when the page monitoring programme is executed by the processor, realize institute as above
The step of monitoring method for the page stated.
The present invention also provides a kind of computer readable storage medium, the page is stored on the computer readable storage medium
Monitoring programme, wherein when the page monitoring programme is executed by processor, realize the step of the monitoring method of the page as described above
Suddenly.
In technical solution of the present invention, by the rendering to dynamic data, the monitoring page and the user for allowing to carry out monitoring are real
The page that border is opened is consistent, maximumlly ensure that the monitoring method of page data for statistical analysis are exactly user's perception;
Monitoring method in the prior art is avoided to be only capable of being monitored for the frame part in webpage, it can not to dynamic display portion
The technical issues of monitoring;Using being monitored without burying a technology, can save staff early period buries work.
Detailed description of the invention
Fig. 1 is the hardware structural diagram of terminal involved in the embodiment of the present invention;
Fig. 2 is the flow diagram of the monitoring method first embodiment of the page of the present invention;
Fig. 3 is the flow diagram of the monitoring method second embodiment of the page of the present invention;
Fig. 4 is the flow diagram of the monitoring method 3rd embodiment of the page of the present invention;
Fig. 5 is the flow diagram of the monitoring method fourth embodiment of the page of the present invention;
Fig. 6 is the flow diagram of the 5th embodiment of monitoring method of the page of the present invention;
Fig. 7 is the flow diagram of the monitoring method sixth embodiment of the page of the present invention;
Fig. 8 is the flow diagram of the 7th embodiment of monitoring method of the page of the present invention;
Fig. 9 is the module diagram of the monitoring device of the page of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present embodiments relate to the monitoring method of the page be mainly used in terminal, which is with display and processing
The equipment of function can be mobile communication equipment, such as smart phone, multimedia handset etc.;It can also be portable computer, example
Such as ipad, laptop.
Referring to Fig.1, Fig. 1 is terminal structure schematic diagram involved in the embodiment of the present invention.In the embodiment of the present invention, eventually
End may include processor 1001 (such as CPU), communication bus 1002, user interface 1003, network interface 1004, memory
1005.Wherein, communication bus 1002 is for realizing the connection communication between these components;User interface 1003 may include display
Shield (Display), input unit such as keyboard (Keyboard);Network interface 1004 optionally may include that the wired of standard connects
Mouth, wireless interface (such as WI-FI interface);Memory 1005 can be high speed RAM memory, be also possible to stable memory
(non-volatile memory), such as magnetic disk storage, memory 1005 optionally can also be independently of aforementioned processor
1001 storage device.
It will be understood by those skilled in the art that hardware configuration shown in Fig. 1 does not constitute the restriction to equipment, can wrap
It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
With continued reference to Fig. 1, the memory 1005 in Fig. 1 as a kind of computer readable storage medium may include operation system
System, network communication module and page monitoring programme.
In Fig. 1, network communication module is mainly used for connecting server, carries out data communication with server;And processor
1001 can call the page monitoring programme stored in memory 1005, and the step of executing the monitoring method of the page.
Based on the hardware configuration of above-mentioned terminal, each embodiment of the monitoring method of the page of the present invention is proposed.
The present invention provides a kind of monitoring method of page.
Referring to Fig. 2, in the first embodiment of the invention, the monitoring method of the page the following steps are included:
The present embodiments relate to the monitoring method of the page be mainly used in terminal, which is with display and processing
The equipment of function, can be server;It can also be portable computer, such as ipad, laptop etc..
Referring to Fig.1, Fig. 1 is terminal structure schematic diagram involved in the embodiment of the present invention.In the embodiment of the present invention, eventually
End may include processor 1001 (such as CPU), communication bus 1002, user interface 1003, network interface 1004, memory
1005.Wherein, communication bus 1002 is for realizing the connection communication between these components;User interface 1003 may include display
Shield (Display), input unit such as keyboard (Keyboard);Network interface 1004 optionally may include that the wired of standard connects
Mouth, wireless interface (such as WI-FI interface);Memory 1005 can be high speed RAM memory, be also possible to stable memory
(non-volatile memory), such as magnetic disk storage, memory 1005 optionally can also be independently of aforementioned processor
1001 storage device.
It will be understood by those skilled in the art that hardware configuration shown in Fig. 1 does not constitute the restriction to equipment, can wrap
It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
With continued reference to Fig. 1, the memory 1005 in Fig. 1 as a kind of computer readable storage medium may include operation system
System, network communication module and page monitoring programme.
In Fig. 1, network communication module is mainly used for connecting controlled server, carries out data communication with controlled server;
And processor 1001 can call the page monitoring programme stored in memory 1005, and execute the step of the monitoring method of the page
Suddenly.
Based on the hardware configuration of above-mentioned terminal, each embodiment of the monitoring method of the page of the present invention is proposed.
The present invention provides a kind of monitoring method of page.
Referring to Fig. 2, in the first embodiment of the invention, the monitoring method of the page the following steps are included:
Step S100 sends loading page request to controlled server, obtains page file;
Specifically, controlled server is the server for needing to be monitored, and controlled server can provide needs and be monitored
Website page, application program HTML5 part etc. data informations.The loading page request sent to controlled server specifically may be used
Being sent out with obtaining by controlled server by URL (Uniform Resource Locator, uniform resource locator) address
Send with page file corresponding to the address.Page file is specifically as follows html code, JavaScript code composition etc..
Step S200 is loaded into the page file and obtains the monitoring page, and the monitoring page includes frame part and is embedded
Dynamic display portion in the frame part;
Code in page file is formed the visual page according to predetermined protocol or rule by browser or other application, i.e.,
To be loaded into page file, which is the page for needing to be monitored.The Webpage that user obtains generally includes non-
Dynamically Announce content and Dynamically Announce content, the non-dynamic frame part shown in the content as present invention, specially user are not
Carry out the content that refresh operation will not change automatically;Dynamic refresh content is that can carry out automatic compared to non-dynamic refreshing content
The content of refreshing.Such as: show in webpage that there is the frame part for showing the stock essential information, the part in stock price
Content not will do it automatic refreshing;Stock price can be with the generation fluctuation of bidding of stock invester, to form stock price along the time
The variation in direction shows in webpage in the stock price, shows that the part of stock price is Dynamically Announce content, even if user
Refresh operation is not made, Dynamically Announce content also will do it automatic refreshing in the page, to keep consistent with stock invester's real time bid.
Step S300 obtains dynamic data according to the page file, and is rendered according to the dynamic data, with brush
The new dynamic display portion;
Since dynamic display portion can be refreshed automatically, data corresponding to the content of display are to need not
It is disconnected to be obtained from controlled server, it from what is obtained in controlled server is dynamic with the data shown in Dynamically Announce content
State data.The process can pass through asynchronous dynamical refresh page technology (Asynchronous Javascript And XML, Ajax)
It realizes.
Step S400 obtains the control mark of each target widget on the monitoring page;
In the present embodiment, using being monitored without burying a technology, by be previously deployed at Website page, using etc. on
Obtain code to website, using etc. it is upper it is all can alternative events element parse, this can alternative events element be target
Control.Control, which is identified as, can distinguish title, code of each target widget etc..It buries a technology using nothing to be monitored, to save
Go dispose complicated technical problem early period caused by burying a monitoring.
Step S500 acquires all properties data of the target widget, according to control mark and the performance number
According to being monitored.
The performance data includes that the load time of the target widget is completed in load, the target widget is completed in load
Uninterrupted and the request number of times of the target widget etc..Such as: the homepage of the website A is monitored, deployment is for the website A
Code is obtained, each target widget on A website homepage is obtained;Determine that the duration of each target widget is completed in load, can with go through
History data are compared, to discover whether there are the load time is too long, with remind staff to the code of the target widget into
Row optimization.
The monitoring method of the page provided through the invention may make the monitoring page being monitored and user be practical opens
The page it is consistent, maximumlly ensure that the monitoring method of page data for statistical analysis be exactly user perception;It avoids
Monitoring method in the prior art is only capable of being monitored for the frame part in webpage, can not monitor to dynamic display portion
Technical problem;Using being monitored without burying a technology, can save staff early period buries work.
Further, referring to figure 3., Fig. 3 is the flow diagram of the monitoring method second embodiment of the page of the present invention, institute
State performance data include load complete the load time of the target widget, load complete the target widget uninterrupted and
The request number of times of the target widget;Based on first embodiment, step S500 includes:
Step S511 acquires all properties data of the target widget;
Step S510 determines that corresponding with the target widget and the performance data first is pre- according to preset threshold table
If threshold value;
Preset threshold table is those skilled in the art's pre-set tables of data according to actual needs, wherein be provided with
The corresponding performance data project of the target widget, and corresponding with each performance data first preset it is preset.
Step S520, judges whether the performance data is greater than first preset threshold;
Step S530 generates exception information if the performance data is greater than first preset threshold.
If the performance data is less than or equal to first preset threshold, it is not processed.Wherein, the first preset threshold
It is set according to actual needs for those skilled in the art.Preferably, it is identified in the exception information of generation comprising the control, with
Staff is quickly found out and abnormal part occurs.
Further, referring to figure 4., Fig. 4 is the flow diagram of the monitoring method 3rd embodiment of the page of the present invention, base
After second embodiment, step S530, comprising:
Step S540 searches the target widget and performance data corresponding engineering teacher connection according to contacts list is prestored
Information;
Prestoring contacts list is that those skilled in the art are pre-set, wherein including the corresponding engineer of each target widget
Contact method.
The exception information is sent to engineer by engineer's contact details by step S550.
Preferably, the screenshot for the target widget of data exception occur, control mark etc. can also be sent to the work together
Cheng Shi.Specifically warning message can be sent to engineering by communication modes such as short message, mail, instant communication software, workbenches
Teacher.
The present embodiment is applied in distributed system, since distributed system includes multiple controlled servers, is needed same
When multiple controlled servers are monitored, with identification be set to different controlled servers there is data exception.It is for distribution
System, also needs the identification information of controlled server being sent to engineer together, so that engineer makes corresponding modification, optimization.
Referring to figure 5., Fig. 5 is the flow diagram of the monitoring method fourth embodiment of the page of the present invention, real based on first
Example is applied, step S300 includes:
Step S350 parses the page file, determines the function called in the page file comprising Ajax;
Step S360, the triggering function called comprising Ajax, obtains the dynamic data;
Step S370 calls rendering engine to parse the dynamic data, and carries out typesetting and cloth according to the dynamic data
Office, to refresh the dynamic display portion.
The function that Ajax is called is the function of corresponding dynamic display portion.By triggering the letter called comprising Ajax
Number, can obtain the dynamic data from controlled server.
Fig. 6 is please referred to, Fig. 6 is the flow diagram of the 5th embodiment of monitoring method of the page of the present invention, real based on the 4th
Example is applied, step S370 includes:
Step S371 calls the rendering engine to parse the dynamic data, generates multiple nodes;
Multiple nodes are built into node tree by step S372;
Step S373 carries out typesetting and layout to the node tree, to refresh the dynamic display portion.
Specifically, after obtaining dynamic data, rendering engine starts HTML interpreter, JavaScript engine etc., to obtaining
The dynamic data taken carries out dissection process.Code in dynamic data is decoded by lexical analyzer, then by syntax analyzer solution
It is interpreted into word token (Token), and is built into node (Node), a target widget of each node corresponding page, target control
Part is, for example, picture, button, until multiple node Node are built into dom tree (DOM Document Object Model, a Document
Object Model);Dom tree is carried out typesetting and layout by rendering engine, forms visual Webpage.It is called based on Ajax
Function further obtains dynamic display portion by rendering engine to obtain dynamic data, realizes to dynamic display portion
Monitoring.
Fig. 7 is please referred to, Fig. 7 is the flow diagram of the monitoring method first embodiment of the page of the present invention, real based on first
Example is applied, after step S100, comprising:
Step S600, acquisition obtain the acquisition duration of the page file;
Obtain it is a length of when the acquisition of the page file record page request to begin from sending, obtaining whole page files is
Eventually,
Step S700, judges whether the acquisition duration is greater than the second preset threshold;
Step S800 issues the controlled server and increases if the acquisition duration is greater than second preset threshold
With process instruction.
If the acquisition duration is less than or equal to second preset threshold, it is not processed.
Wherein, the second preset threshold is that those skilled in the art preset according to the actual situation.Controlled server is connected to
It is described to increase with after process instruction, some requests can be gone into other servers or standby server by load-balancing device
On.
Duration is obtained by monitoring, so as to be monitored the case where opening webpage Caton to user, when there is the situation
When, increasing can be issued automatically with process instruction, to alleviate the Caton situation.
Fig. 8 is please referred to, Fig. 8 is the flow diagram of the monitoring method first embodiment of the page of the present invention, real based on first
Example is applied, step S100 includes:
Step S110, Xiang Suoshu controlled server sends login page load request, obtains log file, the login text
Part includes identification label;
Identification label specifically can be the address URL or other characters, to distinguish different login pages.
Step S120 loads the log file, and corresponding with the identification label according to the inquiry of default log-on message table
Username and password;
The username and password is added in the loading page request, obtains and the user name by step S130
The page file matched.
By the way that pre-set username and password is carried out automated log on, so as to monitor the page that a part needs to log in
Face, and log in after with the matched page of user name.
Further, Fig. 8 is please referred to, Fig. 8 is to preset in another embodiment of the present invention in each event related pages
The process refinement schematic diagram of the step of monitoring point is based on first embodiment, step S100 further include:
Step S150 receives the trigger action of user's input;
Step S160 determines corresponding position of touch as monitoring point according to the trigger action.
Specifically, monitoring instrument can then be passed through in the foundation code of internet financial platform deployment monitoring instrument
Backstage receives the trigger action of user, wherein trigger action is the selection trigger action that user is executed by terminal, for selecting
The position for needing to monitor.After the trigger action for receiving user's input, corresponding touching has been determined according to the trigger action of user
Position is controlled, which will become the specified monitoring point of monitoring instrument.
In addition, the present invention also provides a kind of monitoring device of page, the monitoring device of the page includes:
Sending module 10, the sending module 10 are used to send loading page request to controlled server, obtain page text
Part;
First rendering module 20, first rendering module 20 obtain the monitoring page, institute for being loaded into the page file
State the dynamic display portion that the monitoring page includes frame part and is embedded in the frame part;
Second rendering module 30, second rendering module 30 are also used to obtain dynamic data according to the page file,
And rendered according to the dynamic data, to refresh the dynamic display portion;
Obtain module 40, the control mark for obtaining module 40 and being used to obtain each target widget on the monitoring page
Know;
Collection analysis module 50, the collection analysis module 50 are used to acquire all properties data of the target widget,
It is monitored according to control mark and the performance data.
Further, the performance data includes that load was completed described in the load time of the target widget, load completion
The request number of times of the uninterrupted of target widget and the target widget;The collection analysis module 50 includes:
First acquisition unit, first acquisition unit are used to acquire all properties data of the target widget;
Query unit, the query unit are used for according to preset threshold table, determining and the target widget and the performance
Corresponding first preset threshold of data;
First judging unit, first judging unit is for judging it is default whether the performance data is greater than described first
Threshold value;
Generation unit generates different if the generation unit is greater than first preset threshold for the performance data
Normal information.
Further, the query unit is also used to search the target widget and the performance according to contacts list is prestored
Data corresponding engineering's teacher contact details;
The sending module 10 is also used to that the exception information is sent to engineering by engineer's contact details
Teacher.
Further, second rendering module 30 includes:
Resolution unit, the resolution unit determine in the page file for parsing the page file comprising Ajax
The function of calling;
Trigger unit, the trigger unit are used to trigger the function called comprising Ajax, obtain the dynamic data;
Refresh unit, the refresh unit are used to that rendering engine to be called to parse the dynamic data, and according to the dynamic
Data carry out typesetting and layout, to refresh the dynamic display portion.
Further, the refresh unit is also used to that the rendering engine is called to parse the dynamic data, raw
At multiple nodes;
Multiple nodes are built into node tree;
Typesetting and layout are carried out to the node tree, to refresh the dynamic display portion.
Further, the monitoring device of the page further include:
Second acquisition unit, second acquisition unit is for acquiring the acquisition duration for obtaining the page file;
Second judgment unit, the second judgment unit is for judging whether the acquisition duration is greater than the second default threshold
Value;
Command unit is generated, if the generation command unit is greater than second preset threshold for the acquisition duration,
Then the controlled server is issued to increase and matches process instruction.
Further, the transmission unit 10 is also used to send login page load request to the controlled server, obtains
Log file is obtained, the log file includes identification label;
First rendering module 20 is also used to load the login page file, and is inquired according to default log-on message table
Username and password corresponding with the identification label;
The transmission unit 10 is also used to the username and password be added in the loading page request, acquisition and institute
State the matched page file of user name.
In addition, being stored with page on computer readable storage medium the present invention also provides a kind of computer readable storage medium
Face monitoring programme, wherein when page monitoring programme is executed by processor, realize as the above-mentioned page monitoring method the step of.
Wherein page monitoring programme be performed realized method can refer to the page of the present invention monitoring method it is each
Embodiment, details are not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of monitoring method of the page, which is characterized in that the monitoring method of the page includes:
Loading page request is sent to controlled server, obtains page file;
It is loaded into the page file and obtains the monitoring page, the monitoring page includes frame part and is embedded in the frame part
In dynamic display portion;
Dynamic data is obtained according to the page file, and is rendered according to the dynamic data, it is aobvious to refresh the dynamic
Show part;
Obtain the control mark of each target widget on the monitoring page;
The all properties data for acquiring the target widget are monitored according to control mark and the performance data.
2. the monitoring method of the page as described in claim 1, which is characterized in that the performance data includes described in load is completed
The uninterrupted of the target widget and the request number of times of the target widget are completed in the load time of target widget, load;Institute
The all properties data for acquiring the target widget are stated, the step being monitored according to control mark and the performance data
Suddenly, comprising:
Acquire all properties data of the target widget;
According to preset threshold table, the first preset threshold corresponding with the target widget and the performance data is determined;
Judge whether the performance data is greater than first preset threshold;
If the performance data is greater than first preset threshold, exception information is generated.
3. the monitoring method of the page as claimed in claim 2, which is characterized in that if the performance data is greater than described the
One preset threshold, then after the step of generating exception information, comprising:
According to contacts list is prestored, the target widget and the performance data corresponding engineering teacher contact details are searched;
By engineer's contact details, the exception information is sent to engineer.
4. the monitoring method of the page as described in claim 1, which is characterized in that described to obtain dynamic according to the page file
Data, and being rendered according to the dynamic data, the step of to refresh the dynamic display portion, comprising:
The page file is parsed, determines the function called in the page file comprising Ajax;
The triggering function called comprising Ajax, obtains the dynamic data;
It calls rendering engine to parse the dynamic data, and typesetting and layout is carried out according to the dynamic data, described in refreshing
Dynamic display portion.
5. the monitoring method of the page as claimed in claim 4, which is characterized in that the calling rendering engine parses the dynamic
Data, and carry out typesetting and layout according to the dynamic data, to refresh dynamic display portion the step of include:
It calls the rendering engine to parse the dynamic data, generates multiple nodes;
Multiple nodes are built into node tree;
Typesetting and layout are carried out to the node tree, to refresh the dynamic display portion.
6. the monitoring method of the page as described in claim 1, which is characterized in that described to send loading page to controlled server
After the step of request, acquisition page file, further includes:
Acquisition obtains the acquisition duration of the page file;
Judge whether the acquisition duration is greater than the second preset threshold;
If the acquisition duration is greater than second preset threshold, the controlled server is issued to increase and matches process instruction.
7. such as the monitoring method of the page of any of claims 1-6, which is characterized in that described to be sent out to controlled server
Send loading page to request, obtain page file the step of include:
Login page load request is sent to the controlled server, obtains log file, the log file includes identification mark
Label;
Load the login page file, and according to default log-on message table inquire user name corresponding with the identification label and
Password;
The username and password is added in the loading page request, is obtained and the matched page text of the user name
Part.
8. a kind of monitoring device of the page, which is characterized in that the monitoring device of the page includes:
Sending module, the sending module are used to send loading page request to controlled server, obtain page file;
First rendering module, first rendering module obtain the monitoring page, the monitoring page for being loaded into the page file
Face includes frame part and the dynamic display portion that is embedded in the frame part;
Second rendering module, second rendering module are also used to obtain dynamic data according to the page file, and according to institute
It states dynamic data to be rendered, to refresh the dynamic display portion;
Obtain module, the control mark for obtaining module and being used to obtain each target widget on the monitoring page;
Collection analysis module, the collection analysis module is used to acquire all properties data of the target widget, according to described
Control mark and the performance data are monitored.
9. a kind of terminal, which is characterized in that including processor, memory and be stored on the memory can be described
The page monitoring programme that processor executes, wherein when the page monitoring programme is executed by the processor, realize as right is wanted
The step of monitoring method of the page described in asking any one of 1 to 7.
10. a kind of computer readable storage medium, which is characterized in that be stored with page prison on the computer readable storage medium
Control program, wherein when the page monitoring programme is executed by processor, realize the page as described in any one of claims 1 to 7
The step of monitoring method in face.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910189625.XA CN110032493A (en) | 2019-03-13 | 2019-03-13 | Monitoring method, device, terminal and the readable storage medium storing program for executing of the page |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910189625.XA CN110032493A (en) | 2019-03-13 | 2019-03-13 | Monitoring method, device, terminal and the readable storage medium storing program for executing of the page |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110032493A true CN110032493A (en) | 2019-07-19 |
Family
ID=67235978
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910189625.XA Pending CN110032493A (en) | 2019-03-13 | 2019-03-13 | Monitoring method, device, terminal and the readable storage medium storing program for executing of the page |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110032493A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110688282A (en) * | 2019-09-25 | 2020-01-14 | 北京博睿宏远数据科技股份有限公司 | Webpage performance data monitoring and monitoring task distribution method and device |
CN111857928A (en) * | 2020-07-23 | 2020-10-30 | 北京达佳互联信息技术有限公司 | Page task access method, device and system, electronic equipment and storage medium |
CN112817669A (en) * | 2020-03-09 | 2021-05-18 | 腾讯科技(深圳)有限公司 | Page selection method and device and readable storage medium |
CN113076234A (en) * | 2021-04-02 | 2021-07-06 | 多点(深圳)数字科技有限公司 | HTML5 page real-time monitoring method |
CN114745558A (en) * | 2021-01-07 | 2022-07-12 | 北京字节跳动网络技术有限公司 | Live broadcast monitoring method, device, system, equipment and medium |
CN115659087A (en) * | 2022-11-28 | 2023-01-31 | 阿里巴巴(中国)有限公司 | Page rendering method, system, device, storage medium and program product |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102214098A (en) * | 2011-06-15 | 2011-10-12 | 中山大学 | Dynamic webpage data acquisition method based on WebKit browser engine |
CN102938776A (en) * | 2012-09-28 | 2013-02-20 | 方正国际软件有限公司 | Dynamic page processing system based on Asynchronous JavaScript and XML (ajax) technique |
CN103678372A (en) * | 2012-09-14 | 2014-03-26 | 北京百度网讯科技有限公司 | Method and equipment for obtaining application performance of page |
CN107832428A (en) * | 2017-11-14 | 2018-03-23 | 北京知行锐景科技有限公司 | Webpage method for monitoring state and system based on Website page |
CN107864065A (en) * | 2017-08-16 | 2018-03-30 | 上海壹账通金融科技有限公司 | Nothing buries point data acquisition method, system and computer-readable recording medium |
CN108121644A (en) * | 2017-12-19 | 2018-06-05 | 珠海市君天电子科技有限公司 | A kind of test method, device and the electronic equipment of page control performance |
-
2019
- 2019-03-13 CN CN201910189625.XA patent/CN110032493A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102214098A (en) * | 2011-06-15 | 2011-10-12 | 中山大学 | Dynamic webpage data acquisition method based on WebKit browser engine |
CN103678372A (en) * | 2012-09-14 | 2014-03-26 | 北京百度网讯科技有限公司 | Method and equipment for obtaining application performance of page |
CN102938776A (en) * | 2012-09-28 | 2013-02-20 | 方正国际软件有限公司 | Dynamic page processing system based on Asynchronous JavaScript and XML (ajax) technique |
CN107864065A (en) * | 2017-08-16 | 2018-03-30 | 上海壹账通金融科技有限公司 | Nothing buries point data acquisition method, system and computer-readable recording medium |
CN107832428A (en) * | 2017-11-14 | 2018-03-23 | 北京知行锐景科技有限公司 | Webpage method for monitoring state and system based on Website page |
CN108121644A (en) * | 2017-12-19 | 2018-06-05 | 珠海市君天电子科技有限公司 | A kind of test method, device and the electronic equipment of page control performance |
Non-Patent Citations (1)
Title |
---|
L某人: "前端向服务器请求数据并渲染的方式", 《博客园》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110688282A (en) * | 2019-09-25 | 2020-01-14 | 北京博睿宏远数据科技股份有限公司 | Webpage performance data monitoring and monitoring task distribution method and device |
CN110688282B (en) * | 2019-09-25 | 2023-01-24 | 北京博睿宏远数据科技股份有限公司 | Webpage performance data monitoring and monitoring task distribution method and device |
CN112817669A (en) * | 2020-03-09 | 2021-05-18 | 腾讯科技(深圳)有限公司 | Page selection method and device and readable storage medium |
CN112817669B (en) * | 2020-03-09 | 2023-09-19 | 腾讯科技(深圳)有限公司 | Page selection method, device and readable storage medium |
CN111857928A (en) * | 2020-07-23 | 2020-10-30 | 北京达佳互联信息技术有限公司 | Page task access method, device and system, electronic equipment and storage medium |
CN114745558A (en) * | 2021-01-07 | 2022-07-12 | 北京字节跳动网络技术有限公司 | Live broadcast monitoring method, device, system, equipment and medium |
CN114745558B (en) * | 2021-01-07 | 2024-04-09 | 北京字节跳动网络技术有限公司 | Live broadcast monitoring method, device, system, equipment and medium |
CN113076234A (en) * | 2021-04-02 | 2021-07-06 | 多点(深圳)数字科技有限公司 | HTML5 page real-time monitoring method |
CN113076234B (en) * | 2021-04-02 | 2022-07-12 | 多点(深圳)数字科技有限公司 | HTML5 page real-time monitoring method |
CN115659087A (en) * | 2022-11-28 | 2023-01-31 | 阿里巴巴(中国)有限公司 | Page rendering method, system, device, storage medium and program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110032493A (en) | Monitoring method, device, terminal and the readable storage medium storing program for executing of the page | |
US20190251143A1 (en) | Web page rendering method and related device | |
JP3202968B2 (en) | Display control information generation method and computer | |
JP2004510254A (en) | Network server | |
US20150370912A1 (en) | Method and system for displaying customized webpage on double webview | |
CN104426925B (en) | Web page resources acquisition methods and device | |
US7952607B2 (en) | Method and apparatus for efficient presentation of content over a network to a visually impaired user | |
CN110046072A (en) | Monitoring method, device, terminal and the readable storage medium storing program for executing of the page | |
JP2007149074A (en) | Context based navigation | |
CN107229760B (en) | Storage medium, electronic device, the display methods of web page contents and device | |
CN113468448A (en) | Page rendering method and device | |
CN107276842B (en) | Interface test method and device and electronic equipment | |
CN105095374A (en) | Method and device for browsing mobile terminal news | |
CN112612988A (en) | Page processing method and device, computer equipment and storage medium | |
CN102831150B (en) | Browser and local exchange method, system and the terminal applied | |
CN104881273A (en) | Webpage rendering analysis method and terminal device | |
CN111428169A (en) | Optimization method, system, server and storage medium for page loading | |
CN108319474B (en) | Page information generation method, device and equipment | |
CN105814565A (en) | Web page rendering on wireless devices | |
CN111339456A (en) | Preloading method and device | |
CN104123143A (en) | User control loading system and method | |
US20080052412A1 (en) | Distributed portel system, content page creation server and recording medium | |
US20050198568A1 (en) | Table display switching method, text data conversion program, and tag program | |
CN102004729A (en) | Method and system for showing website webpage and website server | |
US10095791B2 (en) | Information search method and apparatus |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190719 |
|
WD01 | Invention patent application deemed withdrawn after publication |