CN107391518A - Count system, the method and device of page load performance information - Google Patents

Count system, the method and device of page load performance information Download PDF

Info

Publication number
CN107391518A
CN107391518A CN201610332934.4A CN201610332934A CN107391518A CN 107391518 A CN107391518 A CN 107391518A CN 201610332934 A CN201610332934 A CN 201610332934A CN 107391518 A CN107391518 A CN 107391518A
Authority
CN
China
Prior art keywords
loading
information
page
terminal
stage
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
Application number
CN201610332934.4A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610332934.4A priority Critical patent/CN107391518A/en
Publication of CN107391518A publication Critical patent/CN107391518A/en
Pending legal-status Critical Current

Links

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/3452Performance evaluation by statistical analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

The present invention is on a kind of system, method and device for counting page load performance, belongs to data statistics field.Methods described includes:Terminal is when loading specified page, obtain load time information, the load time information is sent to server, the load time information that at least one terminal including the terminal is each sent is counted by the server, obtain the loading performance information of the specified page, the statistical result of the program can indicate each stage respective duration information during the entire process of a page loading, so that statistical information more horn of plenty, solve prior art and only count the total time-consuming that since the page terminate loading to loading every time, the problem of information of statistics is more single, reach the purpose for the statistics effect for improving page load performance information.

Description

