Summary of the invention
It is an object of the present invention to provide a kind of schemes of efficient test page response performance.
According to the first aspect of the invention, a kind of method of test page response performance is provided, comprising the following steps:
The record screen of page response is obtained, the page response is caused by the event for operating the first control, and the record screen includes
The process terminated to page response occurs from the event of the first control of the operation;
Page feature is extracted from the Frames Page of a last frame or multiframe for the frame sequence of the record screen;
Response Frames Page is determined from the frame sequence according to the page feature;
At the time of generation according to the event of the first control of the operation and at the time of the response Frames Page occurs, page is calculated
The time that face response expends.
It is optionally or multiselect, described to determine response Frames Page according to the page feature from the frame sequence, comprising:
Alignments are determined according to the page feature;
It is compared and analyzed according to Frames Page of the alignments to the frame sequence, with the determination response frame page
Face.
Optionally or multiselect, the method also includes the facility information of equipment where obtaining the page response, according to
The facility information and alignments determination are to carry out the comparative analysis by server or the equipment;
The facility information includes following any or any combination: system running memory, system load, free memory,
CPU core number, cpu frequency, GPU performance parameter, electricity, device model.
Optionally or multiselect, the page feature includes following any or any combination: pure color degree, dynamic area
Domain, control distribution.
Optionally or multiselect, the page feature includes dynamic area;
It is described to determine response Frames Page from the frame sequence according to the page feature, comprising:
Determining the first part of the Frames Page of the frame sequence, the first part of the Frames Page is and the dynamic area
Corresponding part;
Response Frames Page is determined by comparing the other parts of the Frames Page of the frame sequence.
Optionally or multiselect, the page feature includes pure color degree;
It is described to determine response Frames Page from the frame sequence according to the page feature, comprising:
If the pure color degree is greater than preset threshold value, determines and ring by comparing the pixel of the Frames Page of the frame sequence
Answer Frames Page.
Optionally or multiselect, the page feature include control distribution;
It is described to determine response Frames Page from the frame sequence according to the page feature, comprising:
Response Frames Page is determined by comparing the control distribution of the Frames Page of the frame sequence.
Optionally or multiselect, the record screen for obtaining page response, comprising:
Monitor whether first control is operated, if first control is operated, starting record screen;Alternatively, response
In the instruction for starting record screen, starting record screen;
In response to terminating the instruction of record screen, record screen is terminated.
Optionally or multiselect, the method also includes:
Timing is carried out to record screen, after the record screen time reaching preset first time threshold, triggers the end record screen
Instruction;Alternatively,
The system log of equipment where monitoring the page response determines whether that terminating record shields according to the system log,
If it is determined that terminating record screen, the instruction for terminating record screen is triggered;Alternatively,
It monitors whether the second control occurs, if second control occurs, triggers the instruction for terminating record screen.
According to the second aspect of the invention, a kind of method for improving page response performance is provided, including according to aforementioned
The method of test page response performance described in one, further includes:
If the time that the page response expends is greater than preset second time threshold, execute following operation it is any or
Any combination:
User is prompted to check network environment;
Prompt user's cleaning equipment rubbish;
Prompt user closes inactive application or directly closes inactive application;
Prompt user by application setting poling letter page-mode belonging to the page response or directly by the page
Application setting poling letter page-mode belonging to response.
According to the third aspect of the invention we, a kind of device for test page response performance is provided, comprising:
Module is obtained, for obtaining the record screen of page response, the page response is caused by the event for operating the first control,
The record screen is comprising occurring the process terminated to page response from the event of the first control of the operation;
Extraction module, it is special for extracting the page from the Frames Page of a last frame or multiframe for the frame sequence that the record is shielded
Sign;
Determining module, for determining response Frames Page from the frame sequence according to the page feature;
Computing module occurs at the time of for being occurred according to the event of the first control of the operation with the response Frames Page
At the time of, calculate the time that page response expends.
It is alternatively and preferably, described to determine response Frames Page from the frame sequence according to the page feature, comprising:
Alignments are determined according to the page feature;
It is compared and analyzed according to Frames Page of the alignments to the frame sequence, with the determination response frame page
Face.
Alternatively and preferably, the page feature includes following any or any combination: pure color degree, dynamic area
Domain, control distribution.
Alternatively and preferably, the page feature includes dynamic area;
It is described to determine response Frames Page from the frame sequence according to the page feature, comprising:
Determining the first part of the Frames Page of the frame sequence, the first part of the Frames Page is and the dynamic area
Corresponding part;
Response Frames Page is determined by comparing the other parts of the Frames Page of the frame sequence.
Alternatively and preferably, the page feature includes pure color degree;
It is described to determine response Frames Page from the frame sequence according to the page feature, comprising:
If the pure color degree is greater than preset threshold value, determines and ring by comparing the pixel of the Frames Page of the frame sequence
Answer Frames Page.
Alternatively and preferably, the page feature includes control distribution;
It is described to determine response Frames Page from the frame sequence according to the page feature, comprising:
Response Frames Page is determined by comparing the control distribution of the Frames Page of the frame sequence.
Alternatively and preferably, the acquisition module includes:
Record screen starting module, if first control is operated, is opened for monitoring whether first control is operated
Dynamic record screen;Alternatively, for the instruction in response to starting record screen, starting record screen;
Record screen ending module terminates record screen for the instruction in response to terminating record screen.
Alternatively and preferably, the acquisition module further includes trigger module;
The trigger module carries out timing for shielding to record, after the record screen time reaching preset first time threshold, touching
Sending out described terminates the instruction of record screen;Alternatively,
The trigger module, for the system log of equipment where monitoring the page response, according to the system log
Determine whether to terminate record screen, if it is determined that terminate record screen, trigger the instruction for terminating record screen;Alternatively,
The trigger module, if second control occurs, triggers the knot for monitoring whether the second control occurs
The instruction of Shu Luping.
According to the fourth aspect of the invention, a kind of terminal device is provided, including aforementioned described in any item for testing
The device of page response performance, further includes:
Performance boost module is held if the time for the page response to expend is greater than preset second time threshold
Row any or any combination of following operation:
User is prompted to check network environment;
Prompt user's cleaning equipment rubbish;
Prompt user closes inactive application or directly closes inactive application;
Prompt user by application setting poling letter page-mode belonging to the page response or directly by the page
Application setting poling letter page-mode belonging to response.
According to the fifth aspect of the invention, a kind of device for test page response performance, including memory are provided
And processor;
The memory is stored with computer program, and the computer program realizes aforementioned when being executed by the processor
The method of test page response performance described in one.
According to the sixth aspect of the invention, a kind of terminal device, including memory, processor and display screen are provided;
The memory is stored with computer program, and the computer program realizes aforementioned when being executed by the processor
The method of test page response performance described in one, and realize following methods:
If the time that the page response expends is greater than preset second time threshold, execute following operation it is any or
Any combination:
User is prompted to check network environment;
Prompt user's cleaning equipment rubbish;
Prompt user closes inactive application or directly closes inactive application;
Prompt user by application setting poling letter page-mode belonging to the page response or directly by the page
Application setting poling letter page-mode belonging to response.
The scheme of test page response performance based on the embodiment of the present invention, if can be according to the last of page response
The page feature of dry frame at the time of automatically confirming that response Frames Page occurs, and then determines the time that page response expends.The present invention
The scheme for the test page response performance that embodiment provides improves survey at the time of capable of automatically confirming that response Frames Page occurs
Try efficiency.
By referring to the drawings to the detailed description of exemplary embodiment of the present invention, other feature of the invention and its
Advantage will become apparent.
Specific embodiment
Carry out the various exemplary embodiments of detailed description of the present invention now with reference to attached drawing.It should also be noted that unless in addition having
Body explanation, the unlimited system of component and the positioned opposite of step, numerical expression and the numerical value otherwise illustrated in these embodiments is originally
The range of invention.
Be to the description only actually of at least one exemplary embodiment below it is illustrative, never as to the present invention
And its application or any restrictions used.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable
In the case of, the technology, method and apparatus should be considered as part of specification.
It is shown here and discuss all examples in, any occurrence should be construed as merely illustratively, without
It is as limitation.Therefore, other examples of exemplary embodiment can have different values.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, then in subsequent attached drawing does not need that it is further discussed.
<application system>
Fig. 1 is the block diagram of application system provided in an embodiment of the present invention.As shown in Figure 1, the system includes application server
101, network 102 and terminal device 103.Application server 101 and terminal device 103 are communicated to connect by network 102.Terminal is set
Standby 103 can be one, be also possible to multiple, and multiple terminal devices 103 are shown in figure.Certainly, application server 101 can also
Directly to be communicated to connect with terminal device 103.
The configuration of application server 101 can include but is not limited to processor 1011, memory 1012, interface arrangement
1013, communication device 1014, input unit 1015, output device 1016.Processor 1011 can include but is not limited to centre
Manage device CPU, Micro-processor MCV etc..Memory 1012 can include but is not limited to ROM (read-only memory), RAM (arbitrary access
Memory), the nonvolatile memory of hard disk etc..Interface arrangement 1013 can include but is not limited to USB interface, serial interface
Mouth, parallel interface etc..Communication device 1014 is for example able to carry out wire communication or wireless communication, specifically may include WiFi logical
Letter, Bluetooth communication, 2G/3G/4G/5G communication etc..Input unit 1015 includes but is not limited to keyboard, mouse, touch screen, microphone
Deng.Output device 1016 includes but is not limited to display screen, loudspeaker etc..The configuration of application server 101 can also only include upper
State the partial devices in device.
Terminal device 103 is equipped with intelligent operating system (such as Android, IOS, Windows, Linux such as can be
System) electronic equipment, including but not limited to portable computer, desktop computer, mobile phone, tablet computer etc..Terminal device 103
Configuration include but is not limited to processor 1031, memory 1032, interface arrangement 1033, communication device 1034, GPU
(Graphics Processing Unit, image processor) 1035, display device 1036, input unit 1037, loudspeaker
1038, microphone 1039 and camera 1030.Processor 1031 includes but is not limited to central processor CPU, Micro-processor MCV
Deng.Memory 1032 include but is not limited to ROM (read-only memory), RAM (random access memory), such as hard disk it is non-volatile
Property memory etc..Interface arrangement 1033 includes but is not limited to USB interface, serial line interface, parallel interface etc..Communication device 1034
It is such as able to carry out wire communication or wireless communication, specifically may include WiFi communication, Bluetooth communication, 2G/3G/4G/5G communication
Deng.GPU 1035 is for handling image.Display device 1036 includes but is not limited to liquid crystal display, touch screen etc..Input dress
Setting 1037 includes but is not limited to keyboard, mouse, touch screen etc..The configuration of terminal device 103 can also only include in above-mentioned apparatus
Partial devices.
Using in an embodiment of the present invention, user can be operated the application (APP) that terminal device 103 carries,
The function of user demand is realized in the operation application of terminal device 103.Application server 101 provides back-office support for application, and terminal is set
During standby 103 operation application, it may be necessary to be interacted with application server 101.
User operates the application that terminal device 103 carries, and can be realized by control.Here control refers to use
Family can input the object of instruction or data.Control can be the either virtual of entity.The control of entity for example can be with
It is key, keyboard, mouse, microphone, the control lever etc. of entity, virtual control, which for example can be, is presented on terminal device 103
Display screen on application icon, virtual push button, dummy keyboard, virtual mouse, text box, input window, progress bar, scroll bar
Deng.Operation of the user to control, may lead the variation of the display page of terminal device 103, this process can be referred to as
Page response.
Terminal device 103 can have record screen function, that is, terminal device 103 can record the content that oneself screen shows.
Application system shown in FIG. 1 is merely illustrative and by no means implies that the invention, its application, or uses
Any restrictions.It will be appreciated by those skilled in the art that although disclosed the more of application server 101 and terminal device 103
A device, still, the present invention can only relate to partial devices therein.For example, application server 101 can pertain only to handle
Device, memory and communication device, terminal device 103 can pertain only to processor, memory, communication device, display screen and
Loudspeaker.Those skilled in the art can disclosed conceptual design instruction according to the present invention.Instruction how control processor into
Row operation, is techniques well known, therefore is not described in detail herein.
<method of test page response performance>
Fig. 2 is the flow chart of the method for test page response performance provided in an embodiment of the present invention.The embodiment of the present invention mentions
The method of the test page response performance of confession can be the page response performance for the application carried to aforementioned terminals equipment 103
Test, be also possible to other electronic equipments carry software page response performance test, the embodiment of the present invention to this not
It limits.
Below by taking terminal device 103 as an example, illustrate the test method to the page response performance of terminal device 103, including
Following steps:
202, the record screen of page response is obtained, the page response is caused by the event for operating the first control, the record screen
Comprising the process terminated to page response occurs from the event of the first control of operation.
204, page feature is extracted in the Frames Page of a last frame or multiframe for the frame sequence of Cong Luping.
206, response Frames Page is determined from the frame sequence of record screen according to the page feature extracted.
208, it at the time of generation according to the event of the first control of operation and at the time of response Frames Page occurs, calculates the page and rings
The time that should be expended.
Any one step in step 202, step 204, step 206 and step 208 can be held by terminal device 103
Row, can also (such as application server 101 or other cloud servers be made by the test device isolated with terminal device 103
For test device) it executes.
The method of test page response performance based on the embodiment of the present invention, if can be according to the last of page response
The page feature of dry frame at the time of automatically confirming that response Frames Page occurs, and then determines the time that page response expends.The present invention
The method for the test page response performance that embodiment provides improves survey at the time of capable of automatically confirming that response Frames Page occurs
Try efficiency.The method of test page response performance provided in an embodiment of the present invention, according to the page of last several frames of page response
Region feature confirms response Frames Page, so that test result can more embody user for the direct feel of the page response.
Each step is specifically described below:
202, the record screen of page response is obtained, the page response is caused by the event for operating the first control, the record screen
Comprising the process terminated to page response occurs from the event of the first control of operation.
In a specific example, the movement for starting record screen can be realized by step 2022 or step 2024:
2022, the instruction shielded in response to starting record, starting record screen;The event for operating the first control occurs in record screen beginning
Afterwards.
It in step 2022, can be operated by user in terminal device 103, issue the instruction for starting record screen.For example, terminal
The interface of equipment 103 is equipped with " record screen " button, user is clicked on the touch screen of terminal device 103 should " record is shielded " button can
To issue the instruction for starting record screen, starting record screen.Alternatively, being previously provided with test program, records and shield being issued by test program
Instruction, with starting record screen.
Record screen is begun to before the event for operating the first control occurs, it can be ensured that the event of the first control of operation occurs
That time recorded by record screen, and then ensure to record screen comprising occurring to terminate to page response from the event of the first control of operation
Process.
2024, whether the first control of monitoring is operated, if the first control is operated, starting record screen.
In step 2024, it can be operated by first control of the user to terminal device 103.For example, the first control
For some application icon, user clicks the application icon on the touch screen of terminal device 103 to open the homepage of the application.
The application icon is monitored, when the application icon is clicked, starting record screen.Alternatively, test program is previously provided with, by test journey
The first control of ordered pair is operated, with starting record screen.
It should be noted that abovementioned steps 2022 or the test program mentioned in step 2024, and hereinafter mention
To test program can be set in terminal device 103, also can be set in the test device isolated with terminal device 103
In.If be arranged in the test device isolated with terminal device 103, can be carried out between test device and terminal device 103
Communication.Test device for example can be aforementioned applications server 101 or other cloud servers.
Record screen in the embodiment of the present invention can be terminal device 103 and record what oneself screen obtained.Be also possible to by
The photographic device isolated with terminal device 103 is shot to obtain to the screen of terminal device 103 under the control of a test program
's.Photographic device for example can integrate in test device.Recording codec, the resolution that record screen uses can be preset
Rate, bit rate and frame number.
In a specific example, terminate can realizing by step 2026 for record screen:
2026, the instruction shielded in response to terminating record terminates record screen.
In step 2026, terminal device 103 can be operated by user, to issue the instruction for terminating record screen, from
And terminate record screen.
Alternatively, by test program record screen start when to record shield carry out timing, when record shield the time reach preset first when
Between after threshold value, triggering terminates the instruction of record screen.User can rule of thumb set first time threshold, for example, user can root
First time threshold is arranged according to this time in the time that page response needs are estimated according to the historical record of page response.First
Time threshold wants that the process that response terminates can be covered.
Alternatively, being determined whether to terminate record according to system log by the system log of test program monitor terminal equipment 103
Screen, if it is determined that terminate record screen, triggering terminates the instruction of record screen.At the end of page response, the system of terminal device 103 can be produced
Raw system log corresponding with the page response after test program monitors system log corresponding with the page response, determines
It can terminate record screen, triggering terminates the instruction of record screen.
Alternatively, monitoring whether the second control occurs by test program, if the second control occurs, triggering terminates the finger of record screen
It enables.After the completion of second control is page response, the control on the page that terminal device 103 is presented.When the second control occurs,
Instruction page response has been completed, and triggering terminates the instruction of record screen.
Alternatively, being realized the operation to the first control by the operation of mechanical arm analog subscriber, the operation for starting record screen, being terminated
Record the operation of screen.
204, page feature is extracted in the Frames Page of a last frame or multiframe for the frame sequence of Cong Luping.
After getting record screen, frame sequence is parsed from record screen.It, can be according to preset frame rate in a specific example
Uniform framing is carried out to record screen, obtains frame sequence.
In one embodiment, page feature is extracted in the Frames Page of the last N frame of the frame sequence of Cong Luping, N is positive
Integer.Alternatively, page feature is extracted from the Frames Page of the last M frame of the frame sequence of record screen, the frame sequence of M frame Zhan Luping
The ratio of totalframes is preset ratio, and M is positive integer.In a specific example, the totalframes of the frame sequence of M frame Zhan Luping
Ratio be 10% or so.
When extracting page feature in the Frames Page of the last multiframe of the frame sequence from record screen, the page feature that extracts
It can be the whole frame in multiframe or the page feature that most of frame all has.
Page feature may include following any or any combination: pure color degree, dynamic area, control distribution.
For the convenience of description, hereinafter by " the frame page of a last frame or multiframe for the frame sequence of record screen of step 204
Face " is referred to as " final state Frames Page ".
The dynamic area of the page refers at any time can changed region in the page.Explanation " dynamic area shown in Figure 3
This page feature of domain ": final state Frames Page includes Frames Page 501, Frames Page 502, Frames Page 503 sequentially in time.From Fig. 3
In as can be seen that in Frames Page 501, region 11 is for showing advertisement 1, and region 12 is for showing advertisement 2.In frame page later
In face 502, region 11 is for showing advertisement 3, and region 13 is for showing advertisement 4.In Frames Page 503 further below, region 11
For showing advertisement 5, region 13 is for showing advertisement 6.Advertisement 1, advertisement 3, advertisement 5 be different advertisements, advertisement 2, advertisement 4,
Advertisement 6 is different advertisement.This explanation, region 11 and region 12 are dynamic areas, and the content for changing over time its presentation can be sent out
Changing.
In one embodiment, dynamic area may include carousel region.For any one dynamic area, if it is in turn
Show multiple contents pre-set, then the dynamic area is carousel region.
The pure color degree of the page refers to the intensity of color in the page.Explanation " pure color degree " shown in Figure 4 this
Page feature: in final state Frames Page 504 include color lump 21 and color lump 22, Frames Page 504 in addition to color lump 21 and color lump 22
Another color is in part and occupies most areas, calculates color lump 21 and color lump 22 with the area of outer portion and frame page
The ratio of the gross area in face 504, so that it may obtain the pure color degree of Frames Page 504.It in another embodiment, can be by final state
Frames Page is converted to grayscale image, obtains the gray value of each pixel, calculates the intensity of the gray value of pixel, as
The pure color degree of final state Frames Page.Those skilled in the art can calculate the pure color degree of the page, this hair there are many mode
Bright embodiment to this with no restriction.
The control of the page is distributed, and may include the position of control, shape, size, one in quantity these control elements
Or it is multiple.Explanation " control distribution " this page feature shown in Figure 5: including 4 controls in final state Frames Page 505, respectively
Control 31, special-shaped control 32, circular control 33 and circular control 34 for rectangle.
206, response Frames Page is determined from the frame sequence of record screen according to the page feature extracted.
In one embodiment, response Frames Page, packet are determined from the frame sequence of record screen according to the page feature extracted
It includes:
2062, alignments are determined according to the page feature extracted.
2064, the Frames Page of frame sequence is compared and analyzed according to the alignments determined, to determine response frame page
Face.
It is suitable according to the selection of the page feature of last several frames of page response in step 2062 and step 2064
Alignments, it is thus evident that the alignments selected in this way are more suitable for the page response, so that test result is more
User can be embodied for the direct feel of the page response.
In step 2064, the Frames Page of frame sequence is compared and analyzed to determine and respond Frames Page, it can be by poly-
The mode of class carries out.For example, being clustered along the time sequencing that Frames Page occurs to Frames Page by cluster mode, thus by frame
Sequence is at least two subsequences according to tandem cutting, and the frame inside same subsequence is more approximate, with last height
The first frame of sequence Frames Page in response.
In step 2064, the Frames Page of frame sequence is compared and analyzed to determine and respond Frames Page, it can be according to frame
Similarity between the page determines response Frames Page.For example, selection and the similarity of final state Frames Page reach the first similarity
Threshold value, and the frame with the similarity of the Frames Page of its former frame less than the second similarity threshold.When the frame selected is multiple
When, select first frame in multiple frames Frames Page in response;When the frame selected is one, which is response frame page
Face.In a specific example, the first similarity threshold can be 60%, and the second similarity threshold can be 90%.
In another specific example, in step 2064, first frame sequence can be carried out to take out frame processing, then determine and ring
Answer Frames Page.For example, extracting a frame every D frame in frame sequence, the frame extracted constitutes a new frame sequence, new to this
The Frames Page of frame sequence carry out above-mentioned comparative analysis, obtain doubtful response frame.D before the doubtful response frame of former frame sequence
D frame of the frame after constitutes another frame sequence, carries out above-mentioned comparative analysis again to another frame sequence, another from this
Response Frames Page is determined in a frame sequence.It is this first to take out frame processing, then determine the mode of response frame, calculation amount can be reduced, is added
Fast processing speed.
In step 2064, the alignments determined to the Frames Page of frame sequence compare and analyze based on compare
Element (such as the element of cluster foundation, such as carry out the element of similarity-rough set foundation) it is special according to the page of final state Frames Page
Sign and set.Still step 206, step 2062, step 2064 are done by taking Fig. 3-final state Frames Page shown in fig. 5 as an example below
It further illustrates.
Refering to what is shown in Fig. 3, final state Frames Page includes dynamic area.Frame of the page feature that the basis extracts from record screen
Response Frames Page is determined in sequence, comprising: determine that the first part of the Frames Page of frame sequence, the first part of the Frames Page are
Part corresponding with the dynamic area;Response Frames Page is determined by comparing the other parts of the Frames Page of frame sequence.
That is, when in final state Frames Page including dynamic area, it can will be corresponding with dynamic area in Frames Page
Portion intercepts fall, and go to determine response Frames Page using page address portions remaining after interception.
It corresponds in step 2062 and step 2064, the alignments selected, can first carry out the step of interception dynamic area
Suddenly, remaining page address portions after interception is recycled to compare and analyze determining response Frames Page.
Refering to what is shown in Fig. 4, judging final state if the pure color degree of final state Frames Page is greater than the pure color degree threshold value of setting
Frames Page belongs to the pure color page.If final state Frames Page belongs to the pure color page, the pixel by comparing the Frames Page of frame sequence is true
Provisioning response Frames Page.Pure colorimetric threshold value is, for example, 70%.
In one example, the pixel for comparing the Frames Page of frame sequence determines response Frames Page, can be and turns Frames Page
Response Frames Page is determined for the gray value of the gray scale page, then compared pixels.
In one example, the pixel for comparing the Frames Page of frame sequence determines response Frames Page, can be by comparing pixel
Color component determine response Frames Page.
It corresponds in step 2062 and step 2064, the alignments selected, is the picture by comparative analysis Frames Page
The gray value or color component of element determine response Frames Page.
Refering to what is shown in Fig. 5, the page feature of final state Frames Page includes control distribution.The page feature that the basis extracts
Response Frames Page is determined from the frame sequence of record screen, comprising: determine response by comparing the control distribution of the Frames Page of frame sequence
Frames Page.
It specifically, can be by comparing the control of Frames Page when in final state Frames Page including one or more control
Distribution situation, such as the case where compare the position of the control of Frames Page, shape, size, quantity, to determine response Frames Page.
It corresponds in step 2062 and step 2064, the alignments selected, is the control by comparative analysis Frames Page
Part is distributed to determine response Frames Page.
In another specific example, the page feature of final state Frames Page may include a variety of page features.Such as: eventually
The page feature of state Frames Page includes dynamic area and control distribution simultaneously.When determining response Frames Page, first by Frames Page
Portion intercepts corresponding with dynamic area fall.Then, the control distribution situation of remainder after being intercepted by comparing Frames Page
To determine response Frames Page.
In another specific example, the page feature of final state Frames Page includes simultaneously dynamic area and pure color degree.
When determining response Frames Page, the portion intercepts corresponding with dynamic area of Frames Page are fallen first.Then, if final state frame page
Face belongs to the pure color page, and the pixel of remainder determines response Frames Page after intercepting by comparing Frames Page.
In another specific example, the page feature of final state Frames Page include simultaneously dynamic area, pure color degree, with
And control distribution.When determining response Frames Page, the portion intercepts corresponding with dynamic area of Frames Page are fallen first.Then,
If final state Frames Page belongs to the pure color page, the pixel of remainder determines response frame page after intercepting by comparing Frames Page
Face.If final state Frames Page is not belonging to the pure color page and has control, the control of remainder after intercepting by comparing Frames Page
Part distribution situation determines response Frames Page.Alternatively, if the control quantity that final state Frames Page has is greater than certain amount, just not
Consider final state Frames Page whether pure color, directly determine sound by comparing the control distribution situation of remainder after Frames Page interception
Answer Frames Page.
Furthermore, it is possible to according to the alignments determined in the facility information of equipment where page response and step 2062,
Determination is step 2064 to be executed by the equipment where page response, or the test by separating with equipment where page response fills
Setting (such as application server 101 or other cloud servers) Lai Zhihang is step 2064.If held by cloud server
Row step 2064 is needed record screen or frame sequence, and the version number for the alignments determined, uploads to cloud service
Device.If executing step 2064 by page response place equipment, need to be configured to alignments in the equipment, for example, by
The corresponding algorithm of alignments is handed down to the equipment by cloud server.
In a specific example, the facility information of terminal device 103 is obtained.The facility information includes following any
Or any combination: system running memory, system load, free memory, CPU core number, cpu frequency, GPU performance parameter, electricity,
Device model.These information of terminal device 103 have an impact to page response speed.
The alignments determination determined according to the facility information of terminal device 103 and step 2062 is by terminal device
103 execute step 2064, or execute step 2064 by application server 101.
Terminal device 103 itself is poorer to the ability of page response, and the alignments determined are more complicated, more tend to by
Cloud server executes step 2064.It is on the contrary.Terminal device 103 itself is stronger to the ability of page response, the comparison determined
Mode is simpler, can execute step 2064 by terminal device 103.
208, it at the time of generation according to the event of the first control of operation and at the time of response Frames Page occurs, calculates the page and rings
The time that should be expended.Specifically, it at the time of the event generation of the first control of operation is subtracted at the time of appearance with response Frames Page, obtains
The time expended to page response.
In the embodiment of the present invention, at the time of the event generation of the first control can be got in several ways.For example, can
To be monitored to the first control, at the time of the event for getting the first control of operation after the first control is operated occurs.Example
Such as, test program can be got from application interface corresponding with the first control operation the first control event occur when
It carves.For example, test program can determine first by modes such as system layer readjustment, the log of monitoring hardware layer, monitoring system logs
At the time of the event of control occurs.Here it no longer excessively repeats.
<method for improving page response performance>
Refering to what is shown in Fig. 6, the explanation method provided in an embodiment of the present invention for improving page response performance, including following step
It is rapid:
202, the record screen of page response is obtained, the page response is caused by the event for operating the first control, the record screen
Comprising the process terminated to page response occurs from the event of the first control of operation.
204, page feature is extracted in the Frames Page of a last frame or multiframe for the frame sequence of Cong Luping.
206, response Frames Page is determined from the frame sequence of record screen according to the page feature extracted.
208, it at the time of generation according to the event of the first control of operation and at the time of response Frames Page occurs, calculates the page and rings
The time that should be expended.
If 210, page response expend time be greater than preset second time threshold, instruction page response expend when
Between it is too many, the range that user allows may have been had exceeded, needed to be implemented the operation that can be used for being promoted page response performance.It is described
Operation includes following any or any combination:
User is prompted to check network environment;
Prompt user's cleaning equipment rubbish;
Prompt user closes inactive application or directly closes inactive application;
Prompt user by application setting poling letter page-mode belonging to the page response or directly by the page
Application setting poling letter page-mode belonging to response.
Using the above method, the page response performance of terminal device 103 can be promoted.
<device for test page response performance>
Fig. 7 is the schematic diagram of test device 600 provided in an embodiment of the present invention, which is used for test page
Response performance, the test device 600 comprise the following modules:
Module 601 is obtained, for obtaining the record screen of page response, the page response is drawn by the event for operating the first control
It rises, the record screen is comprising occurring the process terminated to page response from the event of the first control of the operation.
Extraction module 602, it is special for extracting the page from the Frames Page of a last frame or multiframe for the frame sequence that record is shielded
Sign.
Determining module 603, for determining response Frames Page from the frame sequence of record screen according to the page feature extracted.
Computing module 604, for according to operation the first control event occur at the time of and response Frames Page occur when
It carves, calculates the time that page response expends.
The device of test page response performance based on the embodiment of the present invention, if can be according to the last of page response
The page feature of dry frame at the time of automatically confirming that response Frames Page occurs, and then determines the time that page response expends.The present invention
The device for the test page response performance that embodiment provides improves survey at the time of capable of automatically confirming that response Frames Page occurs
Try efficiency.The device of test page response performance provided in an embodiment of the present invention, according to the page of last several frames of page response
Region feature confirms response Frames Page, so that test result can more embody user for the direct feel of the page response.
Fig. 8 is the schematic diagram provided in an embodiment of the present invention for obtaining module 601, which includes record screen starting
Module 6011, trigger module 6013, record screen ending module 6012.
Record screen starting module 6011, for monitoring whether the first control is operated, if the first control is operated, starting record
Screen.Alternatively, record screen starting module 6011, for the instruction in response to starting record screen, starting record screen.
Record screen ending module 6012 terminates record screen for the instruction in response to terminating record screen.
Trigger module 6013 carries out timing for shielding to record, after the record screen time reaching preset first time threshold, touching
Hair terminates the instruction of record screen.Alternatively,
Trigger module 6013 is determined for the system log of equipment where monitoring the page response according to system log
Whether record screen is terminated, if it is determined that terminates record screen, triggering terminates the instruction of record screen.Alternatively,
Trigger module 6013, for monitoring whether the second control occurs, if the second control occurs, triggering terminates record screen
Instruction.
<terminal device>
Illustrate terminal device 700 provided in an embodiment of the present invention with reference to shown in Fig. 9, which includes with lower die
Block:
Module 601 is obtained, for obtaining the record screen of page response, the page response is drawn by the event for operating the first control
It rises, the record screen is comprising occurring the process terminated to page response from the event of the first control of the operation.
Extraction module 602, it is special for extracting the page from the Frames Page of a last frame or multiframe for the frame sequence that record is shielded
Sign.
Determining module 603, for determining response Frames Page from the frame sequence of record screen according to the page feature extracted.
Computing module 604, for according to operation the first control event occur at the time of and response Frames Page occur when
It carves, calculates the time that page response expends.
Performance boost module 605 executes if the time for page response to expend is greater than preset second time threshold
It can be used for being promoted the operation of page response performance.The operation includes following any or any combination:
User is prompted to check network environment;
Prompt user's cleaning equipment rubbish;
Prompt user closes inactive application or directly closes inactive application;
Prompt user by application setting poling letter page-mode belonging to the page response or directly by the page
Application setting poling letter page-mode belonging to response.
Using aforesaid way, the page response performance of terminal device 700 can be promoted.
<device for test page response performance>
Figure 10 is the schematic diagram of test device 800 provided in an embodiment of the present invention, which is used for test page
Response performance, the test device 800 include memory 802 and processor 801.
The memory 802 is stored with computer program, and the computer program is realized when being executed by the processor 801
The method of aforementioned test page response performance.
The device of test page response performance based on the embodiment of the present invention, if can be according to the last of page response
The page feature of dry frame at the time of automatically confirming that response Frames Page occurs, and then determines the time that page response expends.The present invention
The device for the test page response performance that embodiment provides improves survey at the time of capable of automatically confirming that response Frames Page occurs
Try efficiency.The device of test page response performance provided in an embodiment of the present invention, according to the page of last several frames of page response
Region feature confirms response Frames Page, so that test result can more embody user for the direct feel of the page response.
<terminal device>
Figure 11 is the schematic diagram of terminal device 900 provided in an embodiment of the present invention, which is used to include storage
Device 902, processor 901 and display screen 903.
The memory 902 is stored with computer program, and the computer program is realized when being executed by the processor 901
The method of aforementioned test page response performance.
Further, following methods are also realized when the computer program is executed by the processor 901:
If the time that page response expends is greater than preset second time threshold, it is any or any to execute following operation
Combination:
User is prompted to check network environment;
Prompt user's cleaning equipment rubbish;
Prompt user closes inactive application or directly closes inactive application;
Prompt user by application setting poling letter page-mode belonging to the page response or directly by the page
Application setting poling letter page-mode belonging to response.
Using aforesaid way, the page response performance of terminal device 900 can be promoted.
The embodiment of the invention also provides a kind of computer-readable mediums, are stored thereon with computer program, work as computer
It is realized when program is executed by processor in method or above-described embodiment of the test page response performance in above-described embodiment
The method for improving page response performance.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device,
For apparatus embodiments, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to method
The part of embodiment illustrates.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims
It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment
It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable
Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can
With or may be advantageous.
The present invention 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 invention.
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 operation of the present invention 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 invention
Face.
Referring herein to according to the method for the embodiment of the present invention, the flow chart of device (system) and computer program product and/
Or block diagram describes various aspects of the invention.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 the system of multiple embodiments according to the present invention, method and computer journeys
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.It is right
For those skilled in the art it is well known that, by hardware mode realize, by software mode realize and pass through software and
It is all of equal value that the mode of combination of hardware, which is realized,.
Various embodiments of the present invention are described above, above description is exemplary, and non-exclusive, and
It is not limited to disclosed each embodiment.Without departing from the range of illustrated each embodiment, for the art
Those of ordinary skill for many modifications and changes are obvious.The selection of term used herein, it is intended to best
The principle, practical application or the technological improvement to the technology in market of each embodiment are explained in ground, or make the art its
Its those of ordinary skill can understand each embodiment disclosed herein.The scope of the present invention is defined by the appended claims.