CN110287436A - Detect page load time method, apparatus, equipment and storage medium - Google Patents

Detect page load time method, apparatus, equipment and storage medium Download PDF

Info

Publication number
CN110287436A
CN110287436A CN201910433179.2A CN201910433179A CN110287436A CN 110287436 A CN110287436 A CN 110287436A CN 201910433179 A CN201910433179 A CN 201910433179A CN 110287436 A CN110287436 A CN 110287436A
Authority
CN
China
Prior art keywords
information
load time
page
current page
code
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
CN201910433179.2A
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910433179.2A priority Critical patent/CN110287436A/en
Publication of CN110287436A publication Critical patent/CN110287436A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of detection page load time method, apparatus, equipment and storage mediums, which comprises obtains current page code information to be detected;The current page code information to be detected is compared with preset time statistical function field information, the aiming field information in the current page code information to be detected is obtained according to comparison result;The object information in the aiming field information is extracted, carries out that the default load time statistics codes information is added in loading procedure in the object information;Run the default load time statistics codes Information Statistics current page load time.The present invention add in loading procedure default load time statistics codes information to current page progress time statistics in object information, without carrying out the secondary development of code, the seamless load for realizing code achievees the purpose that the treatment effeciency for improving detection page load time.

Description

Detect page load time method, apparatus, equipment and storage medium
Technical field
The present invention relates to field of computer technology more particularly to a kind of detection page load time method, apparatus, equipment and Storage medium.
Background technique
Currently, as functional requirement of the user to the page is higher and higher, developer needs pair after developing the new page The performance of page operation is detected, and is carried out again after testing result reaches development goal online, wherein the load to the page Time is one of the main task of detection, under normal circumstances, is predominantly realized by addition code to page load time It calculates, or when not needing addition code, implementation is also comparatively laborious.
Summary of the invention
It is a primary object of the present invention to propose a kind of detection page load time method, apparatus, equipment and storage medium, It is intended to improve the treatment effeciency of detection page load time.
To achieve the above object, the present invention provides a kind of detection page load time method, when the detection page loads Between method the following steps are included:
Obtain current page code information to be detected;
The current page code information to be detected is compared with preset time statistical function field information, according to than Relatively result obtains the aiming field information in the current page code information to be detected;
The object information in the aiming field information is extracted, is carried out in loading procedure described in addition in the object information Default load time statistics codes information;
Run the default load time statistics codes Information Statistics current page load time.
It is preferably, described to obtain current page code information to be detected, comprising:
Obtain the page address information of the current page to be detected;
Access request is sent to the corresponding server info of the page address information according to the page address information;
Judge whether the response feedback information for receiving server to the access request;
When receiving response feedback information of the server to the access request, extract in the response feedback information Input stream information, using the input stream information as the current page code information to be detected.
Preferably, it is described judge whether to receive server to the response feedback information of the access request before, it is described Method further include:
The reference account information in the access information is extracted, is sent to the server with reference to account information for described, So that the server is compared described with reference to account information with the white list information of predeterminable area, tested according to comparison result Demonstrate,prove the target account information for whether belonging to reference to account information and recording in the white list;
The response feedback information for judging whether to receive server to the access request, comprising:
When receiving the verification result that the server is sent, then judgement receives server to the access request Respond feedback information;
When not receiving the verification result that the server is sent, then judge not receiving server to the access request Response feedback information.
Preferably, the object information extracted in the aiming field information, loaded in the object information The default load time statistics codes information is added in journey, comprising:
The object information in the aiming field information is extracted, the starting position in the object information and stop bits are counted It sets, and obtains the default load time statistics codes information prestored in predeterminable area;
It is carried out in loading procedure in the object information, passes through+load's according to the starting position and end position The default load time statistics codes information will be added in mode in the object information, wherein the default load time system Meter code information is for detecting page load time.
Preferably, described before the default load time statistics codes information prestored in the acquisition predeterminable area Method further include:
Obtain code write instruction, extract default load time statistics codes information in the code write instruction and Address information to be written;
The default load time statistics codes information write-in predeterminable area is carried out according to the address information to be written It saves.
Preferably, the operation default load time statistics codes Information Statistics current page load time, comprising:
Current label information in current page described in the default load time statistics codes acquisition of information is run, institute is extracted State the original time information of the current page recorded in current label information;
When current page is switched to target pages, target labels information in the target pages is obtained, the mesh is extracted The target time information recorded in mark label information;
The current page load time is calculated according to the original time information and target time information.
Preferably, after the operation default load time statistics codes Information Statistics current page load time, institute State method further include:
Whether the object information detected in the current page code information to be detected updates;
Pass through+detected in loading procedure according to the starting position and end position in the object information It is described pre- by being added in updated object information when being updated to the object information in the current page code information to be detected If load time statistics codes information;
Run the default load time statistics codes Information Statistics updated current page load time.
In addition, to achieve the above object, the present invention also proposes a kind of detection page load time device, the detection page Load time device includes:
Module is obtained, for obtaining current page code information to be detected;
Comparison module, for will the current page code information to be detected and preset time statistical function field information into Row compares, and obtains the aiming field information in the current page code information to be detected according to comparison result;
Extraction module is loaded for extracting the object information in the aiming field information in the object information The default load time statistics codes information is added in the process;
Statistical module, for running the default load time statistics codes Information Statistics current page load time.
In addition, to achieve the above object, the present invention also proposes a kind of detection page load time equipment, the detection page Load time equipment includes: memory, processor and is stored in the inspection that can be run on the memory and on the processor Page load time program is surveyed, when the detection page load time program is arranged for carrying out detection page load as described above Between method the step of.
In addition, to achieve the above object, the present invention also proposes a kind of storage medium, detection is stored on the storage medium Page load time program, the detection page load time program realize detection page as described above when being executed by processor The step of face load time method.
Detection page load time method proposed by the present invention, by obtaining current page code information to be detected;By institute It states current page code information to be detected to be compared with preset time statistical function field information, institute is obtained according to comparison result State the aiming field information in current page code information to be detected;The object information in the aiming field information is extracted, The object information carries out that the default load time statistics codes information is added in loading procedure;When running the default load Between the statistics codes Information Statistics current page load time, thus by the basis of current page existing source code, Object information add in loading procedure default load time statistics codes information to current page progress time statistics, is not necessarily to The secondary development for carrying out code, realizes the seamless load of code, reaches the mesh for improving the treatment effeciency of detection page load time 's.
Detailed description of the invention
Fig. 1 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of present invention detection page load time method first embodiment;
Fig. 3 is the flow diagram of present invention detection page load time method second embodiment;
Fig. 4 is the flow diagram of present invention detection page load time method 3rd embodiment;
Fig. 5 is the functional block diagram of present invention detection page load time device first embodiment.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Referring to Fig.1, Fig. 1 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
As shown in Figure 1, the equipment may include: processor 1001, such as CPU, communication bus 1002, user interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is for realizing the connection communication between these components. User interface 1003 may include display screen (Display), input unit such as key, and optional user interface 1003 can also wrap Include standard wireline interface and wireless interface.Network interface 1004 optionally may include standard wireline interface and wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable memory (non- ), such as magnetic disk storage volatilememory.Memory 1005 optionally can also be independently of aforementioned processor 1001 Storage device.
It will be understood by those skilled in the art that device structure shown in Fig. 1 does not constitute the restriction to equipment, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
As shown in Figure 1, as may include operating system, network communication mould in a kind of memory 1005 of storage medium Block, Subscriber Interface Module SIM and detection page load time program.
In equipment shown in Fig. 1, network interface 1004 is mainly used for connecting outer net, carries out data with other network equipments Communication;User interface 1003 is mainly used for connecting user equipment, carries out data communication with equipment;Present device passes through processor The detection page load time program stored in 1001 calling memories 1005, and execute detection page provided in an embodiment of the present invention The implementation method of face load time.
Based on above-mentioned hardware configuration, present invention detection page load time embodiment of the method is proposed.
It is the flow diagram of present invention detection page load time method first embodiment referring to Fig. 2, Fig. 2.
In the first embodiment, the detection page load time method the following steps are included:
Step S10 obtains current page code information to be detected.
It should be noted that the current page code information to be detected is to detect the current page letter of page load time Breath, in the present embodiment, the current page code information to be detected can be the page code operated on Mobile operating system, Such as the page code of Apple Macintosh operating system (IPhone Operating System, IOS), it also may operate at Android system Page code, the present embodiment with no restriction, in the present embodiment, carry out this to operate in the page code of IOS system Explanation.
In the concrete realization, current page code information to be detected can be obtained by sampling instrument, it can also be by parsing work Tool parses the webpage being currently running, and obtains current page code information to be detected, to realize to current page Detection.
Step S20 compares the current page code information to be detected with preset time statistical function field information Compared with obtaining the aiming field information in the current page code information to be detected according to comparison result.
It should be noted that the preset time statistical function field information is preset function information, such as runtime, So as to go out code information relevant to statistical time in the current page code information searching to be detected, realize to current page The screening of the code information in face, wherein the preset time statistical function field information is existing code information in source code, It is merely representative of the function information being equipped with time correlation, and the field information cannot achieve time statistical function.
In the concrete realization, preset time statistical function field information, such as runtime are obtained, by the preset time Statistical function field information is compared with the code information of current page, according to comparison result, finds out current page code In code information identical with runtime, using the relevant code information as the aiming field information, to realize pair The automatic detection of current page, the processing that current page is more refined.
Step S30 extracts the object information in the aiming field information, carries out in loading procedure in the object information The default load time statistics codes information is added.
It should be noted that the object information is the code information of the expression class handled when current page loads, By obtaining the information of class of the current page code in load, due to the case where current page is in load under normal circumstances Under, it needs to load the information of class, and in the present embodiment, institute can be added during to carry out loading classes originally Default load time statistics codes information is stated, so that the load time statistical function of the page is realized, since the present embodiment is loading The code information of time statistics is added while the page, without carrying out secondary development in full page code, realizes statistics Time loading performance, thus treatment effeciency when improving the load time on the statistics page.
In the present embodiment, the default load time statistics codes information is pre-set code information, the generation Code information can realize the statistics to loading page, so that only generation need to be counted by the way that the time is added in the loading procedure of classes of pages Code realizes that seamless code is added, achievees the purpose that raising system treatment effeciency.
Step S40 runs the default load time statistics codes Information Statistics current page load time.
In the present embodiment, without in addition addition code, and time statistics codes are added in the loading procedure of classes of pages, To realize automatically to the statistics of load time, reach the detection of more efficient page load time.
In the concrete realization, preparatory by will be added in the code information relevant to statistical time in the current operation page The default load time statistics codes information write, by the default load time statistics codes information realization to current page Load time detection, without directly be added in loading procedure in the object information by cumbersome code coding The default load time statistics codes information reaches efficient loading page to realize the automatic detection to current page The detection of time.
The present embodiment through the above scheme, passes through the current page code information to be detected of acquisition;It will be described current to be detected Page code information is compared with preset time statistical function field information, is obtained according to comparison result described current to be detected Aiming field information in page code information;The object information in the aiming field information is extracted, in the object information It carries out that the default load time statistics codes information is added in loading procedure;Run the default load time statistics codes letter The breath statistics current page load time, to preset load time statistics by carrying out middle add in loading procedure in object information Code information carries out time statistics to current page and realizes the seamless load of code without carrying out the secondary development of code, reach Improve the purpose of the treatment effeciency of detection page load time.
In one embodiment, as shown in figure 3, proposing present invention detection page load time method the based on first embodiment Two embodiments, in the present embodiment, the step S10, comprising:
Step S101 obtains the page address information of the current page to be detected.
It should be noted that the page address information can be the Internet protocol address of the current page to be detected (Internet Protocol Address, IP) address information, such as 192.1.1.1 can also be browser address information, example Such as www.baidu.com, the present embodiment with no restriction, in the present embodiment, says this by taking browser address information as an example It is bright.
Step S102 sends access request to the corresponding service of the page address information according to the page address information Device information.
In the present embodiment, in order to obtain the code information of the current page to be detected, it is necessary first to by current with management The server of the page is attached, and after successful connection, the code information of current page is sent by the server, thus Guarantee the safety of the maintenance page.
Step S103 judges whether the response feedback information for receiving server to the access request.
It should be noted that server asks current accessed when receiving the page address information transmission access request It asks and is verified, after a successful authentication, the code information for allowing to obtain the current page to be detected passes through in the present embodiment Send transmission of the response feedback information realization to code information.
Step S104 extracts the response when receiving response feedback information of the server to the access request Input stream information in feedback information, using the input stream information as the current page code information to be detected.
In the concrete realization, when receiving response feedback information of the server to access request, the response feedback letter The code information of the current page to be detected is carried in breath, thus realize the acquisition of the code information to the current page to be detected, In the present embodiment, the code information of the current page to be detected is managed by way of inputting stream information, to protect Message transmission rate in information transmission is demonstrate,proved, data-handling efficiency is improved.
In one embodiment, before the step S103, the method also includes:
The reference account information in the access information is extracted, is sent to the server with reference to account information for described, So that the server is compared described with reference to account information with the white list information of predeterminable area, tested according to comparison result Demonstrate,prove the target account information for whether belonging to reference to account information and recording in the white list.
It in the present embodiment, can be white by establishing in order to guarantee to detect the safety of current page code information to be detected List information is verified to the user of access, is included in white list information in the information of the user, then it is assumed that current The user used is secured user, and user is allowed to carry out Code obtaining, on the contrary, if the information in the user is not included in In white list information, then it is assumed that currently used user is unauthorized user, in this case, user is not allowed to carry out code It obtains, to guarantee the safety of page code.
In one embodiment, the step S103, comprising:
When receiving the verification result that the server is sent, then judgement receives server to the access request Respond feedback information.
When not receiving the verification result that the server is sent, then judge not receiving server to the access request Response feedback information.
Scheme provided in this embodiment, by with server carry out information exchange, obtain after a successful authentication currently to The code information of the page is detected, and the server is sent to by the account information in the extraction access information and is tested Card, to guarantee the safety of data transmission.
In one embodiment, as shown in figure 4, proposing that the present invention detection page adds based on the first embodiment or the second embodiment It carries time method 3rd embodiment to be illustrated based on first embodiment in the present embodiment, the step S30, comprising:
Step S301 extracts the object information in the aiming field information, counts the start bit in the object information It sets and end position, and obtains the default load time statistics codes information prestored in predeterminable area.
In the present embodiment, the aiming field information is runtime function information, original to current page in order to realize The addition of code, by obtaining runtime function information, by default pair in the function that can record the webpage time in current web page The default load time statistics codes information is added in image information, to realize the statistics to the current page load time.
Step S302 is carried out in loading procedure in the object information, logical according to the starting position and end position The default load time statistics codes information will be added in the mode for crossing+load in the object information, wherein described preset adds Time statistics codes information is carried for detecting page load time.
In the concrete realization, the object information in the aiming field information is extracted, opening in the object information is counted Beginning position and end position, and obtain the default load time statistics codes information, according to the starting position and End position will add the default load time statistics codes in the starting position and the code information of end position Central Plains Information, so that the automatic detection to the current page load time is realized on the basis of source code, without carrying out the two of code Secondary exploitation realizes the seamless load of code, realizes the detection of more efficient page load time.
In the present embodiment, described preset can be added in the category information loading procedure of the page by way of+load to add Carry time statistics codes information, can also realize the load of code by other means, the present embodiment to this with no restriction, in this reality Apply in example, by way of+load for be illustrated.
In one embodiment, before the step S301, the method also includes:
Obtain code write instruction, extract default load time statistics codes information in the code write instruction and Address information to be written.
It should be noted that needing to obtain by before adding default load time statistics codes information in the object information Replace code write instruction, the code information and address information in the code write instruction is extracted, according to the address information The code information is written, to realize the write-in of statistics codes information.
It is understood that the code write instruction can be to be write by serial ports input code write instruction by described Enter instruction the default load time statistics codes information is written, can also carry out code input by default interface, this Embodiment to this with no restriction.
The default load time statistics codes information write-in predeterminable area is carried out according to the address information to be written It saves.
In the present embodiment, the predeterminable area can be the region where current system, can be also the area in other equipment Domain is attached at the region in other equipment with the other equipment, is extracted in the other equipment after connection The default load time statistics codes information prestored writes the default load time statistics codes information to realize Enter.
In one embodiment, the step S40, comprising:
S401 runs current label information in current page described in the default load time statistics codes acquisition of information, Extract the original time information of the current page recorded in the current label information.
It should be noted that in order to obtain the current time information of current page, by the code information of the current page It is configured by default label, by the label information in code information and preset relation mapping table that default label information is arranged It is compared, the label information of recording time information in current page is obtained according to comparison result, believe according to the record time is obtained The original time information of current page is extracted in the label information of breath, to realize the data analysis more refined.
S402 obtains target labels information in the target pages when current page is switched to target pages, extracts institute State the target time information recorded in target labels information.
It is understood that believing after current page load is completed using the page info after load as target pages The code information that default label information is arranged is compared by breath with the label information in preset relation mapping table, according to comparing As a result the label information for obtaining recording time information in target pages, is extracted according in the label information for obtaining recording time information The target time information recorded in target labels information, to realize the data analysis more refined.
S403 calculates the current page load time according to the original time information and target time information.
In the concrete realization, worked as by the target time information of acquisition and the difference of the original time information Preceding page load time, to realize the statistics to the current page load time.
In one embodiment, after the step S40, the method also includes:
Whether the object information detected in the current page code information to be detected updates;
Pass through+detected in loading procedure according to the starting position and end position in the object information It is described pre- by being added in updated object information when being updated to the object information in the current page code information to be detected If load time statistics codes information;
Run the default load time statistics codes Information Statistics updated current page load time.
It, can also be in current page code information to be detected described in real-time detection it should be noted that in the present embodiment Whether object information changes, and is detecting that the object information in the current page code information to be detected changes When, default load time statistics codes information will be added in updated object information, run the default load time statistics The current page load time after code information statistical updating, such as when load time on the statistics page, current page A switching When for page B, the statistics of load time can be continued to updated page B, to improve the default load time system Count the flexibility of code information statistics page load time.
Scheme provided in this embodiment, by obtaining the default load time statistics codes information, according to the beginning Position and end position will add the default load time statistics codes information in original code information, thus in object information It carries out middle add in loading procedure and presets load time statistics codes information to current page progress time statistics, without carrying out generation The secondary development of code, realizes the seamless load of code, realizes the detection of more efficient page load time.
The present invention further provides a kind of detection page load time devices.
It is the functional block diagram of present invention detection page load time device first embodiment referring to Fig. 5, Fig. 5.
The present invention detects in page load time device first embodiment, which includes:
Module 10 is obtained, for obtaining current page code information to be detected.
It should be noted that the current page code information to be detected is to detect the current page letter of page load time Breath, in the present embodiment, the current page code information to be detected can be the page code operated on Mobile operating system, Such as the page code of Apple Macintosh operating system (IPhone Operating System, IOS), it also may operate at Android system Page code, the present embodiment with no restriction, in the present embodiment, carry out this to operate in the page code of IOS system Explanation.
In the concrete realization, current page code information to be detected can be obtained by sampling instrument, it can also be by parsing work Tool parses the webpage being currently running, and obtains current page code information to be detected, to realize to current page Detection.
Comparison module 20 is used for the current page code information to be detected and preset time statistical function field information It is compared, the aiming field information in the current page code information to be detected is obtained according to comparison result.
It should be noted that the preset time statistical function field information is preset function information, such as runtime etc. Function information relevant to statistical time, so as to go out and statistical time phase in the current page code information searching to be detected The code information of pass realizes the screening of the code information to current page, wherein the preset time statistical function field information For code information existing in source code, it is merely representative of the function information being equipped with time correlation, and the field information can not Realize time statistical function.
In the concrete realization, preset time statistical function field information, such as runtime are obtained, by the preset time Statistical function field information is compared with the code information of current page, according to comparison result, finds out current page code In code information identical with runtime, using the relevant code information as the aiming field information, to realize pair The automatic detection of current page, the processing that current page is more refined.
Extraction module 30 is added for extracting the object information in the aiming field information in the object information The default load time statistics codes information is added during carrying.
It should be noted that the object information is the code information handled when current page loads, pass through acquisition Processing code of the current page code in load, so as to be loaded by the processing information realization of the code to current page The statistics of time, without searching function situation of change when load in full page code again, raising loads on the statistics page The treatment effeciency when time.
In the present embodiment, the default load time statistics codes information is pre-set code information, the generation Code information can realize the statistics to loading page, so that need to be only added by code to pre-set code information can be realized pair Automatically the time of loading page time-consuming is counted, achievees the purpose that raising system treatment effeciency.
Statistical module 40, for running the default load time statistics codes Information Statistics current page load time.
In the present embodiment, without carrying out secondary development, and by the pre-set code in current page code information to be detected Middle addition statistical time code reaches the detection of more efficient page load time to realize automatically to the statistics of load time.
In the concrete realization, by the way that addition in the code information relevant to statistical time in the current operation page is preparatory The default load time statistics codes information write, by the default load time statistics codes information realization to current page Load time detection, without carrying out the addition of statistical time code directly on original code by cumbersome code coding, To realize the automatic detection to current page, reach the detection of efficient loading page time.
The present embodiment through the above scheme, passes through the current page code information to be detected of acquisition;It will be described current to be detected Page code information is compared with preset time statistical function field information, is obtained according to comparison result described current to be detected Aiming field information in page code information;The object information in the aiming field information is extracted, in the object information It carries out that the default load time statistics codes information is added in loading procedure;Run the default load time statistics codes letter The breath statistics current page load time, thus by the basis of current page existing source code, by default object information The middle default load time statistics codes information of addition carries out time statistics to current page and reaches and mention without carrying out secondary development The purpose of the treatment effeciency of high detection page load time.
In addition, to achieve the above object, the present invention also proposes a kind of detection page load time equipment, the detection page Load time equipment includes: memory, processor and is stored in the inspection that can be run on the memory and on the processor Page load time program is surveyed, the detection page load time program is arranged for carrying out detection page load as described above The step of time method.
In addition, the embodiment of the present invention also proposes a kind of storage medium, detection page load is stored on the storage medium Time-program(me), the detection page load time program are executed by processor detection page load time method as described above The step of.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In computer readable storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are with so that an intelligent terminal is set Standby (can be mobile phone, computer, terminal device, air conditioner or network-termination device etc.) executes each embodiment of the present invention The method.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of detection page load time method, which is characterized in that the detection page load time method includes:
Obtain current page code information to be detected;
The current page code information to be detected is compared with preset time statistical function field information, is tied according to comparing Fruit obtains the aiming field information in the current page code information to be detected;
The object information in the aiming field information is extracted, be added in loading procedure in the object information described default Load time statistics codes information;
Run the default load time statistics codes Information Statistics current page load time.
2. detection page load time method as described in claim 1, which is characterized in that described to obtain the current page to be detected Code information, comprising:
Obtain the page address information of the current page to be detected;
Access request is sent to the corresponding server info of the page address information according to the page address information;
Judge whether the response feedback information for receiving server to the access request;
When receiving response feedback information of the server to the access request, extract defeated in the response feedback information Enter stream information, using the input stream information as the current page code information to be detected.
3. detection page load time method as claimed in claim 2, which is characterized in that described to judge whether to receive service Before device is to the response feedback information of the access request, the method also includes:
The reference account information in the access information is extracted, is sent to the server with reference to account information for described, so that The server is compared described with reference to account information with the white list information of predeterminable area, verifies institute according to comparison result It states and whether belongs to the target account information recorded in the white list with reference to account information;
The response feedback information for judging whether to receive server to the access request, comprising:
When receiving the verification result that the server is sent, then judgement receives response of the server to the access request Feedback information;
When not receiving the verification result that the server is sent, then judge not receiving server to the sound of the access request Answer feedback information.
4. detection page load time method as claimed any one in claims 1 to 3, which is characterized in that the extraction institute The object information in aiming field information is stated, carries out that the default load time system is added in loading procedure in the object information Count code information, comprising:
The object information in the aiming field information is extracted, the starting position in the object information and end position are counted, And obtain the default load time statistics codes information prestored in predeterminable area;
It is carried out in loading procedure in the object information, according to the starting position and end position by way of+load The default load time statistics codes information will be added in the object information, wherein the default load time counts generation Code information is for detecting page load time.
5. detection page load time method as claimed in claim 4, which is characterized in that prestored in the acquisition predeterminable area The default load time statistics codes information before, the method also includes:
Code write instruction is obtained, default load time statistics codes information in the code write instruction and to be written is extracted Enter address information;
The default load time statistics codes information write-in predeterminable area is saved according to the address information to be written.
6. detection page load time method as claimed any one in claims 1 to 3, which is characterized in that the operation institute State the default load time statistics codes Information Statistics current page load time, comprising:
Current label information in current page described in the default load time statistics codes acquisition of information is run, is worked as described in extraction The original time information of the current page recorded in preceding label information;
When current page is switched to target pages, target labels information in the target pages is obtained, extracts the target mark The target time information recorded in label information;
The current page load time is calculated according to the original time information and target time information.
7. detection page load time method as claimed any one in claims 1 to 3, which is characterized in that the operation institute After stating the default load time statistics codes Information Statistics current page load time, the method also includes:
Whether the object information detected in the current page code information to be detected updates;
It, will be in updated object information when detecting that the object information in the current page code information to be detected updates Add the default load time statistics codes information;
Run the default load time statistics codes Information Statistics updated current page load time.
8. a kind of detection page load time device, which is characterized in that the detection page load time device includes:
Module is obtained, for obtaining current page code information to be detected;
Comparison module, for comparing the current page code information to be detected with preset time statistical function field information Compared with obtaining the aiming field information in the current page code information to be detected according to comparison result;
Extraction module carries out loading procedure in the object information for extracting the object information in the aiming field information It is middle that the default load time statistics codes information is added;
Statistical module, for running the default load time statistics codes Information Statistics current page load time.
9. a kind of detection page load time equipment, which is characterized in that the detection page load time equipment includes: storage Device, processor and the detection page load time program that is stored on the memory and can run on the processor, institute It states detection page load time program and is arranged for carrying out detection page load time as described in any one of claims 1 to 7 The step of method.
10. a kind of storage medium, which is characterized in that detection page load time program is stored on the storage medium, it is described Detection page load time program realizes that the detection page as described in any one of claims 1 to 7 adds when being executed by processor The step of carrying time method.
CN201910433179.2A 2019-05-21 2019-05-21 Detect page load time method, apparatus, equipment and storage medium Pending CN110287436A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910433179.2A CN110287436A (en) 2019-05-21 2019-05-21 Detect page load time method, apparatus, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910433179.2A CN110287436A (en) 2019-05-21 2019-05-21 Detect page load time method, apparatus, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110287436A true CN110287436A (en) 2019-09-27

