Summary of the invention
In view of this, the present disclosure proposes a kind of determination method and devices of page load duration.
According to the one side of the disclosure, a kind of determination method of page load duration is provided, comprising:
After the page starts load, the corresponding multiple page-images of the page are obtained;
Determine the edge pixel number in the page-images, wherein the edge pixel number in the page-images indicates institute
State pixel number shared by marginal portion in page-images;
According to the edge pixel number in the page-images, determine that the page has loaded from multiple page-images
Corresponding page-images when finishing;
The acquisition time of corresponding page-images and the page start load when according to the page loaded
Time determines the load duration of the page.
In one possible implementation, according to the edge pixel number in the page-images, from multiple pages
Corresponding page-images when the page loaded are determined in image, comprising:
Determine the edge pixel number in first page image and the side in the page-images after the first page image
The difference of edge pixel number, wherein the first page image is any one page-images in multiple page-images;
If the edge in the page-images after edge pixel number and the first page image in first page image
The difference of pixel number meets first condition, then the first page image is determined as candidate image;
It is corresponding when the earliest page-images of acquisition time in the candidate image are determined as the page loaded
Page-images.
In one possible implementation, according to the edge pixel number in the page-images, from multiple pages
Corresponding page-images when the page loaded are determined in image, comprising:
Determine the edge pixel number in first page image and the side in the page-images after the first page image
The difference of edge pixel number, wherein the first page image is any one page-images in multiple page-images;
It determines in edge pixel number in the first page image and the page-images before the first page image
Edge pixel number difference;
If in the page-images after edge pixel number and the first page image in the first page image
The difference of edge pixel number meets first condition, and the edge pixel number in the first page image and the first page figure
The difference of edge pixel number in page-images before picture meets second condition, then the first page image is determined as institute
State corresponding page-images when page loaded.
In one possible implementation, the edge pixel number in the first page image and the first page figure
The difference of the edge pixel number in page-images as after meets first condition, comprising:
In N number of page-images after edge pixel number and the first page image in the first page image
The difference of edge pixel number is 0, wherein N is positive integer.
In one possible implementation, the edge pixel number in the first page image and the first page figure
The difference of the edge pixel number in page-images as after meets first condition, comprising:
In M page-images after edge pixel number and the first page image in the first page image
The absolute value of the difference of edge pixel number is less than first threshold, wherein M is positive integer.
In one possible implementation, the edge pixel number in the first page image and the first page figure
The difference of the edge pixel number in page-images as after meets first condition, comprising:
Edge pixel number and the difference of the edge pixel number in second page image in the first page image are greater than
0, and the edge in the edge pixel number in the first page image and L page-images after the first page image
The absolute value of the difference of pixel number is less than second threshold, wherein L is positive integer, and the second page image is the first page
Any one page-images after the image of face.
In one possible implementation, the edge pixel number in the first page image and the first page figure
The difference of edge pixel number in page-images before picture meets second condition, comprising:
First page-images before edge pixel number and the first page image in the first page image
In edge pixel number difference be greater than 0.
In one possible implementation, after the page starts load, the corresponding multiple page figures of the page are obtained
Picture, comprising:
After the page starts load, the video of the page is recorded;
The corresponding multiple page-images of the page are obtained from the video according to specified frame per second.
According to another aspect of the present disclosure, a kind of determining device of page load duration is provided, comprising:
Module is obtained, for after the page starts load, obtaining the corresponding multiple page-images of the page;
First determining module, for determining the edge pixel number in the page-images, wherein in the page-images
Edge pixel number indicates pixel number shared by marginal portion in the page-images;
Second determining module, for according to the edge pixel number in the page-images, from multiple page-images
Determine corresponding page-images when the page loaded;
Third determining module, the acquisition time of corresponding page-images when for according to the page loaded, and
The page starts the time of load, determines the load duration of the page.
In one possible implementation, second determining module includes:
First determines submodule, for determine the edge pixel number in first page image and the first page image it
The difference of edge pixel number in page-images afterwards, wherein the first page image is in multiple page-images
Any one page-images;
Second determines submodule, if after for the edge pixel number and the first page image in first page image
Page-images in the difference of edge pixel number meet first condition, then the first page image is determined as candidate figure
Picture;
Third determines submodule, for the earliest page-images of acquisition time in the candidate image to be determined as the page
Corresponding page-images when the loaded of face.
In one possible implementation, second determining module includes:
First determines submodule, for determine the edge pixel number in first page image and the first page image it
The difference of edge pixel number in page-images afterwards, wherein the first page image is in multiple page-images
Any one page-images;
4th determines submodule, for determining the edge pixel number in the first page image and the first page figure
The difference of edge pixel number in page-images before picture;
5th determines submodule, if for edge pixel number and the first page image in the first page image
The difference of edge pixel number in page-images later meets first condition, and the edge pixel in the first page image
The difference of edge pixel number in several page-images with before the first page image meets second condition, then by described the
One page-images are determined as corresponding page-images when the page loaded.
In one possible implementation, the edge pixel number in the first page image and the first page figure
The difference of the edge pixel number in page-images as after meets first condition, comprising:
In N number of page-images after edge pixel number and the first page image in the first page image
The difference of edge pixel number is 0, wherein N is positive integer.
In one possible implementation, the edge pixel number in the first page image and the first page figure
The difference of the edge pixel number in page-images as after meets first condition, comprising:
In M page-images after edge pixel number and the first page image in the first page image
The absolute value of the difference of edge pixel number is less than first threshold, wherein M is positive integer.
In one possible implementation, the edge pixel number in the first page image and the first page figure
The difference of the edge pixel number in page-images as after meets first condition, comprising:
Edge pixel number and the difference of the edge pixel number in second page image in the first page image are greater than
0, and the edge in the edge pixel number in the first page image and L page-images after the first page image
The absolute value of the difference of pixel number is less than second threshold, wherein L is positive integer, and the second page image is the first page
Any one page-images after the image of face.
In one possible implementation, the edge pixel number in the first page image and the first page figure
The difference of edge pixel number in page-images before picture meets second condition, comprising:
First page-images before edge pixel number and the first page image in the first page image
In edge pixel number difference be greater than 0.
In one possible implementation, the acquisition module includes:
Submodule is recorded, for after the page starts load, recording the video of the page;
Acquisition submodule, for obtaining the corresponding multiple page figures of the page from the video according to specified frame per second
Picture.
According to another aspect of the present disclosure, a kind of determining device of page load duration is provided, comprising: processor;With
In the memory of storage processor executable instruction;Wherein, the processor is configured to executing the above method.
According to another aspect of the present disclosure, a kind of non-volatile computer readable storage medium storing program for executing is provided, is stored thereon with
Computer program instructions, wherein the computer program instructions realize the above method when being executed by processor.
The determination method and device of the page load duration of all aspects of this disclosure is by obtaining after the page starts load
The corresponding multiple page-images of the page, when determining the page loaded according to the edge pixel number in the page-images of acquisition
Corresponding page-images, and the acquisition time of according to page loaded when corresponding page-images and the page start to load
Time, determine the load duration of the page, thus, it is possible to accurately determine the page load duration.
According to below with reference to the accompanying drawings to detailed description of illustrative embodiments, the other feature and aspect of the disclosure will become
It is clear.
Specific embodiment
Various exemplary embodiments, feature and the aspect of the disclosure are described in detail below with reference to attached drawing.It is identical in attached drawing
Appended drawing reference indicate element functionally identical or similar.Although the various aspects of embodiment are shown in the attached drawings, remove
It non-specifically points out, it is not necessary to attached drawing drawn to scale.
Dedicated word " exemplary " means " being used as example, embodiment or illustrative " herein.Here as " exemplary "
Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, giving numerous details in specific embodiment below to better illustrate the disclosure.
It will be appreciated by those skilled in the art that without certain details, the disclosure equally be can be implemented.In some instances, for
Method, means, element and circuit well known to those skilled in the art are not described in detail, in order to highlight the purport of the disclosure.
Fig. 1 shows the flow chart that the determination method of duration is loaded according to the page of one embodiment of the disclosure.This method can be with
Applied in the terminal devices such as mobile phone, tablet computer or PC (Personal Computer, personal computer).This method
It can be applied in server, for example, can be applied in individual server or cluster server.As shown in Figure 1, this method
Including step S11 to step S14.
In step s 11, after the page starts load, the corresponding multiple page-images of the page are obtained.
The page in the present embodiment can be any page on terminal device.For example, can for application the starting page,
The homepage of application or webpage etc..
In one possible implementation, automatized script or the automated test tool touching of client be can use
Send out the loading procedure of the page.For example, automated test tool can be Appium.
As an example of the implementation, automatized script can be prerecorded for given scenario, to control simultaneously
Trigger page load.
It in one possible implementation,, can after the page starts load if this method executes in terminal device
To the page screenshot, to obtain the corresponding page-images of the page.For example, can be after the page starts load, according to specified frequency
Rate obtains the corresponding page-images of the page to the page screenshot.For example, assigned frequency can it is primary for every 0.2 second screenshot or
The every 0.1 second screenshot one of person is inferior.
In alternatively possible implementation, if this method executes in the server, terminal is detected in server
, can be with instruction terminal equipment to the page screenshot when page starts load in equipment, and page that receiving terminal apparatus is sent
The corresponding page-images in face.For example, server can indicate when server detects that the page starts load in terminal device
Terminal device is according to assigned frequency to the page screenshot.
In step s 12, the edge pixel number in page-images is determined, wherein the edge pixel number table in page-images
Show pixel number shared by marginal portion in page-images.
In one possible implementation, edge inspection can be carried out to page-images using Canny edge detection algorithm
It surveys, to determine the edge pixel number in page-images.Wherein, edge is carried out to page-images by Canny edge detection algorithm
Detection, may include page-images are converted to grayscale image, are denoised by Gaussian Blur, calculate gradient value and direction, into
Row non-maxima suppression and setting hysteresis threshold, details are not described herein.
Fig. 2 shows the schematic diagrames of page-images in the determination method for loading duration according to the page of one embodiment of the disclosure.
Fig. 3 shows the signal that the marginal portion in the determination method of duration in page-images is loaded according to the page of one embodiment of the disclosure
Figure.As shown in Figures 2 and 3, edge all in Fig. 2 is shown in Fig. 3 with black lines.
In step s 13, according to the edge pixel number in page-images, page load is determined from multiple page-images
Corresponding page-images when finishing.
It in one possible implementation, can be with when determining the page loaded after corresponding page-images
Edge pixel number when according to the page loaded in corresponding page-images and the edge pixel in each page-images
Number, determines the corresponding load completed percentage of each page-images.
In step S14, the acquisition time of corresponding page-images and the page are opened when according to the page loaded
Begin the time loaded, determines the load duration of the page.
In one possible implementation, terminal device can be received to the time of page load instruction as the page
Face starts the time of load.
In one possible implementation, the acquisition time of corresponding page-images when can be by the page loaded
The time difference for starting the time of load with the page, the load duration as the page.
The present embodiment is by after the page starts load, obtaining the corresponding multiple page-images of the page, according to acquisition
Edge pixel number in page-images determines corresponding page-images when the page loaded, and when according to page loaded
The acquisition time of corresponding page-images and the page start the time of load, determine the load duration of the page, thus, it is possible to
It is enough accurate to determine that the page loads duration, make determined by page load duration more meet human eye cognition, and user is practical experiences
The page load duration be more consistent.
Fig. 4 show according to the page of one embodiment of the disclosure load duration determination method and step S13 it is one illustrative
Flow chart.As shown in figure 4, step S13 may include step S131 to step S133.
In step S131, the page figure after the edge pixel number and first page image in first page image is determined
The difference of edge pixel number as in, wherein first page image is any one page-images in multiple page-images.
In one possible implementation, determine edge pixel number in first page image and first page image it
The difference of edge pixel number in page-images afterwards, can be with are as follows: determines the edge pixel number and first in first page image
The difference of the edge pixel number in continuous multiple page-images after page-images.
In step S132, if the edge pixel number in first page image and the page-images after first page image
In the difference of edge pixel number meet first condition, then first page image is determined as candidate image.
In one possible implementation, after the edge pixel number in first page image and first page image
The difference of edge pixel number in page-images meets first condition, comprising: the edge pixel number in first page image and
The difference of the edge pixel number in N number of page-images after one page-images is 0, wherein N is positive integer.Wherein, first page
The difference of the edge pixel number in N number of page-images after edge pixel number and first page image in the image of face is 0, can
To refer to the edge pixel number in the edge pixel number in first page image and N number of page-images after first page image
Difference is 0.
As an example of the implementation, after the edge pixel number and first page image in first page image
Page-images in the difference of edge pixel number meet first condition, comprising: if the page is static page, first page
The difference of the edge pixel number in N number of page-images after edge pixel number and first page image in image is 0,
In, N is positive integer.
In alternatively possible implementation, after the edge pixel number and first page image in first page image
Page-images in the difference of edge pixel number meet first condition, comprising: edge pixel number in first page image with
The absolute value of the difference of the edge pixel number in M page-images after first page image is less than first threshold, wherein M
For positive integer.Wherein, the side in the edge pixel number in first page image and M page-images after first page image
The absolute value of the difference of edge pixel number is less than first threshold, can refer to edge pixel number and the first page in first page image
The absolute value of the difference of the edge pixel number in M page-images after image is respectively less than first threshold.
As an example of the implementation, after the edge pixel number and first page image in first page image
Page-images in the difference of edge pixel number meet first condition, comprising: if the page is dynamic page, first page
The absolute value of the difference of the edge pixel number in M page-images after edge pixel number and first page image in image
Less than first threshold, wherein M is positive integer.
In alternatively possible implementation, after the edge pixel number and first page image in first page image
Page-images in the difference of edge pixel number meet first condition, comprising: edge pixel number in first page image with
The difference of edge pixel number in second page image is greater than 0, and edge pixel number and first page in first page image
The absolute value of the difference of the edge pixel number in L page-images after image is less than second threshold, wherein and L is positive integer,
Second page image is any one page-images after first page image.
As an example of the implementation, after the edge pixel number and first page image in first page image
Page-images in the difference of edge pixel number meet first condition, comprising: if the page is dynamic page, first page
The difference of the edge pixel number in edge pixel number and second page image in image is greater than 0, and in first page image
The absolute value of the difference of the edge pixel number in L page-images after edge pixel number and first page image is less than second
Threshold value, wherein L is positive integer, and second page image is any one page-images after first page image.
In step S133, when the earliest page-images of acquisition time in candidate image are determined as the page loaded
Corresponding page-images.
Fig. 5 show according to the page of one embodiment of the disclosure load duration determination method and step S13 it is one illustrative
Flow chart.As shown in figure 5, step S13 may include step S134 step S136.
In step S134, the page figure after the edge pixel number and first page image in first page image is determined
The difference of edge pixel number as in, wherein first page image is any one page-images in multiple page-images.
In step S135, the page figure before the edge pixel number and first page image in first page image is determined
The difference of edge pixel number as in.
In one possible implementation, determine edge pixel number in first page image and first page image it
The difference of edge pixel number in preceding page-images, can be with are as follows: determines the edge pixel number and first in first page image
The difference of the edge pixel number in first page-images before page-images.Wherein, first before first page image
A page-images can indicate page-images before first page image and adjacent with first page image.
In step S136, if the edge pixel number in first page image and the page-images after first page image
In the difference of edge pixel number meet first condition, and the edge pixel number in first page image and first page image it
The difference of edge pixel number in preceding page-images meets second condition, then first page image is determined as page load
Corresponding page-images when finishing.
In one possible implementation, after the edge pixel number in first page image and first page image
The difference of edge pixel number in page-images meets first condition, comprising: the edge pixel number in first page image and
The difference of the edge pixel number in N number of page-images after one page-images is 0, wherein N is positive integer.Wherein, first page
The difference of the edge pixel number in N number of page-images after edge pixel number and first page image in the image of face is 0, can
To refer to the edge pixel number in the edge pixel number in first page image and N number of page-images after first page image
Difference is 0.
As an example of the implementation, after the edge pixel number and first page image in first page image
Page-images in the difference of edge pixel number meet first condition, comprising: if the page is static page, first page
The difference of the edge pixel number in N number of page-images after edge pixel number and first page image in image is 0,
In, N is positive integer.
Fig. 6, which is shown, loads in the determination method of duration edge in multiple page-images according to the page of one embodiment of the disclosure
The schematic diagram of the curve graph of edge pixel number in partial schematic diagram and multiple page-images.As shown in fig. 6, if the page is quiet
The state page, then in the loading procedure of the page, the edge pixel number in page-images gradually increases, when page loaded,
Edge pixel number in page-images reaches maximum value, and after page loaded, the edge pixel number in page-images
It remains unchanged.In Fig. 6, the 5th page-images corresponding page-images when being page loaded.For example, adjacent page in Fig. 6
Time interval between the image of face is 200 milliseconds, then can determine 1000 milliseconds a length of when the load of this page.
In the present embodiment, static page can refer to the page remained unchanged after loaded.Do not include in static page
Dynamic Graph or carousel figure.There is the page changed after can referring to loaded in dynamic page.Dynamic page may include dynamic
Figure or carousel figure etc..
In alternatively possible implementation, after the edge pixel number and first page image in first page image
Page-images in the difference of edge pixel number meet first condition, comprising: edge pixel number in first page image with
The absolute value of the difference of the edge pixel number in M page-images after first page image is less than first threshold, wherein M
For positive integer.Wherein, the side in the edge pixel number in first page image and M page-images after first page image
The absolute value of the difference of edge pixel number is less than first threshold, can refer to edge pixel number and the first page in first page image
The absolute value of the difference of the edge pixel number in M page-images after image is respectively less than first threshold.
As an example of the implementation, after the edge pixel number and first page image in first page image
Page-images in the difference of edge pixel number meet first condition, comprising: if the page is dynamic page, first page
The absolute value of the difference of the edge pixel number in M page-images after edge pixel number and first page image in image
Less than first threshold, wherein M is positive integer.
In alternatively possible implementation, after the edge pixel number and first page image in first page image
Page-images in the difference of edge pixel number meet first condition, comprising: edge pixel number in first page image with
The difference of edge pixel number in second page image is greater than 0, and edge pixel number and first page in first page image
The absolute value of the difference of the edge pixel number in L page-images after image is less than second threshold, wherein and L is positive integer,
Second page image is any one page-images after first page image.
As an example of the implementation, after the edge pixel number and first page image in first page image
Page-images in the difference of edge pixel number meet first condition, comprising: if the page is dynamic page, first page
The difference of the edge pixel number in edge pixel number and second page image in image is greater than 0, and in first page image
The absolute value of the difference of the edge pixel number in L page-images after edge pixel number and first page image is less than second
Threshold value, wherein L is positive integer, and second page image is any one page-images after first page image.
Fig. 7, which is shown, loads in the determination method of duration edge in multiple page-images according to the page of one embodiment of the disclosure
The schematic diagram of the curve graph of edge pixel number in partial schematic diagram and multiple page-images.As shown in fig. 7, if the page is
The state page, then in the loading procedure of the page, the edge pixel number in page-images gradually increases, after page loaded,
Edge pixel number in page-images still has fuctuation within a narrow range.In Fig. 7, when the 10th page-images are page loaded
Corresponding page-images.For example, the time interval in Fig. 7 between adjacent page image is 200 milliseconds, then this page can be determined
Face is 2000 milliseconds a length of when loading.
In one possible implementation, before the edge pixel number in first page image and first page image
The difference of edge pixel number in page-images meets second condition, comprising: the edge pixel number in first page image and
The difference of the edge pixel number in first page-images before one page-images is greater than 0.
Fig. 8 show according to the page of one embodiment of the disclosure load duration determination method and step S11 it is one illustrative
Flow chart.As shown in figure 8, step S11 may include step S111 and step S112.
In step S111, after the page starts load, the video of the page is recorded.
In one possible implementation, ADB (Android Debug Bridge, Android debug bridge) record can be passed through
Make the video of the page.
In one possible implementation, it is possible to specify the code rate of the video of the page is recorded, it is obtained to determine
The precision of video.
In one possible implementation, it is possible to specify record the recording duration of the page.
In one possible implementation, the video of recording can be stored in terminal device.For example, can be stored in
In the SD (Secure Digital memory, safe digital storage card) of terminal device.
In step S112, the corresponding multiple page-images of the page are obtained from the video according to specified frame per second.
In one possible implementation, the video can be obtained from the SD card of terminal device, and can be passed through
FFMpeg program obtains the corresponding multiple page figures of the page according to specified frame per second by the Video Quality Metric at the image of serializing
Picture.Wherein, specified frame per second can be 5 frame per second or 10 frame per second.
Fig. 9 shows the block diagram that the determining device of duration is loaded according to the page of one embodiment of the disclosure.As shown in figure 9, should
Device includes: to obtain module 91, for after the page starts load, obtaining the corresponding multiple page-images of the page;First really
Cover half block 92, for determining the edge pixel number in page-images, wherein the edge pixel number representation page figure in page-images
The pixel number shared by marginal portion as in;Second determining module 93, for according to the edge pixel number in page-images, from multiple
Corresponding page-images when the page loaded are determined in page-images;Third determining module 94, for being added according to the page
The time that the acquisition time of corresponding page-images and the page when finishing start load is carried, when determining the load of the page
It is long.
Figure 10 shows the illustrative block diagram that the determining device of duration is loaded according to the page of one embodiment of the disclosure.Such as
Shown in Figure 10:
In one possible implementation, the second determining module 93 includes: the first determining submodule 931, for determining
The difference of the edge pixel number in the page-images after edge pixel number and first page image in first page image,
In, first page image is any one page-images in multiple page-images;Second determines submodule 932, if for the
The difference of the edge pixel number in the page-images after edge pixel number and first page image in one page-images meets
First page image is then determined as candidate image by first condition;Third determines submodule 933, for will obtain in candidate image
The page-images for taking the time earliest are determined as corresponding page-images when the page loaded.
In one possible implementation, the second determining module 93 includes: the first determining submodule 931, for determining
The difference of the edge pixel number in the page-images after edge pixel number and first page image in first page image,
In, first page image is any one page-images in multiple page-images;4th determines submodule 934, for determining
The difference of the edge pixel number in the page-images before edge pixel number and first page image in first page image;The
Five determine submodule 935, if for the page-images after the edge pixel number and first page image in first page image
In the difference of edge pixel number meet first condition, and the edge pixel number in first page image and first page image it
The difference of edge pixel number in preceding page-images meets second condition, then first page image is determined as page load
Corresponding page-images when finishing.
In one possible implementation, after the edge pixel number in first page image and first page image
The difference of edge pixel number in page-images meets first condition, comprising: the edge pixel number in first page image and
The difference of the edge pixel number in N number of page-images after one page-images is 0, wherein N is positive integer.
In one possible implementation, after the edge pixel number in first page image and first page image
The difference of edge pixel number in page-images meets first condition, comprising: the edge pixel number in first page image and
The absolute value of the difference of the edge pixel number in M page-images after one page-images is less than first threshold, wherein M is
Positive integer.
In one possible implementation, after the edge pixel number in first page image and first page image
The difference of edge pixel number in page-images meets first condition, comprising: the edge pixel number in first page image and
The difference of edge pixel number in two page-images is greater than 0, and the edge pixel number in first page image and first page figure
The absolute value of the difference of the edge pixel number in L page-images as after is less than second threshold, wherein and L is positive integer, the
Two page-images are any one page-images after first page image.
In one possible implementation, before the edge pixel number in first page image and first page image
The difference of edge pixel number in page-images meets second condition, comprising: the edge pixel number in first page image and
The difference of the edge pixel number in first page-images before one page-images is greater than 0.
In one possible implementation, obtaining module 91 includes: to record submodule 911, for starting to add in the page
After load, the video of the page is recorded;Acquisition submodule 912, it is corresponding for obtaining the page from the video according to specified frame per second
Multiple page-images.
The present embodiment is by after the page starts load, obtaining the corresponding multiple page-images of the page, according to acquisition
Edge pixel number in page-images determines corresponding page-images when the page loaded, and when according to page loaded
The acquisition time of corresponding page-images and the page start the time of load, determine the load duration of the page, thus, it is possible to
Enough accurate determining pages load duration.
Figure 11 is a kind of frame of the device 800 of determination for page load duration shown according to an exemplary embodiment
Figure.For example, device 800 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console put down
Panel device, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Fig.1 1, device 800 may include following one or more components: processing component 802, memory 804, power supply
Component 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814, and
Communication component 816.
The integrated operation of the usual control device 800 of processing component 802, such as with display, telephone call, data communication, phase
Machine operation and record operate associated operation.Processing component 802 may include that one or more processors 820 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more modules, just
Interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, it is more to facilitate
Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in device 800.These data are shown
Example includes the instruction of any application or method for operating on device 800, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 may include power management system
System, one or more power supplys and other with for device 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between described device 800 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers
Body component 808 includes a front camera and/or rear camera.When device 800 is in operation mode, such as screening-mode or
When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike
Wind (MIC), when device 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 804 or via communication set
Part 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented
Estimate.For example, sensor module 814 can detecte the state that opens/closes of device 800, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 800, and sensor module 814 can be with 800 1 components of detection device 800 or device
Position change, the existence or non-existence that user contacts with device 800,800 orientation of device or acceleration/deceleration and device 800
Temperature change.Sensor module 814 may include proximity sensor, be configured to detect without any physical contact
Presence of nearby objects.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, at
As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device
800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation
In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-volatile computer readable storage medium storing program for executing is additionally provided, for example including calculating
The memory 804 of machine program instruction, above-mentioned computer program instructions can be executed above-mentioned to complete by the processor 820 of device 800
Method.
Figure 12 is a kind of device 1900 of determination for page load duration shown according to an exemplary embodiment
Block diagram.For example, device 1900 may be provided as a server.Referring to Fig.1 2, device 1900 includes processing component 1922, into
One step includes one or more processors and memory resource represented by a memory 1932, can be by handling for storing
The instruction of the execution of component 1922, such as application program.The application program stored in memory 1932 may include one or one
Each more than a corresponds to the module of one group of instruction.In addition, processing component 1922 is configured as executing instruction, on executing
State method.
Device 1900 can also include that a power supply module 1926 be configured as the power management of executive device 1900, and one
Wired or wireless network interface 1950 is configured as device 1900 being connected to network and input and output (I/O) interface
1958.Device 1900 can be operated based on the operating system for being stored in memory 1932, such as Windows ServerTM, Mac
OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
In the exemplary embodiment, a kind of non-volatile computer readable storage medium storing program for executing is additionally provided, for example including calculating
The memory 1932 of machine program instruction, above-mentioned computer program instructions can be executed by the processing component 1922 of device 1900 to complete
The above method.
The disclosure can be system, method and/or computer program product.Computer program product may include computer
Readable storage medium storing program for executing, containing for making processor realize the computer-readable program instructions of various aspects of the disclosure.
Computer readable storage medium, which can be, can keep and store the tangible of the instruction used by instruction execution equipment
Equipment.Computer readable storage medium for example can be-- but it is not limited to-- storage device electric, magnetic storage apparatus, optical storage
Equipment, electric magnetic storage apparatus, semiconductor memory apparatus or above-mentioned any appropriate combination.Computer readable storage medium
More specific example (non exhaustive list) includes: portable computer diskette, hard disk, random access memory (RAM), read-only deposits
It is reservoir (ROM), erasable programmable read only memory (EPROM or flash memory), static random access memory (SRAM), portable
Compact disk read-only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanical coding equipment, for example thereon
It is stored with punch card or groove internal projection structure and the above-mentioned any appropriate combination of instruction.Calculating used herein above
Machine readable storage medium storing program for executing is not interpreted that instantaneous signal itself, the electromagnetic wave of such as radio wave or other Free propagations lead to
It crosses the electromagnetic wave (for example, the light pulse for passing through fiber optic cables) of waveguide or the propagation of other transmission mediums or is transmitted by electric wire
Electric signal.
Computer-readable program instructions as described herein can be downloaded to from computer readable storage medium it is each calculate/
Processing equipment, or outer computer or outer is downloaded to by network, such as internet, local area network, wide area network and/or wireless network
Portion stores equipment.Network may include copper transmission cable, optical fiber transmission, wireless transmission, router, firewall, interchanger, gateway
Computer and/or Edge Server.Adapter or network interface in each calculating/processing equipment are received from network to be counted
Calculation machine readable program instructions, and the computer-readable program instructions are forwarded, for the meter being stored in each calculating/processing equipment
In calculation machine readable storage medium storing program for executing.
Computer program instructions for executing disclosure operation can be assembly instruction, instruction set architecture (ISA) instructs,
Machine instruction, machine-dependent instructions, microcode, firmware instructions, condition setup data or with one or more programming languages
The source code or object code that any combination is write, the programming language include the programming language-of object-oriented such as
Smalltalk, C++ etc., and conventional procedural programming languages-such as " C " language or similar programming language.Computer
Readable program instructions can be executed fully on the user computer, partly execute on the user computer, be only as one
Vertical software package executes, part executes on the remote computer or completely in remote computer on the user computer for part
Or it is executed on server.In situations involving remote computers, remote computer can pass through network-packet of any kind
It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit
It is connected with ISP by internet).In some embodiments, by utilizing computer-readable program instructions
Status information carry out personalized customization electronic circuit, such as programmable logic circuit, field programmable gate array (FPGA) or can
Programmed logic array (PLA) (PLA), the electronic circuit can execute computer-readable program instructions, to realize each side of the disclosure
Face.
Referring herein to according to the flow chart of the method, apparatus (system) of the embodiment of the present disclosure and computer program product and/
Or block diagram describes various aspects of the disclosure.It should be appreciated that flowchart and or block diagram each box and flow chart and/
Or in block diagram each box combination, can be realized by computer-readable program instructions.
These computer-readable program instructions can be supplied to general purpose computer, special purpose computer or other programmable datas
The processor of processing unit, so that a kind of machine is produced, so that these instructions are passing through computer or other programmable datas
When the processor of processing unit executes, function specified in one or more boxes in implementation flow chart and/or block diagram is produced
The device of energy/movement.These computer-readable program instructions can also be stored in a computer-readable storage medium, these refer to
It enables so that computer, programmable data processing unit and/or other equipment work in a specific way, thus, it is stored with instruction
Computer-readable medium then includes a manufacture comprising in one or more boxes in implementation flow chart and/or block diagram
The instruction of the various aspects of defined function action.
Computer-readable program instructions can also be loaded into computer, other programmable data processing units or other
In equipment, so that series of operation steps are executed in computer, other programmable data processing units or other equipment, to produce
Raw computer implemented process, so that executed in computer, other programmable data processing units or other equipment
Instruct function action specified in one or more boxes in implementation flow chart and/or block diagram.
The flow chart and block diagram in the drawings show system, method and the computer journeys according to multiple embodiments of the disclosure
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
One module of table, program segment or a part of instruction, the module, program segment or a part of instruction include one or more use
The executable instruction of the logic function as defined in realizing.In some implementations as replacements, function marked in the box
It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be held substantially in parallel
Row, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or
The combination of each box in flow chart and the box in block diagram and or flow chart, can the function as defined in executing or dynamic
The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.
The presently disclosed embodiments is described above, above description is exemplary, and non-exclusive, and
It is not limited to disclosed each embodiment.Without departing from the scope and spirit of illustrated each embodiment, for this skill
Many modifications and changes are obvious for the those of ordinary skill in art field.The selection of term used herein, purport
In the principle, practical application or technological improvement to the technology in market for best explaining each embodiment, or lead this technology
Other those of ordinary skill in domain can understand each embodiment disclosed herein.