Count system, the method and device of page load performance information
Technical field
The present invention relates to data statistics field, more particularly to a kind of system for counting page load performance information, Method and device.
Background technology
With the continuous development of network technology, increasing web application is developed for user's use, and The page load performance of web application is then that developer usually requires pair an important factor for influenceing Consumer's Experience The page load performance of the page is counted, to judge whether to need to optimize the page.
In the prior art, when terminal opens a page every time, the page can be obtained and start to load the moment Timestamp and the page loading terminate timestamp, using the difference between the two timestamps as the page sheet The duration of secondary loading, and this duration loaded reports server by the page.Server collects the page The duration that is loaded every time in each terminal is simultaneously counted, using the average value of the loading duration of the page as The page load performance information of the page, developer have found that the average value of the loading duration of the page exceedes certain During one discreet value, it may be determined that the code of the page is optimized.
During the present invention is realized, it is found by the applicant that there are the following problems for prior art:
Prior art only counts the total time-consuming that since the page terminate loading to loading every time, the information of statistics compared with To be single, statistics effect is poor.
The content of the invention
In order to solve only to count the page in the prior art every time since loading to the total time-consuming of loading end, system The problem of information of meter is more single, the embodiments of the invention provide a kind of statistics page load performance information System, method and device, technical scheme are as follows:
First aspect, there is provided a kind of system for counting page load performance information, the system include:Extremely A few terminal and server;
The terminal, for when loading specified page, obtain load time information, and during by the loading Between information be sent to server, the load time information is used to indicate that the terminal is loading the specific page The duration of at least two loading sub-stages during face;
The server, the load time information each sent for receiving at least one terminal, The load time information that at least one terminal is each sent is counted, obtains the specific page The loading performance information in face, the loading performance information are used to indicate the institute in the specified page loading procedure State the average duration of at least two loading sub-stages.
Second aspect, there is provided a kind of method for counting page load performance information, in server, institute The method of stating includes:
The load time information that at least one terminal is each sent is received, the load time information is used to indicate The duration of at least two loading sub-stages of the corresponding terminal during specified page is loaded;
The load time information each sent at least one terminal counts, and obtains the specific page The loading performance information in face, the loading performance information of the specified page are used to indicate the specified page loading During it is described at least two loading sub-stage average duration.
The third aspect, there is provided a kind of method for counting page load performance information, it is described in terminal Method includes:
When loading specified page, load time information is obtained, the load time information is used to indicate adding Carry the duration of at least two loading sub-stages during the specified page;
The load time information is sent to server, by the server to including the terminal The load time information that at least one terminal is each sent is counted, and obtains adding for the specified page Performance information is carried, the loading performance information of the specified page is used to indicate in the specified page loading procedure It is described at least two loading sub-stage average duration.
Fourth aspect, there is provided a kind of device for counting page load performance information, in server, institute Stating device includes:
First receiving module, the load time information each sent for receiving at least one terminal are described to add Temporal information is carried to be used to indicate at least two loading sub-stages of the corresponding terminal during specified page is loaded Duration;
Statistical module, the load time information for each being sent at least one terminal count, The loading performance information of the specified page is obtained, the loading performance information of the specified page is used to indicate institute State the average duration of at least two loadings sub-stage in specified page loading procedure.
5th aspect, there is provided a kind of device for counting page load performance information, it is described in terminal Device includes:
Second acquisition module, for when loading specified page, load time information is obtained, during the loading Between the durations of at least two loading sub-stages that are used to indicate during the specified page is loaded of information;
Sending module, for the load time information to be sent into server, by the server to including The load time information that at least one terminal including the terminal is each sent is counted, and obtains institute The loading performance information of specified page is stated, the loading performance information of the specified page is used to indicate described specify The average duration of at least two loadings sub-stage in page loading procedure.
Technical scheme provided in an embodiment of the present invention can include the following benefits:
By server receive it is that at least one terminal is sent, for indicating that at least one terminal is loading The duration load time information of at least two loading sub-stages during specified page, to described at least one The load time information that terminal is sent is counted, and is obtained for indicating in the specified page loading procedure The loading performance information of the average duration of at least two loadings sub-stage, the statistical result of the program can be with Each stage respective duration information during the entire process of one page loading of instruction so that statistical information is more It is abundant, solve prior art and only count the total time-consuming that since the page terminate loading to loading every time, statistics Information it is more single the problem of, reach improve page load performance information statistics effect purpose.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, The present invention can not be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows and meets the present invention Embodiment, and together with specification be used for explain the present invention principle.
Fig. 1 is the schematic diagram of implementation environment involved in the present invention;
Fig. 2 is a kind of flow chart of the method for statistics page loading parameter shown in one embodiment of the invention;
Fig. 3 is a kind of flow chart of the method for statistics page loading parameter shown in one embodiment of the invention;
Fig. 4 is a kind of flow chart of the method for statistics page loading parameter shown in one embodiment of the invention;
Fig. 5 is a kind of display schematic diagram for loading performance information that embodiment illustrated in fig. 4 is related to;
Fig. 6 A and Fig. 6 B are the schematic diagrames for another loading performance information that embodiment illustrated in fig. 4 is related to;
Fig. 7 is the display schematic diagram for another the loading performance information that embodiment illustrated in fig. 4 is related to;
Fig. 8 is a kind of block diagram of the device of statistics page loading parameter shown in one embodiment of the invention;
Fig. 9 is a kind of block diagram of the device of statistics page loading parameter shown in another embodiment of the present invention;
Figure 10 is a kind of block diagram of the device of statistics page loading parameter shown in one embodiment of the invention;
Figure 11 is a kind of block diagram of the device of statistics page loading parameter shown in another embodiment of the present invention;
Figure 12 is a kind of structural representation of server shown in one embodiment of the invention;
Figure 13 is a kind of structural representation of terminal shown in one embodiment of the invention.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following retouches State when being related to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element. Embodiment described in following exemplary embodiment does not represent all embodiment party consistent with the present invention Formula.On the contrary, they are only and some aspects phase one being described in detail in such as appended claims, of the invention The example of the apparatus and method of cause.
Fig. 1 is the schematic diagram of implementation environment involved in the present invention.The implementation environment can include:Terminal 110 With server 120.
Terminal 110 is the terminal for having page loading function, such as PC, laptop computer, flat board Computer, mobile phone, E-book reader, MP (Moving Picture Experts Group, dynamic image expert Group) 3/MP4 etc..In this implementation environment, terminal 110 can be that various regions are dispersed in geographical position And the networked devices of unlimited operator.
Server 120 can be a single server, or or by multiple server groups into Service cluster, an or or cloud computing center.
It can be attached between terminal 110 and server 120 by wireless network or cable network, nothing Gauze network includes but is not limited to 2G (2nd-Generation, Generation Mobile Telecommunication System technology), 3G (3rd-Generation, 3rd generation mobile communication technology), 4G (4th-Generation, forth generation mobile communication Technology) or Wi-Fi (Wireless Fidelity, Wireless Fidelity) network.
Below, by taking the implementation environment shown in Fig. 1 as an example, to the technical scheme of the present invention each embodiment offer It is introduced and illustrates.
Fig. 2 is refer to, it illustrates a kind of side of the loading parameter of statistics page shown in one embodiment of the invention The flow chart of method, this method can be used in the server 120 in implementation environment as shown in Figure 1.Such as Fig. 2 Shown, the method for statistics page loading parameter can include the following steps:
Step 201, the load time information that at least one terminal is each sent, the load time information are received For indicating the duration of at least two loading sub-stages of the corresponding terminal during specified page is loaded.
Step 202, the load time information each sent at least one terminal counts, and obtains institute The loading performance information of specified page is stated, the loading performance information of the specified page is used to indicate described specify The average duration of at least two loadings sub-stage in page loading procedure.
In summary, a kind of method for counting page loading parameter provided in an embodiment of the present invention, passes through reception It is that at least one terminal is sent, for indicating at least one terminal during specified page is loaded extremely The duration load time information of few two loadings sub-stage, the load time sent at least one terminal Information is counted, and is obtained for indicating at least two loadings in the specified page loading procedure The loading performance information of the average duration in stage, the statistical result of the program can indicate what a page loaded Each stage respective duration information in whole process so that statistical information more horn of plenty, solve existing skill Art only counts the total time-consuming that since the page terminate loading to loading every time, and the information of statistics is more single to ask Topic, reach the purpose for the statistics effect for improving page load performance information.
Fig. 3 is refer to, it illustrates a kind of side of the loading parameter of statistics page shown in one embodiment of the invention The flow chart of method, this method can be used in the terminal 110 in implementation environment as shown in Figure 1.Such as Fig. 3 Shown, the method for statistics page loading parameter can include the following steps:
Step 301, when loading specified page, load time information is obtained, the load time information is used for Indicate the duration of at least two loading sub-stages during the specified page is loaded.
Step 302, the load time information is sent to server, by the server to including the end The load time information that at least one terminal including end is each sent is counted, and obtains described specify The loading performance information of the page, the loading performance information of the specified page are used to indicate that the specified page adds The average duration of at least two loadings sub-stage during load.
In summary, a kind of method for counting page loading parameter provided in an embodiment of the present invention, passes through acquisition For the load time letter for the duration for indicating at least two loading sub-stages during the specified page is loaded Breath, and the load time information is sent to server, by the server to including the terminal The load time information that each sends of at least one terminal counted, obtain for indicating the finger Determine the loading performance information of the average duration of at least two loadings sub-stage in page loading procedure, should The statistical result of scheme can indicate long letter when each stage is respective during the entire process of the loading of page Breath so that statistical information more horn of plenty, solve prior art and only count the page every time since loading to adding The total time-consuming terminated is carried, the problem of information of statistics is more single, reaches and improves page load performance information Count the purpose of effect.
Fig. 4 is refer to, it illustrates a kind of side of the loading parameter of statistics page shown in one embodiment of the invention The flow chart of method, this method can apply in implementation environment as shown in Figure 1.As shown in figure 4, with this Method is applied to being opened based on Html (HyperText Markup Language, HTML) 5 Exemplified by the page load performance information of the specified page of hair is counted, the statistics page load performance information Method can include the following steps:
Step 401, when loading specified page, terminal obtains the specified page by performance api The start time point of each loading sub-stage and end time at least two loading sub-stages of loading procedure Point.
Wherein, above-mentioned at least two loadings sub-stage can include:Domain name system DNS resolution phase, transmission In control protocol TCP access phases, first byte load phase, resource downloading stage and page rendering stage At least two.In actual applications, above-mentioned each loading sub-stage can also further be divided.
In embodiments of the present invention, web application is installed in terminal, and after opening performance monitoring function, terminal When opening specified page, the javascript sdk in terminal (open by Software Development Kit, software Hair kit) onload events (event can be directed in the global action scope setting one of current page execution The event that triggers when page loading is completed) call back function, when onload events triggers, triggering calling Html5 performance parameter interface (performance api) come obtain it is each loading sub-stage start time point With end time point.
For example, 5 sub-stages are divided into the whole process for loading specified page:Domain name system (Domain Name System, DNS) resolution phase, TCP (Transmission Control Protocol, transmission control Agreement) exemplified by access phase, first byte load phase, resource downloading stage and page rendering stage, terminal After the onload events that specified page loading is completed are detected, referred to by calling performance api to obtain Determine the respective start time point of above-mentioned 5 sub-stages in page loading procedure and end time point.
Step 402, for the start time point and end time point of each loading sub-stage, terminal is by institute The time difference stated between the start time point and end time point of loading sub-stage is retrieved as the loading sub-stage Duration.
For example exemplified by obtaining the duration in dns resolution stage, terminal passes through performance api specific pages The start time point (time1) and end time point (time2) in the dns resolution stage in the loading procedure of face Afterwards, the duration using the difference between time1 and time2 as the dns resolution stage.
Terminal can play this after the start time point and end time point in obtaining each loading sub-stage It is poor that time point beginning and the end time point are made, and the obtained time difference is the duration that the loading sub-stage is consumed. Such as five loading start time points of sub-stage, end time point and each loading sub-stage consumption Duration is as shown in table 1.Wherein, loading sub-stage is respectively:Sub-stage 1, sub-stage 2, sub-stage 3, Sub-stage 4 and sub-stage 5;The start time point of sub-stage 1 is with A1To represent, the end time, point was with A2Come Represent, the start time point of sub-stage 2 is with B1To represent, the end time, point was with B2To represent, sub-stage 3 Start time point with C1To represent, the end time, point was with C2To represent, the start time point of sub-stage 4 with D1To represent, the end time, point was with D2To represent, the start time point of sub-stage 5 is with E1To represent, knot Beam time point is with E2To represent, the consumption duration of each loading sub-stage see the table below the corresponding relation in 1.
Load sub-stage Sub-stage 1 Sub-stage 2 Sub-stage 3 Sub-stage 4 Sub-stage 5
Start time point A1 B1 C1 D1 E1
End time point A2 B2 C2 D2 E2
Consume duration A2-A1 B2-B1 C2-C1 D2-D1 E2-E1
Table 1
Step 403, terminal loads each loading duration for loading sub-stage in sub-stages using at least two and is used as this The load time information of specified page is sent to server.
In embodiments of the present invention, of each sub-stage of the terminal in specified page loading procedure is got Begin after time point and end time point, calculate the consumption duration of each sub-stage, and by each sub-stage Consumption duration is sent to server as the load events information of the specified page.
Or in alternatively possible implementation, terminal can also load getting specified page After the start time point and end time point of each sub-stage in journey, directly by the starting of each sub-stage Time point and end time point are sent to server as the load events information of the specified page, by server Calculate the consumption duration of above-mentioned each sub-stage.
Optionally, when terminal to server sends load time information, existing access protocol word can be passed through The extended field (ext fields) of section, above-mentioned load time information is reported to by the way that the img of 1 pixel is asynchronous Server.
Step 404, server receives what at least one terminal was each sent, the load time letter of the specified page Breath.
For server, it wants the load time information that the numerous terminal of statistical magnitude is sent, each Load time information is used to indicate corresponding at least two loadings of the terminal during the specified page is loaded The duration of sub-stage, when being configured to server statistics strategy, it can set and which loading specifically counted Sub-stage.For example, statistics domain name system DNS resolution phase, transmission control protocol TCP connection can be set This five sub-stages of stage, first byte load phase, resource downloading stage and page rendering stage, server The load time information that the terminal that receives every time is sent be required to the consumption duration comprising five sub-stages or Beginning and ending time point, if the load time information for having terminal to send has lacked some stage in 5 sub-stages Consumption duration or beginning and ending time point, then server think that this information is imperfect, abandon this information simultaneously It is not counted.
Server obtains each terminal and opens what is sent during specified page every time, is loaded corresponding to the specified page After temporal information, the load time information that at least one terminal is sent can be counted, be somebody's turn to do The loading performance information of specified page, the loading performance information of the specified page can serve to indicate that the specific page The average duration of at least two loading sub-stages in the loading procedure of face.The statistic procedure can be it is periodic, For example, server can every other day or a week statistics once.Or terminal can also receive Some is counted in real time when specifying, such as, issued when server receives developer by operation interface , during the instruction of query statistic result, each terminal is sent, the load time information of the specified page Carry out real-time statistics.Wherein, server statistics obtain the step of loading performance information of the specified page can be with If following step 405 is to shown in step 407.
Step 405, server obtains at least one each self-corresponding categorical attribute of terminal.
Server sends each self-corresponding categorical attribute of at least one terminal of acquisition of information to come by terminal. The categorical attribute includes:In operator, ownership place, operating system, browser version and network environment It is at least one.
For example server can obtain the operating system of terminal and browse from User-Agent (user agent) Device version information;Server can obtain the IP (Internet of terminal from server variable remote_addr Protocol, procotol) address, and then, operator and ownership place can be obtained by the IP address of terminal; Server can also learn that terminal carries out Radio Link chain with server according to the network environment mark that terminal reports The network environment connect, wherein, network environment can be corresponding to 2G, 3G, 4G or WiFi communication technology Network environment.
Optionally, the loading can also be obtained for a load time information of specified page, the server User corresponding to temporal information identifies, such as, the http header that server can be sent by terminal are (super literary This host-host protocol header) in obtain mark uv (unique visitor, independent visitor) cookies (browse Device caches) the corresponding user of load time information that each terminal sends is identified, then statistical iteration is visited The quantity of visitor.
Step 406, server is each spontaneous at least one terminal according to the categorical attribute of load time information The load time information sent is grouped, and obtains at least one information group, and each described information group is corresponding a kind of Categorical attribute.
The load time information that server is each sent according to categorical attribute at least one terminal is grouped When, it can be grouped, can also be grouped according to multiple attributes according to single attribute.For example, by single When one " operator " attribute is grouped, the information groups such as " telecommunications ", " movement ", " Netcom " can be grouped into, When being grouped by single " ownership place " attribute, the letter such as " Guangdong ", " Sichuan ", " Beijing " can be grouped into Breath group.Or " Guangdong electricity when being grouped by " operator+ownership place " two attributes, can be grouped into Letter ", " Sichuan telecommunications ", " Beijing Telecom ", " Guangdong movement ", " Sichuan movement ", " Beijing movement ", " Guangdong The information group such as Netcom ", " Sichuan Netcom ", " Beijing Netcom ".Similar, server can also be according to three points Generic attribute, four categorical attributes or five categorical attributes are grouped.
For each load time information, server can belong to according to classifying corresponding to the load time information Property, the load time information is divided into corresponding information group, such as, with according to " ownership place ", " operator " And exemplified by " ownership place+operator " is grouped, categorical attribute Jiangsu corresponding to certain load time information and Telecommunications, then server the load time information can be divided to " Jiangsu ", " telecommunications " and " Jiangsu Telecom " These three information groups.Or with according to " ownership place ", " operator ", " browser version ", " ownership place+fortune Battalion business ", " ownership place+browser version ", " operator+browser version " and " ownership place+operator+clear Look at device version " be grouped exemplified by, categorical attribute Jiangsu corresponding to certain load time information, telecommunications and IE9, then server the load time information can be divided to " Jiangsu ", " telecommunications ", " IE9 ", " Jiangsu electricity Letter ", " Jiangsu IE9 ", " telecommunications IE9 " and " this seven information groups of Jiangsu Telecom IE9 ".Similar, service Device can according in above-mentioned operator, ownership place, operating system, browser version and network environment extremely A few categorical attribute is grouped.
Step 407, for every kind of categorical attribute, server in information group corresponding to the categorical attribute to including Load time information counted, obtain with the categorical attribute corresponding to, the specified page plus Carry performance information.
The loading performance information of the specified page be used for indicate in the specified page loading procedure it is described extremely The average duration of few two loadings sub-stage.
Based on the packet situation in step 406, for each information group, server is in the information group Each bar load time information is counted, and is calculated and is each loaded son in the information group in each bar load time information The average duration in stage, and using the statistical result of acquisition as corresponding to the information group, the specified page plus Carry performance information.For example by taking information group corresponding to " operator " as an example, 10000 are included in the information group Bar load time information, every load time packet is containing dns resolution, TCP connections, first byte load, This five loading sub-stages of resource downloading and page rendering, server is to 10000 load time information In each loading sub-stage average, you can be somebody's turn to do in " operator " information group, five loading The respective average duration of sub-stage.
Step 408, server, which receives, checks instruction, and described check in instruction includes categorical attribute.
In embodiments of the present invention, server can externally provide checking for the loading performance information of specified page Interface, the interactive interface selection sort attribute that developer can be provided by server, and send and check finger Order, such as, when developer wants to check that Jiangsu Telecom user opens specified page, the specified page pair It can selection sort attribute be " Jiangsu Telecom " in interactive interface during the loading performance information answered, and click on and look into Button is seen, server can receive checks instruction comprising " Jiangsu Telecom " this categorical attribute.
Step 409, server shows the loading performance information of corresponding, the described specified page of the categorical attribute.
Server, according to the categorical attribute checked in instruction read, obtains after receiving and checking instruction To loading performance information corresponding to categorical attribute, specified page, and the loading performance information is opened up Show.
In a kind of mode in the cards, server is sub by above-mentioned loading performance information, namely each loading The average duration in stage is directly shown on the interface that webpage development personnel can see, and the mode of displaying can be with It is numerical value, form, image etc..Wherein, image can be line chart, block diagram, cake chart etc..
In the alternatively possible mode for being realization, server not only shows above-mentioned loading performance information, and The relation between loading performance information and reference value can also be shown.For example, domain is divided into loading performance information Under name system dns resolution stage, transmission control protocol TCP access phase, first byte load phase, resource Exemplified by the mean time length of this five sub-stages of load stage and page rendering stage, server is showing a certain classification Under attribute, during the respective average duration of above-mentioned five loadings sub-stage, also corresponding each loading sub-stage is shown One referential data, when it is a certain loading sub-stage average duration be less than or equal to the referential data, expression The loading velocity of the loading sub-stage is very fast, conversely, illustrate that the loading velocity of the loading sub-stage is slower, can Developer can be needed to optimize the code of the loading sub-stage.Further, when server can be with The relation between the average duration and referential data of the loading sub-stage is represented using special color, such as, When the average duration of a certain loading sub-stage is less than or equal to the referential data of the loading sub-stage, service Device indicates the loading sub-stage with green (normal color), conversely, when the mean time of the loading sub-stage is grown up When the referential data, server indicates the loading sub-stage with red (warning color).
Optionally, server can also set a total information group, i.e., connect in the total information group comprising server All load time information received, if developer does not select when checking the loading performance information of specified page Specific categorical attribute is selected, or, overall loading performance information is checked in developer's selection, then server By being averaged for each loading sub-stage for each bar load time information in the total information group count acquisition Duration is shown to developer.
The method provided according to embodiments of the present invention, want to know the one of its exploitation with a webpage development personnel Exemplified by the opening speed of individual Webpage, webpage development personnel can early stage first to Data Analysis Platform (i.e. Server) application analysis oneself exploitation Webpage loading performance.Afterwards, the Data Analysis Platform is supervised Control the access from each different terminal-pair Webpages.Each terminal access once Webpage, The Data Analysis Platform can get a load time information and corresponding categorical attribute information, example Load time information such as a terminal is domain name system DNS resolution phase 0.13s, transmission control protocol respectively TCP access phases 0.07s, first byte load phase 0.16s, resource downloading stage 0.11s and page rendering rank Section 1.04s, categorical attribute information are telecommunications (operator), the Inner Mongol (ownership place), (behaviour of Windows 10 Make system), IE9 (browser version) and 4G (network environment).Data Analysis Platform is periodically (such as every Individual 24 hours) each bar load time information being collected into is divided into information group corresponding to different categorical attributes, And count corresponding to each information group, the average duration of each loading sub-stage, subsequent web pages developer looks into When seeing the loading performance information of the Webpage, it can be inquired about according to categorical attribute, it is different to check Under categorical attribute, the loading performance of Webpage.
Such as Fig. 5 be the present embodiments relate to a kind of loading performance information display schematic diagram, in Fig. 5 In, when webpage development personnel's not selection sort attribute, or, when overall loading performance information is checked in selection, Data Analysis Platform shows the overall average duration of each loading sub-stage, wherein, the dns resolution stage 51, TCP access phases 52, first byte load phase 53, resource downloading stage 54 and page rendering stage 55 5 In individual sub-stage, the only resource downloading stage 54 is denoted as red beyond reference value, remaining sub-stage Time loss is below respective reference value, is consumed for normal time.Based on Fig. 5, webpage development personnel can be with Optimized for the code of resource downloading part in Webpage, or, under the resource of Webpage Load mode optimizes deployment.
In addition, webpage development personnel can also check loading performance corresponding to a certain specific categorical attribute, than Such as, Fig. 6 A and Fig. 6 B be the present embodiments relate to another loading performance information display schematic diagram, As shown in Figure 6 A and 6 B, Data Analysis Platform provides loading performance presentation of information page to webpage development personnel Face 60, ownership place (Shanxi) is selected in ownership place selection region 61 of the webpage development personnel in the page 60 Afterwards, operator's selection region 62 is shown in the page 60, is opened in operator's selection region 62 comprising webpage , should when user corresponding to each operator opens the Webpage in the ownership place (Shanxi) of hair personnel selection The access delay of Webpage, that is, the average loading total duration of the Webpage, as shown in Figure 6A, mountain The average loading total duration that western domestic telecommunication user opens the Webpage is 1.06s.Webpage development personnel think When further checking that ownership place (Shanxi) interior telecommunication user opens the Webpage, the Webpage is each When loading the average duration of sub-stage, telecom operators' (ratio can be selected in selection operator selection region 62 The region as corresponding to mouse clicks on telecommunications), now, it is " mountain that Data Analysis Platform, which is received comprising categorical attribute, Instruction is checked in west+telecommunications ", and as shown in Figure 6B, Data Analysis Platform is further shown in the page 60 Loading performance information display area 63, the interior interior telecommunication user of display ownership place (Shanxi) in the region 63 is opened should During Webpage, the Webpage dns resolution, TCP connections, first byte loading, resource downloading and The respective average duration of this five sub-stages of page rendering.
Optionally, the user that webpage development personnel may be not intended to check in a certain ownership place opens the webpage During the page, during the average duration of each loading sub-stage of the Webpage, and all electricity in the inquiry whole nation are intended to When credit household is by opening the Webpage, the average duration of each loading sub-stage of the Webpage.On the other hand, In addition to the method shown in Fig. 6 A and Fig. 6 B, in embodiments of the present invention, webpage development personnel can be with The desired categorical attribute of unrestricted choice.Such as refer to Fig. 7, its be the present embodiments relate to another The display schematic diagram of loading performance information.In the figure 7, can selected categorical attribute include:Operator 71, Ownership place 72, operating system 73, browser version 74 and network environment 75, it is each in above-mentioned 71~75 Categorical attribute can be selected specifically to an attribute;Webpage development personnel can select wherein at least one point Generic attribute, such as, in the figure 7, webpage development personnel selection operator is movement, and it is mountain to select ownership place East, select network environment be 4G, now, Data Analysis Platform receive comprising categorical attribute for " mountain move+ Mobile+4G's " checks instruction, as shown in fig. 7, Data Analysis Platform is in loading performance information display area When showing that Shandong movement 4G user opens the Webpage in 79, the Webpage is in dns resolution, TCP Connection, first byte loading, resource downloading and the respective average duration of this five sub-stages of page rendering.Can Choosing, independent visitor's number 76 can also be shown in Fig. 7, independent visitor's number 76, which is used to show, accesses the webpage The quantity of the Shandong movement 4G user of the page.
In summary, a kind of method for counting page loading parameter provided in an embodiment of the present invention, passes through service Device receive it is that at least one terminal is sent, for indicating at least one terminal in loading specified page process In at least two loading sub-stages duration load time information, at least one terminal transmission is added Carry temporal information to be counted, obtain for indicating described at least two in the specified page loading procedure The loading performance information of the average duration of sub-stage is loaded, the statistical result of the program can indicate a page Each stage respective duration information during the entire process of loading so that statistical information more horn of plenty, solve Prior art only counts the total time-consuming that since the page terminate loading to loading every time, and the information of statistics is more single One the problem of, reach the purpose for the statistics effect for improving page load performance information.
In addition, method provided in an embodiment of the present invention, server also obtain at least one terminal it is each it is self-corresponding, Include at least one classification in operator, ownership place, operating system, browser version and network environment Attribute, it is grouped according to the load time information that categorical attribute is each sent at least one terminal, it is right In every kind of categorical attribute, the load time information included in information group corresponding to the categorical attribute is counted, Corresponding to acquisition and the categorical attribute, the specified page loading performance information, subsequently received include are divided When checking instruction of generic attribute, loading performance information corresponding to the categorical attribute is shown, from operator, ownership Exploitation of at least one dimension to specified page in ground, operating system, browser version and network environment Personnel provide the inquiry of the loading performance information of specified page, so as to further improve page load performance information Statistics effect.
Following is apparatus of the present invention embodiment, can be used for performing the inventive method embodiment.For the present invention The details not disclosed in device embodiment, it refer to the inventive method embodiment.
Fig. 8 is refer to, it illustrates the device of the statistics page loading parameter shown in one embodiment of the invention Block diagram.The device of statistics page loading parameter can be embodied as Fig. 1 by way of hardware or soft or hard combination Server 120 in shown implementation environment it is all or part of.The device of statistics page loading parameter can With including:First receiving module 801 and statistical module 802.
First receiving module 801, the load time information each sent for receiving at least one terminal are described Load time information is used to indicate at least two loading sub- ranks of the corresponding terminal during specified page is loaded The duration of section.
Statistical module 802, the load time information for each being sent at least one terminal are united Meter, obtains the loading performance information of the specified page, and the loading performance information of the specified page is used to refer to Show the average duration of at least two loadings sub-stage in the specified page loading procedure.
In summary, a kind of device for counting page loading parameter provided in an embodiment of the present invention, passes through reception It is that at least one terminal is sent, for indicating at least one terminal during specified page is loaded extremely The duration load time information of few two loadings sub-stage, the load time sent at least one terminal Information is counted, and is obtained for indicating at least two loadings in the specified page loading procedure The loading performance information of the average duration in stage, the statistical result of the program can indicate what a page loaded Each stage respective duration information in whole process so that statistical information more horn of plenty, solve existing skill Art only counts the total time-consuming that since the page terminate loading to loading every time, and the information of statistics is more single to ask Topic, reach the purpose for the statistics effect for improving page load performance information.
Fig. 9 is the block diagram according to a kind of device of another statistics page loading parameter for implementing to exemplify.The system The device of meter page loading parameter soft or hard can be embodied as hardware or with reference to by way of shown in Fig. 1 implementation Server 120 in environment it is all or part of.The device of statistics page loading parameter can include: First receiving module 801 and statistical module 802.
First receiving module 801, the load time information each sent for receiving at least one terminal are described Load time information is used to indicate at least two loading sub- ranks of the corresponding terminal during specified page is loaded The duration of section.
Statistical module 802, the load time information for each being sent at least one terminal are united Meter, obtains the loading performance information of the specified page, and the loading performance information of the specified page is used to refer to Show the average duration of at least two loadings sub-stage in the specified page loading procedure.
Optionally, at least two loadings sub-stage includes:Domain name system DNS resolution phase, transmission control In agreement TCP access phases processed, first byte load phase, resource downloading stage and page rendering stage at least Two.
Optionally, the device also includes:First acquisition module 803 and grouping module 804.
First acquisition module 803, it is described for obtaining each self-corresponding categorical attribute of at least one terminal Categorical attribute includes:In operator, ownership place, operating system, browser version and network environment extremely It is few one.
Grouping module 804, for the loading each sent at least one terminal according to the categorical attribute Temporal information is grouped, and obtains at least one information group, and each described information group corresponds to a kind of categorical attribute;
The statistical module 802, for for every kind of categorical attribute, to information group corresponding to the categorical attribute In the load time information that includes counted, obtain with the categorical attribute corresponding to, the specific page The loading performance information in face.
Optionally, the device also includes:Second receiving module 805 and display module 806.
Second receiving module 805, instruction is checked for receiving, described check in instruction includes categorical attribute;
Display module 806, for showing corresponding to the categorical attribute, the loading performance letter of the specified page Breath.
In summary, a kind of device for counting page loading parameter provided in an embodiment of the present invention, passes through reception It is that at least one terminal is sent, for indicating at least one terminal during specified page is loaded extremely The duration load time information of few two loadings sub-stage, the load time sent at least one terminal Information is counted, and is obtained for indicating at least two loadings in the specified page loading procedure The loading performance information of the average duration in stage, the statistical result of the program can indicate what a page loaded Each stage respective duration information in whole process so that statistical information more horn of plenty, solve existing skill Art only counts the total time-consuming that since the page terminate loading to loading every time, and the information of statistics is more single to ask Topic, reach the purpose for the statistics effect for improving page load performance information.
In addition, device provided in an embodiment of the present invention, also obtain at least one terminal it is each it is self-corresponding, include At least one categorical attribute in operator, ownership place, operating system, browser version and network environment, It is grouped according to the load time information that categorical attribute is each sent at least one terminal, for every kind of Categorical attribute, the load time information included in information group corresponding to the categorical attribute is counted, obtained With the categorical attribute corresponding to, the loading performance information of the specified page, it is subsequently received to include classification category When checking instruction of property, shows loading performance information corresponding to the categorical attribute, from operator, ownership place, The developer of at least one dimension in operating system, browser version and network environment to specified page The inquiry of the loading performance information of specified page is provided, so as to further improve the system of page load performance information Count effect.
Figure 10 be according to one embodiment a kind of statistics page loading parameter device block diagram, the system The device of meter page loading parameter soft or hard can be embodied as hardware or with reference to by way of shown in Fig. 1 implementation Terminal 110 in environment it is all or part of.The device of statistics page loading parameter can include:The Two acquisition modules 1001 and sending module 1002.
Second acquisition module 1001, it is described to add for when loading specified page, obtaining load time information Temporal information is carried to be used to indicate when at least two during loading the specified page load sub-stages It is long.
Sending module 1002, for the load time information to be sent into server, by the server pair The load time information that at least one terminal including the terminal is each sent is counted, and is obtained The loading performance information of the specified page is obtained, the loading performance information of the specified page is described for indicating The average duration of at least two loadings sub-stage in specified page loading procedure.
In summary, a kind of device for counting page loading parameter provided in an embodiment of the present invention, passes through acquisition For the load time letter for the duration for indicating at least two loading sub-stages during the specified page is loaded Breath, and the load time information is sent to server, by the server to including the terminal The load time information that each sends of at least one terminal counted, obtain for indicating the finger Determine the loading performance information of the average duration of at least two loadings sub-stage in page loading procedure, should The statistical result of scheme can indicate long letter when each stage is respective during the entire process of the loading of page Breath so that statistical information more horn of plenty, solve prior art and only count the page every time since loading to adding The total time-consuming terminated is carried, the problem of information of statistics is more single, reaches and improves page load performance information Count the purpose of effect.
Figure 11 is according to a kind of block diagram of the device of another statistics page loading parameter for implementing to exemplify, the system The device of meter page loading parameter soft or hard can be embodied as hardware or with reference to by way of shown in Fig. 1 implementation Terminal 110 in environment it is all or part of.The device of statistics page loading parameter can include:The Two acquisition modules 1001 and sending module 1002.
Second acquisition module 1001, it is described to add for when loading specified page, obtaining load time information Temporal information is carried to be used to indicate when at least two during loading the specified page load sub-stages It is long.
Sending module 1002, for the load time information to be sent into server, by the server pair The load time information that at least one terminal including the terminal is each sent is counted, and is obtained The loading performance information of the specified page is obtained, the loading performance information of the specified page is described for indicating The average duration of at least two loadings sub-stage in specified page loading procedure.
Optionally, at least two loadings sub-stage includes:Domain name system DNS resolution phase, transmission control In agreement TCP access phases, first byte load phase, resource downloading stage and page rendering stage at least Two.
Optionally, the second acquisition module 1001, including:Time point acquisition submodule 1001a and duration obtain Submodule 1001b.
Time point acquisition submodule 1001a, for obtaining the specified page extremely by performance api The start time point and end time point of each loading sub-stage in few two loadings sub-stage;
Duration acquisition submodule 1001b, for the start time point for each loading sub-stage and end At time point, the time difference between the start time point and end time point of the loading sub-stage is retrieved as institute State the duration of loading sub-stage.
In summary, a kind of device for counting page loading parameter provided in an embodiment of the present invention, passes through acquisition For the load time letter for the duration for indicating at least two loading sub-stages during the specified page is loaded Breath, and the load time information is sent to server, by the server to including the terminal The load time information that each sends of at least one terminal counted, obtain for indicating the finger Determine the loading performance information of the average duration of at least two loadings sub-stage in page loading procedure, should The statistical result of scheme can indicate long letter when each stage is respective during the entire process of the loading of page Breath so that statistical information more horn of plenty, solve prior art and only count the page every time since loading to adding The total time-consuming terminated is carried, the problem of information of statistics is more single, reaches and improves page load performance information Count the purpose of effect.
The embodiment of the present invention also provides a kind of system for counting page loading parameter, and the system can include terminal And server, the connected mode in the system between each terminal and server may be referred to the reality shown in Fig. 1 Apply environment.
Wherein, the terminal is used to perform all or part of step in method shown in Fig. 3, or, perform The all or part of step performed in method shown in Fig. 4 by terminal.
The server is used to perform all or part of step in method shown in Fig. 2, or, perform Fig. 4 The all or part of step performed in shown method by server.
Figure 12 is refer to, the structural representation of the server provided it illustrates one embodiment of the invention.Institute Stating server 1200 includes CPU (CPU) 1201 including random access memory (RAM) 1202 and the system storage 1204 of read-only storage (ROM) 1203, and connection system storage 1204 With the system bus 1205 of CPU 1201.The server 1200 also includes helping in computer Each device between transmit information basic input/output (I/O systems) 1206, and for store grasp Make the mass-memory unit 1207 of system 1213, application program 1212 and other program modules 1215.
The basic input/output 1206 includes for the display 1208 of display information and for using The input equipment 1209 of such as mouse, keyboard etc of family input information.Wherein described display 1208 and defeated Enter equipment 1209 and be all connected to centre by being connected to the IOC 1210 of system bus 1205 Manage unit 1201.The basic input/output 1206 can also include IOC 1210 with For receiving and handling the input from multiple other equipments such as keyboard, mouse or electronic touch pen.It is similar Ground, IOC 1210 also provide output to display screen, printer or other kinds of output equipment.
The mass-memory unit 1207 is by being connected to the bulk memory controller of system bus 1205 (not shown) is connected to CPU 1201.The mass-memory unit 1207 and its associated Computer-readable medium is that server 1200 provides non-volatile memories.That is, the massive store Equipment 1207 can include the computer-readable medium of such as hard disk or CD-ROM drive etc (not Show).
Without loss of generality, the computer-readable medium can include computer-readable storage medium and communication media. Computer-readable storage medium include for store such as computer-readable instruction, data structure, program module or Volatibility that any methods or techniques of the information such as other data is realized and non-volatile, removable and not removable Dynamic medium.Computer-readable storage medium include RAM, ROM, EPROM, EEPROM, flash memory or other Its technology of solid-state storage, CD-ROM, DVD or other optical storages, cassette, tape, disk storage Or other magnetic storage apparatus.Certainly, skilled person will appreciate that the computer-readable storage medium does not limit to In above-mentioned several.Above-mentioned system storage 1204 and mass-memory unit 1207 may be collectively referred to as storing Device.
According to various embodiments of the present invention, the server 1200 can also pass through the networks such as internet The remote computer operation being connected on network.Namely server 1200 can be total by being connected to the system NIU 1211 on line 1205 is connected to network 1212, in other words, can also be connect using network Mouthful unit 1211 is connected to other kinds of network or remote computer system (not shown).
The memory also includes one or more than one program, one or more than one program It is stored in memory, central processing unit 1201 performs said one or multiple modules to realize Fig. 2 or figure The all or part of step performed in 4 by server.
Figure 13 is refer to, the structural representation of the terminal provided it illustrates one embodiment of the invention.This public affairs One or more following parts can be included by opening the terminal in embodiment:Refer to for performing computer program Order is to complete the processor of various flows and method, for information and storage program instruction random access memory (RAM) and read-only storage (ROM), for the memory of data storage and information, I/O equipment, boundary Face, antenna etc..Specifically:
Terminal 1300 can include RF (Radio Frequency, radio frequency) circuit 1310, memory 1320, Input block 1330, display unit 1340, sensor 1350, voicefrequency circuit 1360, WiFi (wireless Fidelity, Wireless Fidelity) part such as module 1370, processor 1380, power supply 1382, camera 1390. It will be understood by those skilled in the art that the restriction of the terminal structure shown in Figure 13 not structure paired terminal, can With including than illustrating more or less parts, either combining some parts or different parts arrangement.
Each component parts of terminal 1300 is specifically introduced with reference to Figure 13:
RF circuits 1310 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, After the downlink information of base station is received, handled to processor 1380;In addition, sent up data are designed To base station.Generally, RF circuits include but is not limited to antenna, at least one amplifier, transceiver, coupling Device, LNA (Low Noise Amplifier, low-noise amplifier), duplexer etc..In addition, RF circuits 1310 It can also be communicated by radio communication with network and other equipment.The radio communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, the whole world Mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc..
Memory 1320 can be used for storage software program and module, and processor 1380 is stored in by operation The software program and module of memory 1320, so as to perform the various function application of terminal 1300 and number According to processing.Memory 1320 can mainly include storing program area and storage data field, wherein, storing program area Can storage program area, the application program needed at least one function (for example broadcast by sound-playing function, image Playing function etc.) etc.;Storage data field can store uses created data (such as sound according to terminal 1300 Frequency evidence, phone directory etc.) etc..In addition, memory 1320 can include high-speed random access memory, also Nonvolatile memory can be included, a for example, at least disk memory, flush memory device or other are easy The property lost solid-state memory.
Input block 1330 can be used for the numeral or character information for receiving input, and produce and terminal 1300 User set and function control it is relevant key signals input.Specifically, input block 1330 may include to touch Control panel 1331 and other input equipments 1332.Contact panel 1331, also referred to as touch-screen, collect User on or near it touch operation (such as user using any suitable object such as finger, stylus or Operation of the annex on contact panel 1331 or near contact panel 1331), and according to journey set in advance Formula drives corresponding attachment means.Optionally, contact panel 1331 may include touch detecting apparatus and touch to control Two parts of device processed.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch from touch detecting apparatus Information, and contact coordinate is converted into, then processor 1380 is given, and energy reception processing device 1380 is sent Order and performed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Polytype realizes contact panel 1331.Except contact panel 1331, input block 1330 can also include Other input equipments 1332.Specifically, other input equipments 1332 can include but is not limited to physical keyboard, One kind in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. It is or a variety of.
Display unit 1340 can be used for display by the information of user's input or be supplied to the information and terminal of user 1300 various menus.Display unit 1340 may include display panel 1341, optionally, can use LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) etc. form configure display panel 1341.Further, contact panel 1331 can cover Lid display panel 1341, after contact panel 1331 detects the touch operation on or near it, send to Processor 1380 is followed by subsequent processing device 1380 and existed according to the type of touch event to determine the type of touch event Corresponding visual output is provided on display panel 1341.Although in fig. 13, contact panel 1331 and display Panel 1341 is the part independent as two to realize the input of terminal 1300 and input function, but In some embodiments, contact panel 1331 and display panel 1341 can be integrated and realize terminal 1300 Input and output function.
Terminal 1300 may also include at least one sensor 1350, such as gyro sensor, magnetic strength inductive sensing Device, optical sensor, motion sensor and other sensors.Specifically, optical sensor may include ambient light Sensor and proximity transducer, wherein, ambient light sensor can adjust display according to the light and shade of ambient light The brightness of panel 1341, proximity transducer can close display panel 1341 when terminal 1300 is moved in one's ear And/or backlight.As one kind of motion sensor, acceleration transducer can detect in all directions (generally Three axles) acceleration size, size and the direction of gravity are can detect that when static, available for identification terminal appearance The application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of state, Vibration identification correlation function (such as pedometer, percussion) etc.;The barometer that can also configure as terminal 1300, hygrometer, thermometer, The other sensors such as infrared ray sensor, will not be repeated here.
Voicefrequency circuit 1360, loudspeaker 1361, microphone 1362 can be provided between user and terminal 1300 COBBAIF.Electric signal after the voice data received conversion can be transferred to and raised one's voice by voicefrequency circuit 1360 Device 1361, voice signal output is converted to by loudspeaker 1361;On the other hand, microphone 1362 will be collected Voice signal be converted to electric signal, be converted to voice data after being received by voicefrequency circuit 1360, then by audio After the processing of data output processing device 1380, through RF circuits 1310 to be sent to such as another terminal, or will Voice data is exported to memory 1320 further to handle.
WiFi belongs to short range wireless transmission technology, and terminal 1300 can help to use by WiFi module 1370 Family sends and receive e-mail, browses webpage and access streaming video etc., and it is mutual that it has provided the user wireless broadband Internet interview.Although Figure 13 shows WiFi module 1370, but it is understood that, it is simultaneously not belonging to Terminal 1300 must be configured into, and can be omitted as needed in the scope for not changing disclosed essence completely.
Processor 1380 is the control centre of terminal 1300, utilizes various interfaces and the whole terminal of connection Various pieces, by running or performing the software program and/or module that are stored in memory 1320, and The data being stored in memory 1320 are called, perform the various functions and processing data of terminal 1300, from And integral monitoring is carried out to terminal.Optionally, processor 1380 may include one or more processing units;It is excellent Choosing, processor 1380 can integrate application processor and modem processor, wherein, application processor master Operating system, user interface and application program etc. are handled, modem processor mainly handles radio communication. It is understood that above-mentioned modem processor can not also be integrated into processor 1380.
Terminal 1300 also includes the power supply 1382 (such as battery) to all parts power supply, it is preferred that power supply Can be logically contiguous by power-supply management system and processor 1380, managed so as to be realized by power-supply management system The functions such as reason charging, electric discharge and power managed.
Camera 1390 is typically by camera lens, imaging sensor, interface, digital signal processor, CPU, aobvious Display screen curtain etc. forms.Wherein, camera lens is fixed on the top of imaging sensor, can manually adjust camera lens Focused on to change;Imaging sensor is the heart of camera collection image equivalent to " film " of traditional camera; Interface is used to camera be connected using winding displacement, board to board connector, spring connected mode with terminal mainboard, The image of collection is sent to the memory 1320;Digital signal processor is by mathematical operation to collection Image is handled, and the analog image of collection is converted into digital picture and is sent to memory by interface 1320。
Although being not shown, terminal 1300 can also will not be repeated here including bluetooth module etc..
Terminal 1300 is except including one or more processor 1380, also including memory, and one Or multiple modules, one or more module are stored in memory, and be configured to by one or The multiple computing devices of person.Processor 1380 performs said one or multiple modules to realize Fig. 3 or Fig. 4 In by terminal perform all or part of step.
Those skilled in the art will readily occur to this hair after considering specification and putting into practice invention disclosed herein Bright other embodiments.The application is intended to any modification, purposes or the adaptations of the present invention, These modifications, purposes or adaptations follow the general principle of the present invention and including of the invention undisclosed Common knowledge or conventional techniques in the art.Description and embodiments are considered only as exemplary , true scope and spirit of the invention are pointed out by following claim.
It should be appreciated that the invention is not limited in the accurate knot for being described above and being shown in the drawings Structure, and various modifications and changes can be being carried out without departing from the scope.The scope of the present invention is only by appended Claim limits.

