CN109656645A - Presentation time determines the determination method and device of method and page rendering deadline - Google Patents

Presentation time determines the determination method and device of method and page rendering deadline Download PDF

Info

Publication number
CN109656645A
CN109656645A CN201710941580.8A CN201710941580A CN109656645A CN 109656645 A CN109656645 A CN 109656645A CN 201710941580 A CN201710941580 A CN 201710941580A CN 109656645 A CN109656645 A CN 109656645A
Authority
CN
China
Prior art keywords
time
deadline
page
page rendering
point set
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710941580.8A
Other languages
Chinese (zh)
Inventor
方颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201710941580.8A priority Critical patent/CN109656645A/en
Publication of CN109656645A publication Critical patent/CN109656645A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The application provides the determination method and device that presentation time determines method and page rendering deadline, wherein, presentation time determines that method includes: the module being integrated in IOS systematic difference except original module, the described method includes: executing sampling operation to presetted pixel point set during page rendering, and record sampling time and the corresponding pixel value collection of the presetted pixel point set;Determine the variable quantity of the adjacent pixel values collection of the presetted pixel point set;The page rendering deadline is determined according to the variable quantity.The application can be in the case where no code invades modules, and accurate determine applies presentation time, in order to provide reference for determining application performance.

Description

Presentation time determines the determination method and device of method and page rendering deadline
Technical field
This application involves fields of communication technology more particularly to presentation time to determine method and page rendering deadline really Determine method and device.
Background technique
Currently, mobile terminal, which can be installed, much applies (APP), the superiority and inferiority of application performance will affect user's use feeling. Starting time-consuming is applied in application performance and page switching time-consuming is two important indicators.
At present in IOS operating system, it is usual to obtain the time-consuming process of application starting are as follows: when acquisition application starting starts Between;The time that " viewDidAppear function " is called in application is obtained, and using the time as using the start completion time.It will answer Use the difference of start completion time and application starting time started time-consuming as application starting.
At present in IOS operating system, the process for obtaining page switching time-consuming is usual are as follows: when acquisition page switching starts Between;The time that " viewDidAppear function " is called in application is obtained, and using the time as the page switching deadline.By page Face switches the difference of deadline and page switching time started as page switching time-consuming.
But it in application start-up course or during page switching, applies at calling " viewDidAppear function " When, it is merely representative of page layout logic and has completed.The page does not render completion at this time, and user just may be used after the completion of page rendering To view the page.For IOS system, operating system does not provide the callback interface that any rendering terminates, so can not The page rendering deadline is obtained using callback interface.
For a user, start using the application that calling " viewDidAppear function " time and non-user are experienced Deadline or page switching deadline;Therefore, the application starting that prior art determines is time-consuming and page switching is time-consuming Inaccuracy.
Summary of the invention
Present inventor has found in the course of the research:
Code is added in each start in module time-consuming or that application starting is time-consuming using the page of application, using receiving After the network request response that server is sent, the timestamp using refresh page is recorded using addition code, by refresh page Timestamp be determined as the page switching deadline or apply the start completion time.
The timestamp ratio application of refresh page calls " viewDidAppear function " time rearward in this programme, still, brush The timestamp of new page is still earlier than the page rendering deadline.Furthermore, it is desirable to application it is each using the page start it is time-consuming or Using code is added in the time-consuming module of starting, realize that process is relatively complicated.
So the application starting determined based on the program is time-consuming and page switching time-consuming is still inaccurate, and, it can be to application Middle module causes code to invade.
In consideration of it, the application, which provides a kind of presentation time, determines method and system, modules can be invaded in no code In the case where, accurate determine applies presentation time, in order to provide reference for determining application performance.
To achieve the goals above, this application provides following technical characteristics:
A kind of determination method of page rendering deadline, comprising:
Sampling operation is executed to presetted pixel point set during page rendering, and records sampling time and the default picture The corresponding pixel value collection of vegetarian refreshments collection;
Determine the variable quantity of the adjacent pixel values collection of the presetted pixel point set;
The page rendering deadline is determined according to the variable quantity.
It is optionally, described that the page rendering deadline is determined according to the variable quantity, comprising:
In the case where the variable quantity of pixel value collection repeatedly meets default variable quantity, the variable quantity of pixel value collection is less than or Equal to the sampling time for the first time of default variable quantity, it is determined as the page rendering deadline.
Optionally, the variable quantity of the pixel value collection repeatedly meets the case where default variable quantity, comprising:
The change rate of pixel value collection is repeatedly less than or equal to default change rate;Alternatively,
The changing value of pixel value collection is repeatedly less than or equal to default changing value.
Optionally, the default variable quantity is zero, then described to determine the page rendering deadline according to the variable quantity, packet It includes:
It is under multiple pixel value collection unanimous circumstances, the current pixel value collection of the presetted pixel point set is corresponding for the first time Sampling time is determined as the page rendering deadline.
Optionally, the presetted pixel point set includes a pixel;Then the variable quantity of the pixel value collection repeatedly meets The case where default variable quantity, comprising: the variable quantity of the pixel value of the pixel is repeatedly less than or equal to default variable quantity.
Optionally, the method is applied to the module except the original module applied in IOS system.
It optionally, further include the determining page before executing sampling operation to presetted pixel point set during page rendering The placement logic deadline;
Then the method also includes:
It is received during page rendering after terminating render instruction, stops sampling operation;By the page layout logic Deadline is determined as the page rendering deadline.
Optionally, the determining page layout logic deadline includes:
Monitor the function that representation page placement logic is completed;In the case where the function is called, the function is recorded The called time;The time is determined as the page layout logic deadline.
It optionally, further include determining operation before executing sampling operation to presetted pixel point set during page rendering Time started;
Then the method also includes: calculate the page rendering deadline and it is described operation the time started time difference Value;If the time difference is in preset time range, the time difference is determined as to the presentation time of operation.
Optionally, the acquisition operation time started includes: to obtain the application starting time started, or, obtaining page switching Time started;
Wherein, described to obtain the time that the application starting time started includes: the loading function of the record class, and when by this Between be determined as the application starting time started.
A kind of presentation time determines method, comprising:
Obtain the operation time started;Sampling operation is executed to presetted pixel point set during page rendering, and records and adopts Sample time and the corresponding pixel value collection of the presetted pixel point set;
It determines the variable quantity of the adjacent pixel values collection of the presetted pixel point set, and page wash with watercolours is determined according to the variable quantity Contaminate the deadline;
By the time difference of the page rendering deadline and the operation time started, it is determined as operating corresponding page Presentation time.
Optionally, the method is applied to the module except the original module applied in IOS system.
Optionally, the acquisition operation time started includes:
The application starting time started is obtained, or, obtaining the page switching time started;
Wherein, described to obtain the time that the application starting time started includes: the loading function of the record calling class, and will The time is determined as the application starting time started.
It optionally, further include the determining page before executing sampling operation to presetted pixel point set during page rendering The placement logic deadline;
Then the method also includes:
It is received during page rendering after terminating render instruction, stops sampling operation;
By the page layout logic deadline, it is determined as the page rendering deadline.
Optionally, after determining the page rendering deadline, further includes:
Calculate the time difference of the page rendering deadline and the operation time started;
If the time difference is in preset time range, enter the page rendering deadline and the operation The time difference of time started, be determined as operation presentation time the step of.
Optionally, further includes: in the case where the presentation time is greater than threshold value, it is different that determination shows the appearance of page process Often.
Optionally, further includes: the data volume of calculating operation corresponding page;
Amount and the presentation time based on the data determine operation corresponding page response speed.
Optionally, further includes:
During showing, the presentation time of multiple attributes in the page is counted;Wherein, multiple attributes include: word attribute, Picture attribute and video attribute;
Export the presentation time of each attribute.
A kind of determination method of page rendering deadline, comprising:
Sampling operation is executed to presetted pixel point set during page rendering, and records sampling time and the default picture The corresponding pixel value collection of vegetarian refreshments collection;
Under the multiple pixel value collection unanimous circumstances that presetted pixel point set sampling obtains, by the presetted pixel point In the current pixel value collection of the collection corresponding sampling time for the first time, it is determined as the page rendering deadline.
A kind of determining device of page rendering deadline, comprising:
Recording unit, for executing sampling operation to presetted pixel point set during page rendering, and when recording sampling Between pixel value collection corresponding with the presetted pixel point set;
Determine variable quantity unit, the variable quantity of the adjacent pixel values collection for determining the presetted pixel point set;
Deadline unit is determined, for determining the page rendering deadline according to the variable quantity.
Optionally, the determining deadline unit determines the page rendering deadline according to the variable quantity, specific to wrap It includes: in the case where the variable quantity of pixel value collection repeatedly meets default variable quantity, the variable quantity of pixel value collection being less than or equal to In the sampling time for the first time of default variable quantity, it is determined as the page rendering deadline.
Optionally, the variable quantity of the pixel value collection repeatedly meets the case where default variable quantity, comprising: the change of pixel value collection Rate is repeatedly less than or equal to default change rate;Alternatively, the changing value of pixel value collection is repeatedly less than or equal to default changing value.
Optionally, the default variable quantity is zero, then the determining deadline unit determines page according to the variable quantity Face renders the deadline, comprising: under multiple pixel value collection unanimous circumstances, by the current pixel value of the presetted pixel point set Collect the corresponding sampling time for the first time, is determined as the page rendering deadline.
Optionally, the presetted pixel point set includes a pixel;Then the variable quantity of the pixel value collection repeatedly meets The case where default variable quantity, comprising: the variable quantity of the pixel value of the pixel is repeatedly less than or equal to default variable quantity.
It optionally, further include determining layout before executing sampling operation to presetted pixel point set during page rendering Logic deadline unit, for determining the page layout logic deadline;Then further include:
It determines deadline unit, after being also used to receive end render instruction during page rendering, stops sampling Operation;By the page layout logic deadline, it is determined as the page rendering deadline.
Optionally, the determining page layout logic deadline includes: the letter for monitoring representation page placement logic and completing Number;In the case where the function is called, the function called time is recorded;The time is determined as page layout to patrol Collect the deadline.
A kind of presentation time determining device, comprising:
Acquiring unit, for obtaining the operation time started;
Recording unit, for executing sampling operation to presetted pixel point set during page rendering, and when recording sampling Between pixel value collection corresponding with the presetted pixel point set;
Determine variable quantity unit, the variable quantity of the adjacent pixel values collection for determining the presetted pixel point set, and according to The variable quantity determines the page rendering deadline;
Determine deadline unit, for by the page rendering deadline and it is described operation the time started time difference Value is determined as operating the presentation time of corresponding page.
It optionally, further include determining operation before executing sampling operation to presetted pixel point set during page rendering Time started;Wherein, the acquisition operation time started includes: to obtain the application starting time started, is opened or, obtaining page switching Begin the time;
Wherein, described to obtain the time that the application starting time started includes: the loading function of the record class, and when by this Between be determined as the application starting time started.
Then further include:
Computing unit, for calculating the time difference of the page rendering deadline and the operation time started;
Determine presentation time unit, if in preset time range for the time difference, by the time difference It is determined as the presentation time of operation.
Optionally, further includes: anomaly unit is determined, for determining exhibition in the case where the presentation time is greater than threshold value Existing page process occurs abnormal.
Optionally, further includes: determine response speed unit, the data volume for calculating operation corresponding page;Based on described Data volume and the presentation time determine operation corresponding page response speed.
Optionally, further includes: the corresponding presentation time of attribute is determined, for during showing, counting multiple in the page The presentation time of attribute;Wherein, multiple attributes include: word attribute, picture attribute and video attribute;Export the exhibition of each attribute Between current.
A kind of determining device of page rendering deadline, comprising:
Recording unit, for executing sampling operation to presetted pixel point set during page rendering, and when recording sampling Between pixel value collection corresponding with the presetted pixel point set;
Determine deadline unit, the multiple consistent feelings of pixel value collection for obtaining in presetted pixel point set sampling Under condition, by the current pixel value collection of the presetted pixel point set corresponding sampling time for the first time, when being determined as page rendering completion Between.
By the above technological means, may be implemented it is following the utility model has the advantages that
The application increases new module in the application, is used to calculate page switching time-consuming and application starting consumption using the module When, so intrusion code will not be generated to original module.Also, when the sampling for the first time that the application is no longer changed using pixel value collection Between be used as the page rendering deadline, application starting time for being calculated based on the page rendering deadline and when page switching Between, sense of reality of being more close to the users.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of schematic diagram of terminal disclosed in the embodiment of the present application;
Fig. 2 determines the flow chart of method for a kind of presentation time disclosed in the embodiment of the present application;
Fig. 3 a-3b is the schematic diagram in sampling time disclosed in the embodiment of the present application;
Fig. 4 determines the flow chart of method for a kind of presentation time disclosed in the embodiment of the present application;
Fig. 5 is a kind of schematic diagram of the determining device of page rendering deadline disclosed in the embodiment of the present application;
Fig. 6 is a kind of schematic diagram of presentation time determining device disclosed in the embodiment of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
For the ease of skilled in the art realises that, this application provides a kind of mobile terminal, mobile terminal is grasped using IOS Make system.Referring to Fig. 1, mobile terminal includes multiple applications, and each application may include multiple original moulds for realizing business function Block.
For the application in order to avoid generating intrusion code to original module, the application increases new module in the application, utilizes It is time-consuming and time-consuming using starting that module is used to calculate page switching.It is other to need using page switching time-consuming or application starting time-consuming Module, can get that page switching is time-consuming or application starting is time-consuming from the module.
According to one embodiment provided by the present application, the embodiment one that a kind of presentation time determines method is provided.This method It is integrated in the module (namely increasing new module) in IOS systematic difference except original module.Referring to fig. 2, specifically include with Lower step:
Step S201: the operation time started is obtained.
In the case where user triggers application icon, indicate that user is operated at present to open application, it is possible to which acquisition is answered With the starting time started.
The first implementation: the time of calling " main function " was determined as using the starting time started.
Application can call " main function " in application opening procedure, and therefore, module can monitor " main function ", and remember The time of " main function " is called in record, starts the time started for the time as application.
Second of implementation: record calls the time of the loading function of class, and the time is determined as the application and is opened The dynamic time started.
Binary file can be loaded in application opening procedure, according to objective-cruntime principle in IOS system, IOS operating system actively calls " loading function of class " when loading binary file, using meeting.Therefore, module can monitor " class Loading function ", and will call " loading function of class " time, be determined as using starting the time started.
Since the time of calling " loading function of class " is before calling " main function ", this implementation determines Application starting the time started, be more nearly user click application icon time.
In the case where user's triggering is using subpage frame triggering page switching, the page switching time started is obtained.
The case where triggering subpage frame according to user is different, and " push letter may be called in perform page layout switch effect by applying Number ", " tab function " or " addChildViewController function ".
Therefore, module can monitor representation page switching function (for example, " push function ", " tab function " or " addChildViewController function "), and record indicate page switching function allocating time, using the time as The page switching time started.
Step S202: the page layout logic deadline is obtained.
The network response that server is sent can be received after sending network request to server by applying, and be rung according to network It should carry out page layout.
Application can call function after the completion of page layout logic, such as: " viewDidLayoutSubviews function ", " layoutSubviews function " or " viewDidAppear function ".
Therefore, module can monitor the function of representation page placement logic completion (for example, " viewDidLayoutSubviews Function ", " layoutSubviews function " or " viewDidAppear function "), and the function called time is recorded, by this Time is determined as the page layout logic deadline.
Step S203: during page rendering to presetted pixel point set execute sampling operation, and record the sampling time and The corresponding pixel value collection of the presetted pixel point set.
Due to there is no the callback interface after the completion of any rendering in IOS system, so the technology that present inventor provides Scheme are as follows: the pixel value of pixel can constantly change in render process, after in render process, the pixel value of pixel No longer change.Therefore, determine whether render process is completed by the way that whether pixel value changes.
After the completion of page layout logic, application can execute page rendering process.Several pixels can be preset, it will Several pixels form presetted pixel point set.The position of several pixels is concentrated without limitation for presetted pixel point.
Presetted pixel point concentrates each pixel to be preferably distributed across the different zones of display screen curtain, for example, showing screen It is divided into four, upper and lower, left and right region, then respectively can selects a pixel in four regions respectively.It can obtain in all directions in this way Know whether each region renders to finish.
It is understood that presetted pixel point concentrates the more subsequent contrast's processes of pixel quantity more, more expend eventually The cpu resource at end only can execute comparison to a pixel in this way so presetted pixel point set may include a pixel Process, so that comparison process is simple and convenient.
Sampling operation can be executed to presetted pixel point set in render process, and record sampling time and presetted pixel point The pixel value collection of collection.Under RGB mode, the occurrence that pixel value integrates as RGBR, wherein R is red numerical value, and G is the number of green Value, B are the numerical value of blue, and the numerical value of RGB is between 0-255, and R is transparency, and numerical value is between 0-1.
The sampling period can be fixed, for example, 50ms or 100ms under normal conditions, be with 50ms referring to shown in Fig. 3 a Example is sampled.Then, module compares operation to the periodically multiple pixel value collection of acquisition.When terminal capabilities is higher, no There can be adverse effect to terminal.
In the case where terminal capabilities is not good situation, operation constantly is compared to the periodically multiple pixel value collection of acquisition, Larger pressure can be caused to terminal CPU operation.
Referring to Fig. 3 b, the present embodiment proposition can use with 3 50ms, 4 100ms, and 5 150ms are the period, start into Row screen pixels value periodic samples.Since when just starting rendering, render process is very fast, sample frequency is higher, subsequent wash with watercolours Dye process is more slow, therefore gradually decreases sample frequency.
Assuming that performing 5 sampling operations, referring to table 1, the sampling time indicated for visualization and pixel value collection are (with default For pixel point set is including a pixel).
Table 1
Step S204: judging whether the pixel value collection of the presetted pixel point set no longer changes, if so, entering step S205, if otherwise entering step S204.
Sampling time 10050ms and pixel value collection 1 are obtained after obtaining sampling for the first time, and, after second of sampling After the sampling time 10100ms and pixel value collection 2 that arrive, pixel value collection 1 and the discovery of secondary pixel value collection 2 of first time are compared The two is inconsistent.
Then, in lasting sampling process, the sampling time 10150ms and pixel value collection obtained after third time samples is obtained 2, the pixel value collection 2 that secondary pixel value collection 2 samples for the third time is compared, both discoveries are consistent.
Due to will appear unstable situation in render process, so when pixel value collection is consistent twice, in order to ensure pixel value No longer change also and will continue to verify whether subsequent pixel value is also pixel value collection 2.
Find that the pixel value collection of presetted pixel point set changes again, changes pixel value 3 during subsequent contrast.It is default No longer change after the pixel value collection 3 of pixel point set;When the pixel value of i.e. continuous preset times is consistent, presetted pixel point set is determined Pixel value collection is no longer changed.
Step S205: in the case where the pixel value collection of the presetted pixel point set no longer changes, by the presetted pixel In the current pixel value collection of the point set corresponding sampling time for the first time, it is determined as the page rendering deadline.
Continue the example above, regard the 10200ms of sampling time for the first time (the 4th sampling time) of pixel value 3 as page wash with watercolours Contaminate the deadline.
Step S206: receiving end render instruction during page rendering, stops sampling operation, by the page cloth Office's logic deadline, it is determined as the page rendering deadline.
In render process, it is possible that some abnormal operations terminate render process.For example, user actively presses " home key " makes application switching homepage face, and user actively presses " power button " control screen blank screen etc..
It is received during page rendering after terminating render instruction, then stops sampling operation.Due to presetted pixel at this time Point set is also unstable, so the page layout logic deadline is determined as the page rendering deadline.
Step S207: the time difference of the page rendering deadline and the operation time started are calculated.
Continue the example above, the page rendering deadline is 10200ms, it is assumed that the operation time started acquired 9900ms, then the time difference of the two is 300ms.
Whether in preset time range step S208: judging time difference, if then entering step S209, if otherwise tying Beam.
Technical staff empirically sets using the time-consuming minimum duration with page switching time-consuming of starting, and when maximum It is long.Preset time range is formed by minimum duration and maximum time.
Whether in preset time range module judges time difference, and if indicating time difference if, effectively (terminal is normal Execute operating process), enter step S209.If not existing, then it represents that time difference is invalid (to be occurred different in terminal execution operating process Often).
Step S209: the time difference of the page rendering deadline and the operation time started are determined as grasping The presentation time of work.
By the above technological means, may be implemented it is following the utility model has the advantages that
The application increases new module in the application, is used to calculate page switching time-consuming and application starting consumption using the module When, so intrusion code will not be generated to original module.Also, when the sampling for the first time that the application is no longer changed using pixel value collection Between be used as the page rendering deadline, application starting time for being calculated based on the page rendering deadline and when page switching Between, sense of reality of being more close to the users.
According to another embodiment provided by the present application, the embodiment two that a kind of presentation time determines method is provided.We Method is integrated in the module (namely increasing new module) in IOS systematic difference except original module.Referring to fig. 4, it specifically includes Following steps:
Step S401: the operation time started is obtained.
Step S402: the page layout logic deadline is obtained.
Step S403: during page rendering to presetted pixel point set execute sampling operation, and record the sampling time and The corresponding pixel value collection of the presetted pixel point set.It is exemplified by Table 1 the explanation to pixel value collection.
Above-mentioned steps S401-S403 may refer to the specific descriptions of step S201-S203, and details are not described herein.
Step S404: the variable quantity of the adjacent pixel values collection of the presetted pixel point set is determined.
Continue the example above, variable quantity be illustrated:
Table 2
Step S405: in the case where the variable quantity of pixel value collection is repeatedly less than or equal to default variable quantity, by pixel value The variable quantity of collection is less than or equal to the sampling time for the first time of default variable quantity, is determined as the page rendering deadline.
Precision in above-described embodiment is higher, in the case where some not high for rendering completion required precision, Ke Yishe A default variable quantity is set, in the case where the variable quantity of pixel value collection is less than or equal to default variable quantity, determines page rendering It completes.
Continue the example above, it is assumed that default variable quantity is 0.1, it can be found that in pixel value collection in the later variable quantity of serial number 2 It is 0, i.e., variable quantity is less than default variable quantity.Therefore, the corresponding pixel value collection of the serial number 2 corresponding sampling time can be determined as Sampling time for the first time, and the sampling time is determined as the page rendering deadline.
Step S406: receiving end render instruction during page rendering, stops sampling operation, by the page cloth Office's logic deadline, it is determined as the page rendering deadline.
Step S407: the time difference of the page rendering deadline and the operation time started are calculated.
Whether in preset time range step S408: judging time difference, if then entering step S409, if otherwise tying Beam.
Step S409: the time difference of the page rendering deadline and the operation time started are determined as grasping The presentation time of work.
By the above technological means, may be implemented it is following the utility model has the advantages that
The application increases new module in the application, is used to calculate page switching time-consuming and application starting consumption using the module When, so intrusion code will not be generated to original module.Also, when the sampling for the first time that the application is no longer changed using pixel value collection Between be used as the page rendering deadline, application starting time for being calculated based on the page rendering deadline and when page switching Between, sense of reality of being more close to the users.
It, can be with the data volume of calculating operation corresponding page after embodiment one and embodiment two;Based on the data Amount and the presentation time determine operation corresponding page response speed;It, can be with to need the module using page response speed Invoking page response speed.
In addition, it is corresponding each attribute can also to be counted respectively according to the attribute of content of pages during webpage representation Presentation time, for example, the presentation time of statistics word attribute, the presentation time for counting picture attribute, the exhibition for counting video attribute Between current;To need the module using each attribute presentation time to call.
It is, of course, also possible to the presentation time of each attribute be exported, so that user checks the presentation time of each attribute, with true Whether good determine page performance.
Referring to Fig. 5, the determining device of page rendering deadline a kind of is provided, is integrated in IOS systematic difference Central Plains There is the module except module, described device includes:
Recording unit 401 for executing sampling operation to presetted pixel point set during page rendering, and records sampling Time and the corresponding pixel value collection of the presetted pixel point set;
Determination unit 402 will be described pre- in the case where the pixel value collection of the presetted pixel point set no longer changes If in the current pixel value collection of the pixel point set corresponding sampling time for the first time, being determined as the page rendering deadline.
The specific implementation process of determining device about the page rendering deadline may refer to embodiment shown in Fig. 2, Details are not described herein.
Referring to Fig. 6, a kind of presentation time determining device is provided, is integrated in IOS systematic difference except original module Module, described device includes:
Acquiring unit 501, for obtaining the operation time started;
Recording unit 401 for executing sampling operation to presetted pixel point set during page rendering, and records sampling Time and the corresponding pixel value collection of the presetted pixel point set;
Determination unit 402 will be described pre- in the case where the pixel value collection of the presetted pixel point set no longer changes If in the current pixel value collection of the pixel point set corresponding sampling time for the first time, being determined as the page rendering deadline;
Determine presentation time unit 502, for by the page rendering deadline and it is described operation the time started when Between difference, be determined as operation presentation time.
Specific implementation process about presentation time determining device may refer to Fig. 2 or embodiment shown in Fig. 4, herein not It repeats again.
If function described in the present embodiment method is realized in the form of SFU software functional unit and as independent product pin It sells or in use, can store in a storage medium readable by a compute device.Based on this understanding, the embodiment of the present application The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, this is soft Part product is stored in a storage medium, including some instructions are used so that calculating equipment (it can be personal computer, Server, mobile computing device or network equipment etc.) execute all or part of step of each embodiment the method for the application Suddenly.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), deposits at random The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic or disk.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other The difference of embodiment, same or similar part may refer to each other between each embodiment.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (20)

