CN109271600B - Method, system and device for monitoring performance data - Google Patents

Method, system and device for monitoring performance data Download PDF

Info

Publication number
CN109271600B
CN109271600B CN201810935623.6A CN201810935623A CN109271600B CN 109271600 B CN109271600 B CN 109271600B CN 201810935623 A CN201810935623 A CN 201810935623A CN 109271600 B CN109271600 B CN 109271600B
Authority
CN
China
Prior art keywords
page
time
determining
preset
monitoring
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
Application number
CN201810935623.6A
Other languages
Chinese (zh)
Other versions
CN109271600A (en
Inventor
高鑫
吴侃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weimeng Chuangke Network Technology China Co Ltd
Original Assignee
Weimeng Chuangke Network Technology China Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Weimeng Chuangke Network Technology China Co Ltd filed Critical Weimeng Chuangke Network Technology China Co Ltd
Priority to CN201810935623.6A priority Critical patent/CN109271600B/en
Publication of CN109271600A publication Critical patent/CN109271600A/en
Application granted granted Critical
Publication of CN109271600B publication Critical patent/CN109271600B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording 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/3438Recording 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 monitoring of user actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording 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/3409Recording 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 for performance assessment
    • G06F11/3419Recording 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 for performance assessment by assessing time

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a method, a system and a device for monitoring performance data, which are applied to a server and comprise the following steps: simulating the operation behavior of a user for accessing a client page, and sending a page access request to a service server to acquire page data; when the request for accessing the page is monitored to be sent out, determining the time for sending the request for accessing the page; selecting a display point for presenting a page as a monitoring point and determining a color value of the monitoring point based on a preset time period; and when the change of the color value meets a preset condition, determining performance data representing the first visible content rendering time of the page according to the time corresponding to the change and the time sent by the page access request. By the technical scheme, the required performance data can be acquired without influencing the use experience of the user.

Description

Method, system and device for monitoring performance data
Technical Field
The invention relates to the technical field of computers, in particular to a method, a system and a device for monitoring performance data.
Background
The performance of the website affects the experience of the user in accessing the website, and in order to ensure good experience of the user in accessing the website, the performance of the website needs to be monitored, and one monitoring method may be to insert a code for data reporting into the webpage and send some performance data (e.g., resource loading completion time, rendering start time, etc.) of the website to the server. However, some performance data cannot be collected in this manner. In addition, a user is requested to actively install the browser extension plug-in, so that the use experience of a website user is influenced, and the real performance data of the website cannot be accurately obtained under the condition that the user is not matched.
Disclosure of Invention
Embodiments of the present invention provide a method, a system, and a device for monitoring performance data, which can obtain required performance data without affecting user experience.
On one hand, the embodiment of the invention provides a method for monitoring performance data, which is applied to a server and comprises the following steps:
simulating the operation behavior of a user for accessing a client page, and sending a page access request to a service server to acquire page data;
when the request for accessing the page is monitored to be sent out, determining the time for sending the request for accessing the page;
selecting a display point for presenting a page as a monitoring point and determining a color value of the monitoring point based on a preset time period;
and when the change of the color value meets a preset condition, determining performance data representing the first visible content rendering time of the page according to the time corresponding to the change and the time sent by the page access request.
In another aspect, an embodiment of the present invention provides a system for monitoring performance information, including: the system comprises a monitoring server, a data center server and a service server;
the monitoring server simulates the operation behavior of a user accessing a client page, and sends a page access request to the service server so as to acquire page data from the service server; when monitoring that a request for accessing a page is sent out, determining the time for sending the request for accessing the page; selecting a display point for presenting a page as a monitoring point and determining a color value of the monitoring point based on a preset time period; when the change of the color value meets a preset condition, determining performance data representing the first visible content rendering time of the page according to the time corresponding to the change and the time sent by the page access request;
the data center server receives the performance data which is sent by the monitoring server and represents the rendering time of the first visual content of the page, denoises and stores the performance data which represents the rendering time of the first visual content of the page, and displays the processed performance data;
and the business server receives the access request sent by the monitoring server and responds to the access request to send the page number to the monitoring server.
In another aspect, an embodiment of the present invention provides a performance information monitoring apparatus, applied to a server, including:
the simulation unit is used for simulating the operation behavior of a user for accessing a client page and sending a page access request to the service server so as to acquire page data from the service server;
the first determining unit is used for determining the sending time of the access page request when the sending of the access page request is monitored;
the display device comprises a selection unit, a display unit and a display unit, wherein the selection unit is used for selecting a display point for displaying a page as a monitoring point and determining a color value of the monitoring point based on a preset time period;
and the second determining unit is used for determining the performance data representing the rendering time of the first visible content of the page according to the time corresponding to the change and the time sent by the page access request when the change of the color value meets the preset condition.
The technical scheme has the following beneficial effects: by simulating the operation behavior of a user for accessing a client page, when a request for accessing the page is monitored to be sent, the sending time of the request is determined; selecting a display point for presenting a page as a monitoring point and determining a color value of the monitoring point based on a preset time period; when the change of the color value meets the preset condition, the performance data representing the first time visual content rendering time of the page is determined according to the time corresponding to the change and the time sent by the request, so that the real performance data is obtained without depending on a browser client, for example, the performance data representing the first time visual content rendering time of the page does not need to occupy the time of a user to obtain the performance data, and the experience of the user using the client is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a method for monitoring performance information according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a device for monitoring performance information according to another embodiment of the present invention;
FIG. 3 is a block diagram of a system for performance information in accordance with a preferred embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a client for obtaining performance data according to another preferred embodiment of the present invention;
FIG. 5 is a schematic diagram showing performance data according to another preferred embodiment of the present invention;
fig. 6 is a schematic diagram showing performance data in another preferred embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, a method for monitoring performance data in an embodiment of the present invention is applied to a server, and includes:
101: simulating the operation behavior of a user for accessing a client page, and sending a page access request to a service server to acquire page data from the service server;
102: when monitoring that a request for accessing a page is sent out, determining the time for sending the request for accessing the page;
103: selecting a display point for presenting a page as a monitoring point and determining a color value of the monitoring point based on a preset time period;
104: and when the change of the color value meets a preset condition, determining performance data representing the first visible content rendering time of the page according to the time corresponding to the change and the time sent by the page access request.
Preferably, the simulating the operation behavior of the user accessing the client page, and the sending the request for accessing the page to the service server includes:
acquiring the created user login identification and user login verification information;
sending a login request to the service server, wherein the login request carries the user login identification and user login verification information;
receiving information which is sent by the service server in response to the login request and represents that login authentication passes and identity authentication information;
and sending an access page request to the service server, wherein the access page request carries the identity authentication information so as to acquire page data from the service server.
Preferably, the selecting a display point for presenting a page as a watch point and determining a color value of the watch point based on a preset time period includes:
selecting at least one pixel point from a current viewport for displaying the page as a monitoring point; and when the preset time period is reached, determining the red, green and blue RGB value of each pixel point.
Preferably, the method further comprises:
when each preset time period is reached, determining the color value change rate of each monitoring point and whether each color value change rate is smaller than a preset change rate threshold value;
when the determined times of the color values reach preset times and all the color value change rates within the preset times are smaller than the change rate threshold, executing the step that when the change of the color values meets preset conditions, determining performance data representing the first time of rendering the visual content of the page according to the time corresponding to the change and the time sent by the request for accessing the page;
determining all preset time period duration corresponding to the preset times;
determining a time point corresponding to the last preset time period in the preset times;
wherein determining performance data indicative of a first time of rendering of visual content of a page based on the time corresponding to the change and the time of the request for accessing the page comprises:
determining monitoring time according to a time point corresponding to the last preset time period within the preset times and the time of sending the page access request;
and determining performance data representing the first time of rendering the visual content of the page according to the monitoring time and the duration.
Optionally, the method further comprises:
and when the color value change rate of each monitoring point corresponding to any preset time period within the preset times is greater than the change rate threshold value, taking the current preset time period as the first preset time period within the new preset times, and executing the step of determining the color value change rate of each monitoring point and whether the color value change rate is less than the change rate threshold value or not when each preset time period arrives.
Optionally, the method further comprises:
and sending the performance data representing the rendering time of the first visible content of the page to a data center server so that the data center server performs denoising and storage processing on the performance data and displays the processed performance data.
As shown in fig. 2, a performance information monitoring apparatus according to another embodiment of the present invention is applied to a server, and includes:
the simulation unit 21 is configured to simulate an operation behavior of a user accessing a client page, and send a page access request to the service server, so as to obtain page data from the service server;
the first determining unit 22, when it is monitored that the request for accessing the page is sent out, determining the time for sending the request for accessing the page;
the selection unit 23 selects a display point for presenting a page as a monitoring point and determines a color value of the monitoring point based on a preset time period;
the second determining unit 24 determines, when the change of the color value satisfies a preset condition, performance data indicating the rendering time of the first visible content of the page according to the time corresponding to the change and the time of sending the request for accessing the page.
Preferably, the simulation unit 21 includes:
the acquisition module acquires the created user login identification and the user login verification information;
the first sending module is used for sending a login request to the service server, wherein the login request carries the user login identification and user login verification information;
the receiving module is used for receiving information which is sent by the service server and responds to the login request and represents that the login authentication is passed and identity authentication information;
and the second sending module is used for sending a page access request to the service server, wherein the page access request carries the identity authentication information, so that page data can be obtained from the service server.
Preferably, the selection unit 23 includes:
the selection module is used for selecting at least one pixel point from a current viewport for displaying the page as a monitoring point;
and the determining module is used for determining the red, green and blue RGB value of each pixel point when the preset time period is reached.
Optionally, the apparatus further comprises:
the third determining unit is used for determining the color value change rate of each monitoring point and whether the color value change rate is smaller than a preset change rate threshold value or not when each preset time period is reached;
an executing unit, configured to, when the number of times of determining the color value reaches a preset number of times and all the color value change rates within the preset number of times are smaller than the change rate threshold, execute a step of determining, by the second determining unit 24, performance data representing a first time rendering time of the visual content of the page according to a time corresponding to the change and a time sent by the request to access the page when the change of the color value satisfies a preset condition;
the third determining unit determines all preset time period durations corresponding to the preset times; determining a time point corresponding to the last preset time period in the preset times;
wherein the second determining unit 24 includes:
the first determining module is used for determining monitoring time according to a time point corresponding to the last preset time period in the preset times and the time of sending the page access request;
and the second determining module is used for determining performance data representing the rendering time of the first visible content of the page according to the monitoring time and the duration.
Optionally, the apparatus further comprises:
and a returning unit, wherein when the color value change rate of each monitoring point corresponding to any preset time period within the preset times is greater than the change rate threshold, the current preset time period is taken as the first preset time period within the new preset times, and a third determining unit executes the step of determining the color value change rate of each monitoring point and whether the color value change rate is less than the change rate threshold when each preset time period arrives.
Optionally, the apparatus further comprises:
and the sending unit is used for sending the performance data representing the rendering time of the first visual content of the page to a data center server so that the data center server performs denoising and storage processing on the performance data representing the rendering time of the first visual content of the page and displays the processed performance data.
As shown in fig. 3, a system for monitoring performance information according to another embodiment of the present invention includes: monitoring a server (such as a data processing module in fig. 3), a data center server (such as a data center in fig. 3) and a service server;
the monitoring server simulates the operation behavior of a user accessing a client page, and sends a page access request to the service server so as to acquire page data from the service server; when monitoring that a request for accessing a page is sent out, determining the time for sending the request for accessing the page; selecting a display point for presenting a page as a monitoring point and determining a color value of the monitoring point based on a preset time period; when the change of the color value meets a preset condition, determining performance data representing the first visible content rendering time of the page according to the time corresponding to the change and the time sent by the page access request;
the data center server receives the performance data which is sent by the monitoring server and represents the rendering time of the first visual content of the page, performs denoising and storage processing on the performance data which represents the rendering time of the first visual content of the page, and displays the processed performance data;
and the business server receives the access request sent by the monitoring server and responds to the access request to send page data to the monitoring server.
Preferably, the monitoring system may further include a client (e.g., a front end machine in fig. 3);
the client acquires performance data of a computing device running the client and determines performance data representing a page frame change rate when monitoring a page loading event.
Preferably, the client acquires data carried in an access request sent to the service server; and acquiring performance data of the computing equipment from the carrying data.
Preferably, the client determines a continuous refreshing time of the page frame; and determining performance data representing the page picture change rate according to the continuous refreshing time.
Preferably, the client generates a log according to performance data of a computing device running the client and performance data determining a page screen change rate; and sending the log to a log system server so that the log system server (such as the log system in fig. 3) sends the log to a log processing server (such as a log processing module in fig. 3) for processing, and the data center server stores and displays the processed log.
The technical scheme of the embodiment of the invention has the following beneficial effects: by simulating the operation behavior of a user for accessing a client page, when a request for accessing the page is monitored to be sent, the sending time of the request is determined; selecting a display point for presenting a page as a monitoring point and determining a color value of the monitoring point based on a preset time period; when the change of the color value meets the preset condition, the performance data representing the first time visual content rendering time of the page is determined according to the time corresponding to the change and the time sent by the request, so that the real performance data can be obtained without depending on a browser client, if the performance data representing the first time visual content rendering time of the page is obtained, the performance data does not need to occupy the time of a user, and the experience of the user for using the client is improved.
The above technical solutions of the embodiments of the present invention are described in detail below with reference to application examples:
the application example of the invention aims to obtain the required performance data without influencing the use experience of the user.
As shown in fig. 1, for example, a monitoring tool or a monitoring tool integrated with a first screen acquisition function is deployed to each IDC (Internet Data Center) of a company, for example, beijing mobile IDC, beijing unicom IDC, the monitoring tool modifies a web browser under a server command line in the IDC, automatically logs in a specified website, such as a microblog website, through the web browser under the server command line, and performs user login through an acquired user password and a user ID, after the login is successful, microblog web page Data can be acquired from a microblog server and displayed on the microblog web page Data, when the user logs in successfully and displays the microblog page of the user, the user's first page is clicked, and when the monitoring tool monitors that the access address is the microblog page address, that is, the access address changes, that is, an access request is issued, and timing is started, the current timing time can be actual time or 0, at least one pixel point is selected as a monitoring point, the red, green and blue (RGB) value of the detection point is detected every other preset time period, such as 250ms, when the continuous preset times, such as 12 times, change of each time is smaller than a threshold value, such as 15%, the monitoring is finished (namely the preset condition is met), the duration of the detected red, green and blue (RGB) value and the time point corresponding to the red, green and blue (RGB) value of the 12 th time are determined, the difference value between the time point of the red, green and blue (RGB) value of the 12 th time and the starting timing is determined, and the first screen time is the difference value between the difference value and the duration.
And the performance data representing the rendering time of the first visible content of the page is the first screen time.
The display points are pixel points.
It should be understood that logging into a website in a server simulates the user's operational behavior.
It should be noted that the user password and the user ID may be manually created and stored in a local preset storage area of the server, so that the monitoring tool can call the user password and the user ID.
In a preferred embodiment, step 101 simulates the operation behavior of a user accessing a client page, and sends a request for accessing the page to a service server, including: acquiring the created user login identification and user login verification information; sending a login request to the service server, wherein the login request carries the user login identification and user login verification information; receiving information which is sent by the service server in response to the login request and represents that login authentication passes and identity authentication information; and sending an access page request to the service server, wherein the access page request carries the identity authentication information so as to acquire page data from the service server.
Wherein, the user login identification is a user ID.
The user login authentication information is a user password.
For example, according to the foregoing, a user ID and a user password of a microblog website may be created by a client, and stored in a preset storage area of a server local, the server obtains the created user ID and the created user password to log in the microblog website, sends a login request to a microblog server, that is, a service server, where the request carries the user ID and the user password, receives login-passing information and authentication information token sent by the microblog server, sends a microblog home page access page request to the microblog server, and carries the authentication information token, thereby obtaining home page data of the microblog server.
In a preferred embodiment, step 103: the selecting a display point for presenting a page as a monitoring point and determining a color value of the monitoring point based on a preset time period includes: selecting at least one pixel point from a current viewport for displaying the page as a monitoring point; and when the preset time period is reached, determining the red, green and blue RGB value of each pixel point.
For example, according to the foregoing, at least one pixel point is selected from the view port displaying the microblog home page as a monitoring point, and the selection principle may be that several nodes are selected for the long edge and the wide edge of the view port, the nodes corresponding to the two long edges are connected, the nodes corresponding to the two wide edges are connected, and an intersection point of two lines of the nodes of the long edge and the wide edge is determined, where the intersection point is a pixel point, and one node, that is, a pixel point, can be selected on the long edge or the wide edge by every 120 pixel points.
It should be understood that the viewport displays the page through the pixel points, that is, the viewport should correspond to the viewport area formed by the pixel points, when selecting the node, it is to select the edge pixel point, and finally determine the pixel point to be monitored.
In a preferred embodiment, the method further comprises: when each preset time period is reached, determining the color value change rate of each monitoring point and whether each color value change rate is smaller than a preset change rate threshold value; when the determined times of the color values reach preset times and all the color value change rates within the preset times are smaller than the change rate threshold, executing the step that when the change of the color values meets preset conditions, determining performance data representing the first time of rendering the visual content of the page according to the time corresponding to the change and the time sent by the request for accessing the page; determining all preset time period duration corresponding to the preset times; determining a time point corresponding to the last preset time period in the preset times; wherein determining performance data indicative of a first time of rendering of visual content of a page based on the time corresponding to the change and the time of the request for accessing the page comprises: determining monitoring time according to a time point corresponding to the last preset time period within the preset times and the time of sending the page access request; and determining performance data representing the first time of rendering the visual content of the page according to the monitoring time and the duration.
For example, according to the foregoing, after the monitoring point is selected, the RGB value of each monitored pixel point is determined every 250ms, the change rate of each pixel point is determined, after 12 times of preset monitoring are completed, and it is determined that the change of the RGB value of each monitored point in the 12 times is within 15% of the threshold, the monitoring is stopped, the monitoring duration of the 12 times is determined, that is, 12 × 250ms is 3s, and the time point corresponding to the RGB value of each pixel point monitored last time is determined, for example, 18s, and the time requested to be sent is 13s, the monitoring time is 18s-13s is 5s, and the first screen time is 5s-3s is 2 s.
In a preferred embodiment, the method further comprises: and when the color value change rate of each monitoring point corresponding to any preset time period within the preset times is greater than the change rate threshold value, taking the current preset time period as the first preset time period within the new preset times, and executing the step of determining the color value change rate of each monitoring point and whether the color value change rate is less than the change rate threshold value or not when each preset time period arrives.
For example, according to the foregoing, when there is one of the 12 times, for example, when the RGB value of each pixel point is monitored for the 6 th time, the RGB value of one monitoring point for the 6 th time is more than 15% or equal to 15% of the change of the RGB value of the monitoring point for the 5 th time, the 6 th time is used as the first monitoring in the new monitoring, and the subsequent 11 times of monitoring are continued, that is, monitoring is performed again until the change of the RGB value of each monitoring is less than 15% for the 12 continuous times of monitoring in the new monitoring.
In a preferred embodiment, the method further comprises: and sending the performance data representing the rendering time of the first visible content of the page to a data center server, so that the data center server performs denoising processing on the performance data, stores the processed performance data, and displays the processed performance data.
For example, according to the foregoing, by deploying the timing monitoring script in the IDC room server, the page rendering performance raw data at the first screen time is collected and reported to the data center, that is, the data center server; and acquiring original data of page rendering performance including the number of rendered DOMs and the first rendering time, and reporting the data to a data center, namely a data center server. The data center collects various reported data, and makes persistence (namely storage) processing on the denoised data in a database DB for the display of a front-end module. The front-end module mainly provides an http service. The data center sends the processed data to the front-end device through http communication, for example, a client arranged on the front-end computing device displays the processed data monitored by the relevant personnel through the client, as shown in fig. 5, and when the processed data does not meet a preset data value standard, alarm information can be sent to the client through http communication to inform the relevant personnel, so that the relevant personnel can process and repair the problem.
By adopting the technical scheme of interface-free non-invasive, developers can automatically acquire the first screen time of the page through configuration, so that the developers can visually check the development page.
In addition, for packet loss and delay under different network environments in actual user scenes, a speed-limiting network agent can be configured in each machine room according to needs.
The embodiment of the present invention provides a performance data monitoring apparatus, which can implement the method embodiment provided above, and for specific function implementation, reference is made to the description in the method embodiment, which is not repeated herein.
As shown in fig. 3, the monitoring system includes a monitoring server (e.g., the data processing module in fig. 3), a data center server (e.g., the data center in fig. 3), and a service server; for specific function implementation, please refer to the description in the method embodiment, which is not described herein again, and for specific function implementation of a data center server (e.g., the data center in fig. 3) and a service server, please refer to the description in the method embodiment, which is not described herein again.
As shown in fig. 4, for faster loading of the monitoring method, the client adds a pre-script, i.e. an upload script, to the header of the HXML page, so as to monitor various event changes of the browser client; after a user acquires the HXML page through the browser client, after the page is loaded, the pre-script loads the core processing module, and the core processing module dynamically and asynchronously loads detection plug-ins, such as a performance plug-in, an FPS (frame Per second) frame rate plug-in and a log reporting plug-in, which are required by a system, so that the extra loading loss of the page is reduced to the minimum, and the influence of the intrusion monitoring on the page loading speed is reduced to the minimum.
When a page load event is monitored, performance data of a computing device running the client is acquired and performance data representing a rate of change of a page frame is determined.
In a preferred embodiment, the client acquires the carried data in the access request; and acquiring performance data of the computing equipment from the carrying data.
The performance data of the computing device running the client may be a computing device identifier, such as a model number, network environment data, such as a 4G network, and the like.
For example, according to the foregoing, after the performance plug-in operates, the data carried in the access request may be acquired from the pre-script, when an http access request is sent, the pre-script monitors the access request and acquires the model of the mobile terminal and the network environment data carried in the access request, and the performance plug-in receives the model of the mobile terminal and the network environment data sent by the pre-script.
In a preferred embodiment, the client determines the continuous refreshing time and the continuous refreshing times of the page frame; and determining performance data representing the page picture change rate according to the continuous refreshing time and the continuous refreshing times.
For example, according to the foregoing, after the FPS plug-in operates, the continuous refresh time of the page screen can be determined by monitoring the operation time and the operation time of the function or interface for rendering the page screen, and the frame number in one second (i.e., the frame number in one second can be calculated by determining the time difference between two adjacent renderings) can be determined according to the determined continuous refresh time and the continuous refresh time.
It should be understood that refreshing a page frame represents one frame.
In a preferred embodiment, the client generates a log based on performance data of a computing device running the client 301 and performance data that determines a rate of change of a page view; and sending the log to a log system server so that the log system server sends the log to a log processing server for processing, and a data center server stores and displays the processed log.
For example, according to the foregoing, the performance plug-in and the FPS plug-in send the respective determined performance data to the log reporting plug-in of the front-end machine, the log reporting plug-in generates a log, where the log may include the model of the mobile terminal, network environment data, and frame rate, and the like, the front-end machine, i.e., the client, sends the log to the log system server, and the log system server sends the log to the log processing server, i.e., the log processing module, performs classification processing and deduplication processing on the log, and sends the processed log to the data center, i.e., the data center server, for storage, so as to be displayed and used by the front-end module. The front-end module mainly provides an http service. The data center sends the processed data to the front-end device through http communication, for example, a client arranged on the front-end computing device displays the processed data monitored by the relevant personnel through the client, as shown in fig. 6, and when the processed data does not meet a preset data value standard, alarm information can be sent to the client through http communication to inform the relevant personnel, so that the relevant personnel can process and repair the problem.
It should be understood that the specific order or hierarchy of steps in the processes disclosed is an example of exemplary approaches. Based upon design preferences, it is understood that the specific order or hierarchy of steps in the processes may be rearranged without departing from the scope of the present disclosure. The accompanying method claims present elements of the various steps in a sample order, and are not intended to be limited to the specific order or hierarchy presented.
In the foregoing detailed description, various features are grouped together in a single embodiment for the purpose of streamlining the disclosure. This method of disclosure is not to be interpreted as reflecting an intention that the claimed embodiments of the subject matter require more features than are expressly recited in each claim. Rather, as the following claims reflect, invention lies in less than all features of a single disclosed embodiment. Thus, the following claims are hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate preferred embodiment of the invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. To those skilled in the art; various modifications to these embodiments will be readily apparent, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
What has been described above includes examples of one or more embodiments. It is, of course, not possible to describe every conceivable combination of components or methodologies for purposes of describing the aforementioned embodiments, but one of ordinary skill in the art may recognize that many further combinations and permutations of various embodiments are possible. Accordingly, the embodiments described herein are intended to embrace all such alterations, modifications and variations that fall within the scope of the appended claims. Furthermore, to the extent that the term "includes" is used in either the detailed description or the claims, such term is intended to be inclusive in a manner similar to the term "comprising" as "comprising" is interpreted when employed as a transitional word in a claim. Furthermore, any use of the term "or" in the specification of the claims is intended to mean a "non-exclusive or".
Those of skill in the art will further appreciate that the various illustrative logical blocks, units, and steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate the interchangeability of hardware and software, various illustrative components, elements, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design requirements of the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present embodiments.
The various illustrative logical blocks, or elements, described in connection with the embodiments disclosed herein may be implemented or performed with a general purpose processor, a digital signal processor, an Application Specific Integrated Circuit (ASIC), a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general-purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a digital signal processor core, or any other similar configuration.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. For example, a storage medium may be coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC, which may be located in a user terminal. In the alternative, the processor and the storage medium may reside in different components in a user terminal.
In one or more exemplary designs, the functions described above in connection with the embodiments of the invention may be implemented in hardware, software, firmware, or any combination of the three. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media that facilitate transfer of a computer program from one place to another. Storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, such computer-readable media can include, but is not limited to, RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to carry or store program code in the form of instructions or data structures and which can be read by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Additionally, any connection is properly termed a computer-readable medium, and, thus, is included if the software is transmitted from a website, server, or other remote source via a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wirelessly, e.g., infrared, radio, and microwave. Such discs (disk) and disks (disc) include compact disks, laser disks, optical disks, DVDs, floppy disks and blu-ray disks where disks usually reproduce data magnetically, while disks usually reproduce data optically with lasers. Combinations of the above may also be included in the computer-readable medium.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (11)

1. A method for monitoring performance data is applied to a server side and comprises the following steps:
simulating the operation behavior of a user for accessing a client page, and sending a page access request to a service server to acquire page data;
when the request for accessing the page is monitored to be sent out, determining the time for sending the request for accessing the page;
selecting a display point for presenting a page as a monitoring point and determining a color value of the monitoring point based on a preset time period;
when the change of the color value meets a preset condition, determining performance data representing the first visible content rendering time of the page according to the time corresponding to the change and the time sent by the page access request;
when each preset time period is reached, determining the color value change rate of each monitoring point and whether each color value change rate is smaller than a preset change rate threshold value;
when the determined times of the color values reach preset times and all the color value change rates within the preset times are smaller than the change rate threshold, executing the step that when the change of the color values meets preset conditions, determining performance data representing the first time of rendering the visual content of the page according to the time corresponding to the change and the time sent by the request for accessing the page;
determining all preset time period duration corresponding to the preset times;
determining a time point corresponding to the last preset time period in the preset times;
wherein determining performance data indicative of a first time of rendering of visual content of a page based on the time corresponding to the change and the time of the request for accessing the page comprises:
determining monitoring time according to a time point corresponding to the last preset time period within the preset times and the time of sending the page access request;
and determining performance data representing the first time of rendering the visual content of the page according to the monitoring time and the duration.
2. The method of claim 1, wherein the simulating the operation behavior of the user accessing the client page and sending the access page request to the service server comprises:
acquiring the created user login identification and user login verification information;
sending a login request to the service server, wherein the login request carries the user login identification and user login verification information;
receiving information which is sent by the service server and responds to the login request and represents that login authentication passes and identity authentication information;
and sending the access page request to the service server, wherein the access page request carries the identity authentication information so as to acquire page data from the service server.
3. The method of claim 1, wherein selecting a presentation point for rendering a page as a watch point and determining a color value for the watch point based on a preset time period comprises:
selecting at least one pixel point from a current viewport for displaying the page as a monitoring point;
and when the preset time period is reached, determining the red, green and blue RGB value of each pixel point.
4. The method of claim 1, further comprising:
and when the color value change rate of each monitoring point corresponding to any preset time period within the preset times is larger than the change rate threshold, taking the current preset time period as the first preset time period within the new preset times, and executing the step of determining the color value change rate of each monitoring point and whether the color value change rate is smaller than the change rate threshold when each preset time period arrives.
5. The method of claim 1, further comprising:
and sending the performance data representing the rendering time of the first visible content of the page to a data center server so that the data center server performs denoising and storage processing on the performance data and displays the processed performance data.
6. A system for monitoring performance information, comprising: the system comprises a monitoring server, a data center server and a service server;
the monitoring server simulates the operation behavior of a user accessing a client page, and sends a page access request to the service server so as to acquire page data from the service server; when monitoring that a request for accessing a page is sent out, determining the time for sending the request for accessing the page; selecting a display point for presenting a page as a monitoring point and determining a color value of the monitoring point based on a preset time period; when the change of the color value meets a preset condition, determining performance data representing the first visible content rendering time of the page according to the time corresponding to the change and the time sent by the page access request;
the monitoring server further determines the color value change rate of each monitoring point and whether the color value change rate is smaller than a preset change rate threshold value when each preset time period is reached; when the determined times of the color values reach preset times and all the color value change rates within the preset times are smaller than the change rate threshold, executing the step that when the change of the color values meets preset conditions, determining performance data representing the first time of rendering the visual content of the page according to the time corresponding to the change and the time sent by the request for accessing the page; and
determining all preset time period duration corresponding to the preset times; determining a time point corresponding to the last preset time period in the preset times; wherein determining performance data indicative of a first time of rendering of visual content of a page based on the time corresponding to the change and the time of the request for accessing the page comprises: determining monitoring time according to a time point corresponding to the last preset time period within the preset times and the time of sending the page access request; determining performance data representing the first time of rendering the visual content of the page according to the monitoring time and the duration;
the data center server receives the performance data which is sent by the monitoring server and represents the rendering time of the first visual content of the page, carries out denoising and storage processing on the performance data which represents the rendering time of the first visual content of the page, and displays the processed performance data;
and the business server receives the access request sent by the monitoring server and responds to the access request to send page data to the monitoring server.
7. The utility model provides a monitoring devices of performance information, its characterized in that uses at the server end, includes:
the simulation unit is used for simulating the operation behavior of a user for accessing a client page and sending a page access request to the service server so as to acquire page data from the service server;
the first determining unit is used for determining the sending time of the access page request when the sending of the access page request is monitored;
the display device comprises a selection unit, a display unit and a display unit, wherein the selection unit is used for selecting a display point for displaying a page as a monitoring point and determining a color value of the monitoring point based on a preset time period;
the second determining unit is used for determining performance data representing the rendering time of the first visible content of the page according to the time corresponding to the change and the time sent by the page access request when the change of the color value meets the preset condition;
the apparatus further comprises:
the third determining unit is used for determining the color value change rate of each monitoring point and whether the color value change rate is smaller than a preset change rate threshold value or not when each preset time period is reached;
an execution unit, configured to, when the number of determinations of the color value reaches a preset number and when all color value change rates within the preset number are smaller than the change rate threshold, execute a step of determining, when a change in the color value satisfies a preset condition, performance data representing a first time rendering time of the visual content of the page according to a time corresponding to the change and a time sent by the request to access the page;
the third determining unit determines all preset time period durations corresponding to the preset times; determining a time point corresponding to the last preset time period in the preset times;
wherein the second determining unit includes:
the first determining module is used for determining monitoring time according to a time point corresponding to the last preset time period in the preset times and the time of sending the page access request;
and the second determining module is used for determining performance data representing the rendering time of the first visible content of the page according to the monitoring time and the duration.
8. The apparatus of claim 7, wherein the analog unit comprises:
the acquisition module acquires the created user login identification and the user login verification information;
the first sending module is used for sending a login request to the service server, wherein the login request carries the user login identification and user login verification information;
the receiving module is used for receiving information which is sent by the service server and responds to the login request and represents that login authentication passes and identity authentication information;
and the second sending module is used for sending the access page request to the service server, wherein the access page request carries the identity authentication information so as to acquire page data from the service server.
9. The apparatus of claim 7, wherein the selection unit comprises:
the selection module is used for selecting at least one pixel point from a current viewport for displaying the page as a monitoring point;
and the determining module is used for determining the red, green and blue RGB value of each pixel point when the preset time period is reached.
10. The apparatus of claim 7, further comprising:
and a returning unit, wherein when the color value change rate of each monitoring point corresponding to any preset time period within the preset times is greater than the change rate threshold, the current preset time period is taken as the first preset time period within the new preset times, and a third determining unit executes the step of determining the color value change rate of each monitoring point and whether the color value change rate is less than the change rate threshold when each preset time period arrives.
11. The apparatus of claim 7, further comprising:
and the sending unit is used for sending the performance data representing the rendering time of the first visual content of the page to a data center server so that the data center server performs denoising and storage processing on the performance data representing the rendering time of the first visual content of the page and displays the processed performance data.
CN201810935623.6A 2018-08-16 2018-08-16 Method, system and device for monitoring performance data Active CN109271600B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810935623.6A CN109271600B (en) 2018-08-16 2018-08-16 Method, system and device for monitoring performance data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810935623.6A CN109271600B (en) 2018-08-16 2018-08-16 Method, system and device for monitoring performance data

Publications (2)

Publication Number Publication Date
CN109271600A CN109271600A (en) 2019-01-25
CN109271600B true CN109271600B (en) 2022-02-22

Family

ID=65153918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810935623.6A Active CN109271600B (en) 2018-08-16 2018-08-16 Method, system and device for monitoring performance data

Country Status (1)

Country Link
CN (1) CN109271600B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110688282B (en) * 2019-09-25 2023-01-24 北京博睿宏远数据科技股份有限公司 Webpage performance data monitoring and monitoring task distribution method and device
CN111611514B (en) * 2020-04-11 2024-04-23 上海淇玥信息技术有限公司 Page display method and device based on user login information and electronic equipment
CN111782464B (en) * 2020-06-22 2024-04-26 北京异乡旅行网络科技有限公司 Webpage dynamic anomaly monitoring method and system
CN112631906A (en) * 2020-12-18 2021-04-09 湖南映客互娱网络信息有限公司 Page performance detection method and system based on server
CN113569168A (en) * 2021-06-17 2021-10-29 北京健康之家科技有限公司 Page performance data generation method and device, computer storage medium and terminal

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7519702B1 (en) * 2000-08-10 2009-04-14 International Business Machines Corporation Method and apparatus for measuring web site performance
CN102479151B (en) * 2010-11-26 2014-10-22 腾讯科技(深圳)有限公司 Testing method and device of webpage access speed
US8644623B2 (en) * 2011-11-16 2014-02-04 Microsoft Corporation Measuring web page rendering time
CN102830972A (en) * 2012-08-14 2012-12-19 管重 Multi-webpage browsing device of internet browser
CN103324521A (en) * 2013-06-20 2013-09-25 张家港保税区润桐电子技术研发有限公司 Method for measuring initial screen time of webpage
CN103559222B (en) * 2013-10-18 2017-04-12 北京奇虎科技有限公司 Method and device for displaying page loading time in browsers
CN104899336B (en) * 2015-07-01 2018-05-22 北京博睿宏远数据科技股份有限公司 It is a kind of to measure the first method for shielding complete render time of webpage
US10044576B2 (en) * 2015-11-25 2018-08-07 Qualcomm Incorporated Estimation of power consumption of individual websites
CN107885645B (en) * 2017-10-31 2020-06-23 阿里巴巴集团控股有限公司 Method and device for calculating rendering duration of first screen of page and electronic equipment

Also Published As

Publication number Publication date
CN109271600A (en) 2019-01-25

Similar Documents

Publication Publication Date Title
CN109271600B (en) Method, system and device for monitoring performance data
CN108721898B (en) Frame rate determination method and apparatus, storage medium, and electronic apparatus
CN108965950B (en) Advertisement monitoring method and device
US20140130053A1 (en) Data processing method, apparatus and mobile terminal
US9740668B1 (en) Plotting webpage loading speeds and altering webpages and a service based on latency and pixel density
CN108234472A (en) Detection method and device, computer equipment and the readable medium of Challenging black hole attack
CN109344044B (en) Method and system for calculating rendering time of first screen of page
CN113765873B (en) Method and device for detecting abnormal access traffic
CN110401580A (en) Webpage status monitoring method and relevant device based on heartbeat mechanism
CN113037562A (en) Gateway fault assessment method and device and server
CN115396705A (en) Screen projection operation verification method, platform and system
WO2017206893A1 (en) Interface refresh synchronization method and apparatus, terminal, and storage medium
CN113296666A (en) Anchor exposure data reporting method and device, terminal equipment and storage medium
CN110806909A (en) Method and device for determining page frame dropping information of application program and electronic equipment
CN110286954A (en) A kind of the starting method, apparatus and storage medium of application program
CN110209539B (en) Test method, terminal equipment and tester
CN113473116B (en) Live broadcast quality monitoring method, device and medium
CN114741266A (en) Page white screen duration determining method and device, electronic equipment and storage medium
CN114281449A (en) Building visual display processing method and related equipment
CN113923485A (en) Method and device for adjusting code rate and computer readable storage medium
CN113856204A (en) Cloud game data decoding method and device, electronic equipment and storage medium
CN113760678A (en) Statistical method and device for page rendering duration
KR20220099016A (en) Electronic apparatus and controlling method thereof
CN112269741A (en) Application program compatibility testing method and related equipment
CN110879733B (en) Detection method, device, terminal and computer readable storage medium for electronic red envelope

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