Claims (15)

1. a kind of system for counting page load performance information, it is characterised in that the system includes:At least One terminal and server;
The terminal, for when loading specified page, obtain load time information, and during by the loading Between information be sent to server, the load time information is used to indicate that the terminal is loading the specific page The duration of at least two loading sub-stages during face;
The server, the load time information each sent for receiving at least one terminal, The load time information that at least one terminal is each sent is counted, obtains the specific page The loading performance information in face, the loading performance information are used to indicate the institute in the specified page loading procedure State the average duration of at least two loading sub-stages.
A kind of 2. method for counting page load performance information, it is characterised in that described in server Method includes:
The load time information that at least one terminal is each sent is received, the load time information is used to indicate The duration of at least two loading sub-stages of the corresponding terminal during specified page is loaded;
The load time information each sent at least one terminal counts, and obtains the specific page The loading performance information in face, the loading performance information of the specified page are used to indicate the specified page loading During it is described at least two loading sub-stage average duration.
3. according to the method for claim 2, it is characterised in that at least two loadings sub-stage bag Include:
Domain name system DNS resolution phase, transmission control protocol TCP access phase, first byte load phase, At least two in resource downloading stage and page rendering stage.
4. according to the method for claim 2, it is characterised in that described that at least one terminal is sent out Before the load time information sent is counted, in addition to:
Each self-corresponding categorical attribute of at least one terminal is obtained, the categorical attribute includes:Operator, It is at least one in ownership place, operating system, browser version and network environment;
Divided according to the load time information that the categorical attribute is each sent at least one terminal Group, obtains at least one information group, and each described information group corresponds to a kind of categorical attribute;
The load time information each sent at least one terminal counts, including:
For every kind of categorical attribute, to the load time information included in information group corresponding to the categorical attribute Counted, the loading performance information of specified page corresponding to acquisition and the categorical attribute, described.
5. according to the method for claim 4, it is characterised in that methods described also includes:
Instruction is checked in reception, and described check in instruction includes categorical attribute;
Show corresponding to the categorical attribute, the loading performance information of the specified page.
A kind of 6. method for counting page load performance information, it is characterised in that in terminal, the side Method includes:
When loading specified page, load time information is obtained, the load time information is used to indicate adding Carry the duration of at least two loading sub-stages during the specified page;
The load time information is sent to server, by the server to including the terminal The load time information that at least one terminal is each sent is counted, and obtains adding for the specified page Performance information is carried, the loading performance information of the specified page is used to indicate in the specified page loading procedure It is described at least two loading sub-stage average duration.
7. according to the method for claim 6, it is characterised in that at least two loadings sub-stage bag Include:
Domain name system DNS resolution phase, transmission control protocol TCP access phase, first byte load phase, At least two in resource downloading stage and page rendering stage.
8. according to the method for claim 6, it is characterised in that the acquisition load time information, bag Include:
Of each loading sub-stage at least two loadings sub-stage is obtained by performance api Begin time point and end time point;
For the start time point and end time point of each loading sub-stage, by the loading sub-stage Start time point and end time point between time difference be retrieved as it is described loading sub-stage duration.
A kind of 9. device for counting page load performance information, it is characterised in that applied in server, institute Stating device includes:
First receiving module, the load time information each sent for receiving at least one terminal are described to add Temporal information is carried to be used to indicate at least two loading sub-stages of the corresponding terminal during specified page is loaded Duration;
Statistical module, the load time information for each being sent at least one terminal count, The loading performance information of the specified page is obtained, the loading performance information of the specified page is used to indicate institute State the average duration of at least two loadings sub-stage in specified page loading procedure.
10. device according to claim 9, it is characterised in that at least two loadings sub-stage Including:
Domain name system DNS resolution phase, transmission control protocol TCP access phase, first byte load phase, At least two in resource downloading stage and page rendering stage.
11. device according to claim 9, it is characterised in that described device also includes:
First acquisition module, for obtaining each self-corresponding categorical attribute of at least one terminal, described point Generic attribute includes:In operator, ownership place, operating system, browser version and network environment at least One;
Grouping module, at least one terminal is each sent according to the categorical attribute loading when Between information be grouped, obtain at least one information group, each described information group corresponds to a kind of categorical attribute;
The statistical module, for for every kind of categorical attribute, in information group corresponding to the categorical attribute Comprising load time information counted, obtain with the categorical attribute corresponding to, the specified page Loading performance information.
12. device according to claim 11, it is characterised in that described device also includes:
Second receiving module, instruction is checked for receiving, described check in instruction includes categorical attribute;
Display module, for showing corresponding to the categorical attribute, the loading performance information of the specified page.
13. a kind of device for counting page load performance information, it is characterised in that described in terminal Device includes:
Second acquisition module, for when loading specified page, load time information is obtained, during the loading Between the durations of at least two loading sub-stages that are used to indicate during the specified page is loaded of information;
Sending module, for the load time information to be sent into server, by the server to including The load time information that at least one terminal including the terminal is each sent is counted, and obtains institute The loading performance information of specified page is stated, the loading performance information of the specified page is used to indicate described specify The average duration of at least two loadings sub-stage in page loading procedure.
14. device according to claim 13, it is characterised in that at least two loadings sub-stage Including:
Domain name system DNS resolution phase, transmission control protocol TCP access phase, first byte load phase, At least two in resource downloading stage and page rendering stage.
15. device according to claim 13, it is characterised in that second acquisition module, including:
Time point acquisition submodule, for obtaining the sub- rank of at least two loading by performance api The start time point and end time point of each loading sub-stage in section;
Duration acquisition submodule, for the start time point for each loading sub-stage and end time Point, the time difference between the start time point and end time point of the loading sub-stage is retrieved as described add The duration in carrier stage.
CN201610332934.4A 2016-05-17 2016-05-17 Count system, the method and device of page load performance information Pending CN107391518A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610332934.4A CN107391518A (en) 2016-05-17 2016-05-17 Count system, the method and device of page load performance information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610332934.4A CN107391518A (en) 2016-05-17 2016-05-17 Count system, the method and device of page load performance information