1. a kind of determination method of page rendering deadline characterized by comprising
Sampling operation is executed to presetted pixel point set during page rendering, and records sampling time and presetted pixel point Collect corresponding pixel value collection;
Determine the variable quantity of the adjacent pixel values collection of the presetted pixel point set;
The page rendering deadline is determined according to the variable quantity.
2. the method as described in claim 1, which is characterized in that it is described according to the variable quantity determine page rendering complete when Between, comprising:
In the case where the variable quantity of pixel value collection repeatedly meets default variable quantity, the variable quantity of pixel value collection is less than or equal to In the sampling time for the first time of default variable quantity, it is determined as the page rendering deadline.
3. method according to claim 2, which is characterized in that the variable quantity of the pixel value collection repeatedly meets default variable quantity The case where, comprising:
The change rate of pixel value collection is repeatedly less than or equal to default change rate;Alternatively,
The changing value of pixel value collection is repeatedly less than or equal to default changing value.
4. method according to claim 2, which is characterized in that the default variable quantity is zero, then described according to the variation It measures and determines the page rendering deadline, comprising:
Under multiple pixel value collection unanimous circumstances, sampled for the first time by the current pixel value collection of the presetted pixel point set is corresponding Time is determined as the page rendering deadline.
5. method according to claim 2, which is characterized in that the presetted pixel point set includes a pixel;
Then the variable quantity of the pixel value collection repeatedly meets the case where default variable quantity, comprising: the change of the pixel value of the pixel Change amount is repeatedly less than or equal to default variable quantity.
6. the method as described in claim 1, which is characterized in that the method is applied to the original module applied in IOS system Except module.
7. the method as described in claim 1, which is characterized in that execute sampling to presetted pixel point set during page rendering It further include the determining page layout logic deadline before operation;
Then the method also includes:
It is received during page rendering after terminating render instruction, stops sampling operation;
By the page layout logic deadline, it is determined as the page rendering deadline.
8. the method for claim 7, which is characterized in that the determining page layout logic deadline includes:
Monitor the function that representation page placement logic is completed;
In the case where the function is called, the function called time is recorded;
The time is determined as the page layout logic deadline.
9. a kind of presentation time determines method characterized by comprising
Obtain the operation time started;
Sampling operation is executed to presetted pixel point set during page rendering, and records sampling time and presetted pixel point Collect corresponding pixel value collection;
It determines the variable quantity of the adjacent pixel values collection of the presetted pixel point set, and determines that page rendering is complete according to the variable quantity At the time;
By the time difference of the page rendering deadline and the operation time started, it is determined as operating the exhibition of corresponding page Between current.
10. method as claimed in claim 9, which is characterized in that the method is applied to the original module applied in IOS system Except module.
11. method as claimed in claim 10, which is characterized in that the acquisition operation time started includes:
The application starting time started is obtained, or, obtaining the page switching time started;
Wherein, described to obtain the application starting time started include: the time that the record calls the loading function of class, and when by this Between be determined as the application starting time started.
12. method as claimed in claim 9, which is characterized in that adopted during page rendering to the execution of presetted pixel point set It further include the determining page layout logic deadline before sample operation;
Then the method also includes:
It is received during page rendering after terminating render instruction, stops sampling operation;
By the page layout logic deadline, it is determined as the page rendering deadline.
13. method as claimed in claim 11, which is characterized in that after determining the page rendering deadline, further includes:
Calculate the time difference of the page rendering deadline and the operation time started;
If the time difference is in preset time range, enters and start the page rendering deadline and the operation The time difference of time, be determined as operation presentation time the step of.
14. method as claimed in claim 9, which is characterized in that further include:
In the case where the presentation time is greater than threshold value, determine that showing the page process exception occurs.
15. method as claimed in claim 9, which is characterized in that further include:
The data volume of calculating operation corresponding page;
Amount and the presentation time based on the data determine operation corresponding page response speed.
16. method as claimed in claim 9, which is characterized in that further include:
During showing, the presentation time of multiple attributes in the page is counted;Wherein, multiple attributes include: word attribute, picture Attribute and video attribute;
Export the presentation time of each attribute.
17. a kind of determination method of page rendering deadline characterized by comprising
Sampling operation is executed to presetted pixel point set during page rendering, and records sampling time and presetted pixel point Collect corresponding pixel value collection;
Under the multiple pixel value collection unanimous circumstances that presetted pixel point set sampling obtains, by the presetted pixel point set In the current pixel value collection corresponding sampling time for the first time, it is determined as the page rendering deadline.
18. a kind of determining device of page rendering deadline characterized by comprising
Recording unit, for during page rendering to presetted pixel point set execute sampling operation, and record the sampling time and The corresponding pixel value collection of the presetted pixel point set;
Determine variable quantity unit, the variable quantity of the adjacent pixel values collection for determining the presetted pixel point set;
Deadline unit is determined, for determining the page rendering deadline according to the variable quantity.
19. a kind of presentation time determining device characterized by comprising
Acquiring unit, for obtaining the operation time started;
Recording unit, for during page rendering to presetted pixel point set execute sampling operation, and record the sampling time and The corresponding pixel value collection of the presetted pixel point set;
Determine variable quantity unit, the variable quantity of the adjacent pixel values collection for determining the presetted pixel point set, and according to described Variable quantity determines the page rendering deadline;
Determine deadline unit, for by the page rendering deadline and it is described operation the time started time difference, It is determined as operating the presentation time of corresponding page.
20. a kind of determining device of page rendering deadline characterized by comprising
Recording unit, for during page rendering to presetted pixel point set execute sampling operation, and record the sampling time and The corresponding pixel value collection of the presetted pixel point set;
Determine deadline unit, the multiple pixel value collection unanimous circumstances for obtaining in presetted pixel point set sampling Under, by the current pixel value collection of the presetted pixel point set corresponding sampling time for the first time, it is determined as the page rendering deadline.
CN201710941580.8A 2017-10-11 2017-10-11 Presentation time determines the determination method and device of method and page rendering deadline Pending CN109656645A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710941580.8A CN109656645A (en) 2017-10-11 2017-10-11 Presentation time determines the determination method and device of method and page rendering deadline

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710941580.8A CN109656645A (en) 2017-10-11 2017-10-11 Presentation time determines the determination method and device of method and page rendering deadline