Family

ID=68002456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910433179.2A Pending CN110287436A (en) 2019-05-21 2019-05-21 Detect page load time method, apparatus, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110287436A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579430A (en) * 2019-09-30 2021-03-30 北京国双科技有限公司 Processing method and device for collected codes

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683180A (en) * 2015-02-12 2015-06-03 北京蓝海讯通科技有限公司 Performance monitoring method and system as well as application server
CN107391518A (en) * 2016-05-17 2017-11-24 腾讯科技(深圳)有限公司 Count system, the method and device of page load performance information

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683180A (en) * 2015-02-12 2015-06-03 北京蓝海讯通科技有限公司 Performance monitoring method and system as well as application server
CN107391518A (en) * 2016-05-17 2017-11-24 腾讯科技(深圳)有限公司 Count system, the method and device of page load performance information

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579430A (en) * 2019-09-30 2021-03-30 北京国双科技有限公司 Processing method and device for collected codes

Similar Documents

Publication Publication Date Title
CN107133180B (en) Dynamic page testing method, testing device and storage medium
US20170337122A1 (en) Synthetic test recorder installed inline with a web portal
CN109660502A (en) Detection method, device, equipment and the storage medium of abnormal behaviour
CN110324338A (en) Data interactive method, device, fort machine and computer readable storage medium
CN109039987A (en) A kind of user account login method, device, electronic equipment and storage medium
CN109672580A (en) Full link monitoring method, apparatus, terminal device and storage medium
CN109639749B (en) Cloud desktop access method, device, equipment and storage medium
CN110798445B (en) Public gateway interface testing method and device, computer equipment and storage medium
CN112367680B (en) External communication test method and device based on intelligent ammeter and computer equipment
CN104581802A (en) Test method and test system for GSM-R network
CN105786636B (en) A kind of system repair and device
CN109982325A (en) A kind of method, apparatus, equipment and storage medium obtaining information of mobile terminal
CN110188159A (en) Collage-credit data cut-in method, device, equipment and computer readable storage medium
CN107172075A (en) Communication means, system and readable storage medium storing program for executing based on Network Isolation
JP4440185B2 (en) Scenario editing apparatus, pseudo base station test system, pseudo terminal test system, scenario editing method and test processing method, and storage medium storing computer-readable program and program
CN109688183A (en) Group control device recognition methods, device, equipment and computer readable storage medium
CN110287436A (en) Detect page load time method, apparatus, equipment and storage medium
CN108875368A (en) A kind of safety detection method, apparatus and system
CN110177096A (en) Client certificate method, apparatus, medium and calculating equipment
CN112905464B (en) Application running environment data processing method and device
CN114650211A (en) Fault repairing method, device, electronic equipment and computer readable storage medium
KR100870146B1 (en) A system of learning using mobile unit and a method thereof
CN109714371B (en) Industrial control network safety detection system
CN107872493A (en) A kind of information processing method, terminal and server
Lee et al. Collecting big data from automotive ECUs beyond the CAN bandwidth for fault visualization

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190927

RJ01 Rejection of invention patent application after publication