Publications (1)

Publication Number Publication Date
CN107391518A true CN107391518A (en) 2017-11-24

Family

ID=60338174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610332934.4A Pending CN107391518A (en) 2016-05-17 2016-05-17 Count system, the method and device of page load performance information

Country Status (1)

Country Link
CN (1) CN107391518A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109039715A (en) * 2018-07-17 2018-12-18 中国联合网络通信集团有限公司 User's web page browsing experience evaluation method and system, network base station configuration method
CN110221954A (en) * 2019-05-29 2019-09-10 吉旗(成都)科技有限公司 Application program for mobile terminal page method for monitoring performance and device
CN110287436A (en) * 2019-05-21 2019-09-27 深圳壹账通智能科技有限公司 Detect page load time method, apparatus, equipment and storage medium
CN111176969A (en) * 2019-12-31 2020-05-19 腾讯科技(深圳)有限公司 Data processing method, device, equipment and storage medium
CN111291291A (en) * 2018-12-07 2020-06-16 阿里巴巴集团控股有限公司 Page loading time processing method, device and system
CN111625432A (en) * 2019-02-28 2020-09-04 北京字节跳动网络技术有限公司 Page loading time consumption determination method and device and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102479151A (en) * 2010-11-26 2012-05-30 腾讯科技(深圳)有限公司 Testing method and device of webpage access speed
CN102916847A (en) * 2011-12-08 2013-02-06 云智慧(北京)科技有限公司 Method and device for monitoring website speed
CN103645978A (en) * 2013-12-16 2014-03-19 百度在线网络技术(北京)有限公司 Method, device and system for testing browser webpage loading time
CN104200157A (en) * 2014-09-02 2014-12-10 广州金山网络科技有限公司 Webpage exception handling method and equipment
US9021362B2 (en) * 2010-07-19 2015-04-28 Soasta, Inc. Real-time analytics of web performance using actual user measurements

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9021362B2 (en) * 2010-07-19 2015-04-28 Soasta, Inc. Real-time analytics of web performance using actual user measurements
CN102479151A (en) * 2010-11-26 2012-05-30 腾讯科技(深圳)有限公司 Testing method and device of webpage access speed
CN102916847A (en) * 2011-12-08 2013-02-06 云智慧(北京)科技有限公司 Method and device for monitoring website speed
CN103645978A (en) * 2013-12-16 2014-03-19 百度在线网络技术(北京)有限公司 Method, device and system for testing browser webpage loading time
CN104200157A (en) * 2014-09-02 2014-12-10 广州金山网络科技有限公司 Webpage exception handling method and equipment

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109039715A (en) * 2018-07-17 2018-12-18 中国联合网络通信集团有限公司 User's web page browsing experience evaluation method and system, network base station configuration method
CN111291291A (en) * 2018-12-07 2020-06-16 阿里巴巴集团控股有限公司 Page loading time processing method, device and system
CN111291291B (en) * 2018-12-07 2023-05-02 阿里巴巴集团控股有限公司 Page loading time processing method, device and system
CN111625432A (en) * 2019-02-28 2020-09-04 北京字节跳动网络技术有限公司 Page loading time consumption determination method and device and computer readable storage medium
CN111625432B (en) * 2019-02-28 2023-03-28 北京字节跳动网络技术有限公司 Page loading time consumption determination method and device and computer readable storage medium
CN110287436A (en) * 2019-05-21 2019-09-27 深圳壹账通智能科技有限公司 Detect page load time method, apparatus, equipment and storage medium
CN110221954A (en) * 2019-05-29 2019-09-10 吉旗(成都)科技有限公司 Application program for mobile terminal page method for monitoring performance and device
CN111176969A (en) * 2019-12-31 2020-05-19 腾讯科技(深圳)有限公司 Data processing method, device, equipment and storage medium
CN111176969B (en) * 2019-12-31 2022-04-22 腾讯科技(深圳)有限公司 Data processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104699598B (en) Automated testing method, device, equipment and system
CN107391518A (en) Count system, the method and device of page load performance information
CN106021112A (en) Program testing system, method and device
CN108471376A (en) Data processing method, apparatus and system
CN104572690B (en) A kind of methods, devices and systems obtaining web data
CN107967322A (en) Document classification display methods, mobile terminal and computer-readable recording medium
CN104571979B (en) A kind of method and apparatus for realizing split view
CN108280692A (en) Reward distribution method, device, computer readable storage medium and terminal
CN106534940A (en) Method and device for displaying preview picture at live broadcasting entrance
CN107463602A (en) A kind of log processing method and server, client
CN105867751A (en) Method and device for processing operation information
CN104699501B (en) A kind of method and device for running application program
CN106302996A (en) Message display method and device
CN108093439A (en) User behavior data method for controlling reporting, terminal and computer readable storage medium
CN108270696A (en) Internet wide band distribution, mobile terminal and computer storage media
CN104516890B (en) Method for processing business, device and electronic equipment
CN104063400B (en) Data search method and data search device
CN110113779A (en) Test method, system, test platform, mobile terminal and the medium of eSIM card
CN108897846A (en) Information search method, equipment and computer readable storage medium
CN106603740B (en) It is connected to the network abnormal processing method and terminal device
CN108196968A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN108012029A (en) A kind of information processing method, equipment and computer-readable recording medium
CN106155888A (en) The detection method of webpage loading performance and device in a kind of Mobile solution
CN109710338A (en) A kind of searching method of mobile terminal, mobile terminal and storage medium
CN109902228A (en) Resource request, push control method, terminal, server and readable storage medium storing program for executing

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