Publications (1)

Publication Number Publication Date
CN109656645A true CN109656645A (en) 2019-04-19

Family

ID=66109100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710941580.8A Pending CN109656645A (en) 2017-10-11 2017-10-11 Presentation time determines the determination method and device of method and page rendering deadline

Country Status (1)

Country Link
CN (1) CN109656645A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110781067A (en) * 2019-10-30 2020-02-11 北京博睿宏远数据科技股份有限公司 Method, device, equipment and storage medium for calculating starting time consumption
CN112579416A (en) * 2020-12-11 2021-03-30 广州品唯软件有限公司 Page loading duration statistical method, terminal and readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777939A (en) * 2013-03-18 2014-05-07 北京基调网络系统有限公司 Method for measuring webpage first screen time
CN103812713A (en) * 2012-11-06 2014-05-21 腾讯科技(深圳)有限公司 Method and apparatus for testing webpage loading time
CN103930885A (en) * 2011-11-16 2014-07-16 微软公司 Measuring web page rendering time
CN103955428A (en) * 2014-04-30 2014-07-30 百度在线网络技术(北京)有限公司 Method and equipment for testing response speed of application
CN104166614A (en) * 2013-05-17 2014-11-26 腾讯科技(深圳)有限公司 Frame rate detecting method for mobile device and related device
CN106202096A (en) * 2015-05-05 2016-12-07 阿里巴巴集团控股有限公司 Customer terminal webpage rendering intent and device
CN106326097A (en) * 2015-07-01 2017-01-11 上海云双信息科技有限公司 Method and device for testing page perceived performance
CN106502902A (en) * 2016-10-25 2017-03-15 中国工商银行股份有限公司 Web page operational efficiency monitoring method and device
CN107239397A (en) * 2017-05-17 2017-10-10 北京微影时代科技有限公司 A kind of web automated testing methods and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103930885A (en) * 2011-11-16 2014-07-16 微软公司 Measuring web page rendering time
CN103812713A (en) * 2012-11-06 2014-05-21 腾讯科技(深圳)有限公司 Method and apparatus for testing webpage loading time
CN103777939A (en) * 2013-03-18 2014-05-07 北京基调网络系统有限公司 Method for measuring webpage first screen time
CN104166614A (en) * 2013-05-17 2014-11-26 腾讯科技(深圳)有限公司 Frame rate detecting method for mobile device and related device
CN103955428A (en) * 2014-04-30 2014-07-30 百度在线网络技术(北京)有限公司 Method and equipment for testing response speed of application
CN106202096A (en) * 2015-05-05 2016-12-07 阿里巴巴集团控股有限公司 Customer terminal webpage rendering intent and device
CN106326097A (en) * 2015-07-01 2017-01-11 上海云双信息科技有限公司 Method and device for testing page perceived performance
CN106502902A (en) * 2016-10-25 2017-03-15 中国工商银行股份有限公司 Web page operational efficiency monitoring method and device
CN107239397A (en) * 2017-05-17 2017-10-10 北京微影时代科技有限公司 A kind of web automated testing methods and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MINGZHU_USTC: ""android测量网页加载时间"", 《HTTPS://BLOG.CSDN.NET/U010037124/ARTICLE/DETAILS/38468657》, 10 August 2014 (2014-08-10), pages 1 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110781067A (en) * 2019-10-30 2020-02-11 北京博睿宏远数据科技股份有限公司 Method, device, equipment and storage medium for calculating starting time consumption
CN112579416A (en) * 2020-12-11 2021-03-30 广州品唯软件有限公司 Page loading duration statistical method, terminal and readable storage medium
CN112579416B (en) * 2020-12-11 2023-01-31 广州品唯软件有限公司 Page loading duration statistical method, terminal and readable storage medium

Similar Documents

Publication Publication Date Title
US20210184947A1 (en) Automatic capture of detailed analysis information based on remote server analysis
US6667743B2 (en) Method and system for graphically displaying trend and range data for a variety of systems
CN108376094B (en) Notification message display method and device, computer equipment and storage medium
WO2017042863A1 (en) Terminal device, information processing method, and information processing program
US8887059B2 (en) Method and apparatus of locally controlling display content of a remote system
CN105183302B (en) A kind of method and terminal of control application
CN104881273B (en) A kind of analysis method and terminal device of webpage rendering
CN106462320B (en) Method, device and equipment for starting task management interface
CN109783757B (en) Method, device and system for rendering webpage, storage medium and electronic device
WO2017198018A1 (en) Network quality performance exhibition method, apparatus and system, and storage medium
CN108469973B (en) Interface content display method and device and intelligent display equipment
CN113467871A (en) H5 page display method, device, equipment and storage medium
CN109656645A (en) Presentation time determines the determination method and device of method and page rendering deadline
CN112995418B (en) Video color ring playing method, sending method and related equipment
WO2019129161A1 (en) Method and apparatus for viewing background application on mobile terminal
CN113194200B (en) Message display method and device and electronic equipment
CN112463254A (en) Method, device and equipment for acquiring webpage loading time and storage medium
CN112540713A (en) Video preview progress bar scaling method, system, device and storage medium
CN107038736B (en) Animation display method based on frame rate and terminal equipment
CN114610295A (en) Layout method, device, equipment and medium for page container
CN109873980A (en) Video monitoring method, device and terminal device
WO2019134228A1 (en) Method for deleting application, readable storage medium, terminal apparatus, and device
US20110115788A1 (en) Method and apparatus for setting stereoscopic effect in a portable terminal
CN113242254B (en) Communication message processing method, device, terminal equipment and storage medium
CN106651968B (en) Game abnormity detection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190419

RJ01 Rejection of invention patent application after publication