CN109976966A - A kind of application program launching time counting method, apparatus and system - Google Patents

A kind of application program launching time counting method, apparatus and system Download PDF

Info

Publication number
CN109976966A
CN109976966A CN201711444655.8A CN201711444655A CN109976966A CN 109976966 A CN109976966 A CN 109976966A CN 201711444655 A CN201711444655 A CN 201711444655A CN 109976966 A CN109976966 A CN 109976966A
Authority
CN
China
Prior art keywords
app
time
starting
starts
time point
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
CN201711444655.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 CN201711444655.8A priority Critical patent/CN109976966A/en
Publication of CN109976966A publication Critical patent/CN109976966A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Databases & Information Systems (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Debugging And Monitoring (AREA)

Abstract

This application provides a kind of application program launching time counting methods, apparatus and system, from the angle of user's actual perceived, determine application program launching initial time and/or application program launching end time, to overcome the problems, such as to determine that startup program starting end time inaccuracy is delayed or determined to application program launching initial time on traditional technology, so that the application program launching time of statistics is more in line with the actual perceived of user, to be conducive to the starting performance that developer more accurately assesses app.

Description

A kind of application program launching time counting method, apparatus and system
Technical field
This application involves field of computer technology, in particular to application program launching time counting method, device and system.
Background technique
With popularizing for the mobile terminal devices such as smart phone and iPad, people are gradually got used to using application program (app) mode surfed the Internet, app refer to the third party application of the mobile terminals such as smart phone, plate;User is using app When, it can often encounter for the first time or non-initial start application, especially slow into application, i.e. application starting is slow;Therefore, when developing app, It must be tested for the property, not so will have a direct impact on user experience.And how to count app starting the time be app research and development when Technical problem urgently to be solved.
Summary of the invention
Based on this, present applicant proposes a kind of app to start time counting method, from the angle analysis of user's actual perceived App starts initial time and starting end time, to improve app starting time statistical accuracy.
Present invention also provides a kind of app starting time statistic device and systems, to guarantee the above method in practice Implementation and application.
Present applicant proposes a kind of app to start time counting method, comprising:
From the starting event time point of user's starting app to the time between the time point of operating system calling app code In range, determine that a time point starts initial time as app;
Determine that app starts the end time;
The difference for calculating the app starting end time and app starting initial time, takes the difference as described App starts the time.
Optionally, described to start the starting event time point of app to the time point of operating system calling app code from user Between time range in, determine a time point as app start initial time, comprising:
The time point of operating system creation app process is determined as app starting initial time.
Optionally, described to start the starting event time point of app to the time point of operating system calling app code from user Between time range in, determine a time point as app start initial time, comprising: by user start app starting thing Part time point is determined as app starting initial time.
Optionally, described to start the starting event time point of app to the time point of operating system calling app code from user Between time range in, determine a time point as app start initial time, comprising:
The time point that the starting event that operating system receives app prepares creation app process is determined as app starting starting Time.
The determining app starts the end time, comprising: makees the end time point of the life cycle function of the page of app Start the end time for app.
The determining app starts the end time, comprising: starts the end time point that control receives data as app End time.
Start time counting method corresponding to above-mentioned app, present applicant proposes a kind of app to start time statistic device, packet It includes:
First determining module, starting event time point to the operating system for starting app from user call app code In time range between time point, determine that a time point starts initial time as app;
Second determining module, for determining that app starts the end time;
Computing module, for calculating the difference of the app starting end time and app starting initial time, by institute Difference is stated as the app and starts the time.
Present applicant proposes another app to start time counting method, comprising:
Determine that app starts initial time;
Determine that app starts the end time according to the practical rendering situation of app content of pages;
The difference for calculating the app starting end time and app starting initial time, takes the difference as described App starts the time.
Optionally, the practical rendering situation according to app content of pages determines that app starts the end time, comprising:
Monitor the rendering ratio of app content of pages;The rendering ratio is reached to render time when preset ratio threshold value Point is determined as the app starting end time.
Optionally, the practical rendering situation according to app content of pages determines that app starts the end time, comprising:
As starting point, monitor content of pages within a preset time is the render time point for being started rendering using app content of pages It is no to change, if it is not, will detect that the time point that content of pages no longer changes is determined as the app starting end time for the first time.
Optionally, the practical rendering situation according to app content of pages determines that app starts the end time, comprising:
After app content of pages starts rendering, if receiving the operation that user implements the page, user is implemented to grasp The time point of work is determined as the app starting end time.
Optionally, the determining app starts initial time, comprising:
The time point that app code is performed is determined as app starting initial time.
Start time counting method corresponding to above-mentioned app, present applicant proposes another app to start time statistic device, Include:
First determining module, for determining that app starts initial time;
Second determining module, for determining that app starts the end time according to the app page rendering time;
Computing module, for calculating the difference of the app starting end time and app starting initial time, by institute Difference is stated as the app and starts the time.
The application also proposed the third app starting time counting method, comprising:
From the starting event time point of user's starting app to the time between the time point of operating system calling app code In range, determine that a time point starts initial time as app;
Determine that app starts the end time according to the practical rendering situation of app content of pages;
The difference for calculating the app starting end time and app starting initial time, takes the difference as described App starts the time.
Optionally, described to start the starting event time point of app to the time point of operating system calling app code from user Between time range in, determine a time point as app start initial time, comprising:
The time point of operating system creation app process is determined as app starting initial time.
Optionally, described to start the starting event time point of app to the time point of operating system calling app code from user Between time range in, determine a time point as app start initial time, comprising:
The starting event time point that user starts app is determined as app starting initial time.
It is described to start the starting event time point of app between the time point of operating system calling app code from user In time range, determine that a time point starts initial time as app, comprising:
The time point that the starting event that operating system receives app prepares creation app process is determined as app starting starting Time.
The practical rendering situation according to app content of pages determines that app starts the end time, comprising:
Monitor the rendering ratio of app content of pages;The rendering ratio is reached to render time when preset ratio threshold value Point is determined as the app starting end time.
The practical rendering situation according to app content of pages determines that app starts the end time, comprising:
As starting point, monitor content of pages within a preset time is the render time point for being started rendering using app content of pages It is no to change, if it is not, will detect that the time point that content of pages no longer changes is determined as the app starting end time for the first time.
Optionally, the practical rendering situation according to app content of pages determines that app starts the end time, comprising: After app content of pages starts rendering, if receiving the operation that user implements the page, user is implemented to the time point of operation It is determined as the app starting end time.
Start time counting method corresponding to above-mentioned app, the application also proposed the third app starting time statistics dress It sets, comprising:
First determining module, starting event time point to the operating system for starting app from user call app code In time range between time point, determine that a time point starts initial time as app;
Second determining module determines that app starts the end time for the practical rendering situation according to app content of pages;
Third determining module, for calculating the difference of the app starting end time and app starting initial time, Take the difference as the app starting time.
In addition, the application also proposed a kind of app starting time statistical system, comprising:
Terminal, the terminal include app starting time statistic device, which starts the function and knot of time statistic device Structure may refer to the description of device above;
The terminal for counting the app starting time using app starting time statistic device, and is generated and is used for The log for recording the app starting time sends the log to server;
The server, for storing the log.
Compared with prior art, the application has the following advantages:
The application starts the starting event time point of app between the time point of operating system calling app code from user Time range in, determine a time point as app start initial time, for example, operating system creation app process time The starting event that point, user start the starting event time point of app or operating system receives app prepares creation app process Time point.The precision of app starting initial time determining in this way is higher, more acurrate, overcomes prior art statistics app starting The shortcomings that time point generated when initial time is delayed.
The application is based on user experience, at the end of determining app starting according to the practical rendering situation of app content of pages Between, designing three kinds of different methods acquisition app startings to the operational circumstances of the page according to page complexity and user terminates Time can be improved the accuracy of app starting end time in this way, almost the same with the time of user's actual perceived,
App with high accuracy can be obtained by the above method and starts initial time and end time, and then obtains accuracy High app starts the time.It overcomes in the prior art, the app starting time differs larger with the statistical time of user's actual perceived The shortcomings that.
Certainly, implementing either the application proposition method, it is not absolutely required to reach all of above advantage simultaneously.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those of ordinary skill in the art, without any creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is the Sample Scenario figure of the application in practical applications;
Fig. 2 is a kind of flow chart of app starting time counting method provided by the embodiments of the present application;
Fig. 3 is the flow chart of another kind app starting time counting method provided by the embodiments of the present application;
Fig. 4 is a kind of schematic diagram of app page rendering situation provided by the embodiments of the present application;
Fig. 5 is the schematic diagram of another kind app page rendering situation provided by the embodiments of the present application;
Fig. 6 is the schematic diagram of the third app page rendering situation provided by the embodiments of the present application;
Fig. 7 is the flow chart of the third app starting time counting method provided by the embodiments of the present application;
Fig. 8 is a kind of structure chart of app starting time statistic device provided by the embodiments of the present application;
Fig. 9 is the structure chart of another kind app starting time statistic device provided by the embodiments of the present application;
Figure 10 is the structure chart of the third app starting time statistic device provided by the embodiments of the present application;
Figure 11 is a kind of structure chart of app starting time statistical system provided by the embodiments 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.
Technical solution provided by the present application in order to facilitate understanding below first carries out the research background of technical scheme Simple declaration.
In recent years, with the rapid proliferation and development of the terminal devices such as smart phone, tablet computer and mobile Internet, more Come into being come more mobile app, the app such as service for life class, amusement and recreation class, favor association class all largely emerge in large numbers with In face of family, the app of terminal installation is more and more, but the app for really being able to maintain user is few, as people meet app It is continuously improved by degree, the acquisition of people's mobile message has already appeared surplus, and the power of the new app of installation attempt is obviously insufficient, completely newly App want that obtaining the chance shown one's talent is increasingly difficult to.User can often encounter for the first time or when non-initial start when using app, It is slow using starting, user is influenced to the using effect of app;Therefore, when developing and safeguarding app, it is necessary to start to it The performance tests such as time, not so will have a direct impact on user experience.
In existing app starting time statistical, it is substantially from the time point that app code is called and removes statistics app Start the time, but mobile terminal often first carries out the initialization of system correlative code, Huo Zhexu before executing app code The code of security framework part is loaded first, this will lead to can be delayed in the acquisition of app starting initial time, and App starts in the acquisition of end time, also will receive the influence of the factors such as page complexity, causes collection result inaccurate, Due to starting initial time and start the end time it is not statistical uncertainty really, will lead to app starting the time statistics also with user reality The starting time of border perception is far from each other.
Based on this, present applicant proposes a kind of app to start time counting method, device and system, skill provided by the present application Art scheme is applied to terminal, when starting time, the starting time and the starting of user's actual perceived for counting app in terminal Between it is almost the same, then the app of the statistics starting time is generated into log, passes to server, in order to develop with after tester It is continuous that the performance of app is optimized.
The application scenarios of the application in practice are introduced below.
It is the Sample Scenario figure of the application in practical applications, as shown in Figure 1, app provided by the present application is opened referring to Fig. 1 Dynamic time counting method can be loaded into terminal 103 in the form of client 101 and be achieved;It is also loaded in the terminal 103 There are at least one application program app, such as app102.In practical applications, multiple app can be mounted in terminal 103, by this Client 101 counts multiple app starting time respectively.In practical applications, client 101 can be one it is independent Application program is also possible to the functional module being integrated in an application program, for example, the client 101 can integrate In app102;App102 is counted by client 101 and starts initial time and starting end time, then calculates opening for app102 The dynamic time, and generate log and be sent to server 104;What the reception different terminals of server 104 were sent starts the time about app Log, server 104 carry out storage management to these logs, provide data with the optimization for app and support.
From hardware realization, terminal 103 is the terminal device for referring to installation and operation application program, such as intelligent hand Machine, iPad, plate etc..Server 104 refers to the network equipment with store function and communication function.In actual deployment, Server 104 can use independent equipment, can also be realized using cluster server.
Based on use above scene, the embodiment of the present application provides a kind of app starting time counting method, below to the party Method is introduced.
It referring to fig. 2, is a kind of flow chart of app starting time counting method provided by the embodiments of the present application, such as Fig. 2 institute Show, this method comprises:
Step 201: from user start app starting event time point to operating system call app code time point it Between time range in, determine a time point as app start initial time;
Wherein, operating system calls the time point of app code to can be entrance function or structure that operating system calls app Make the time point of function, that is, the entrance function or constructed fuction of the app called time point executed;For example, in Android system In, the time point of operating system calling app code is the time point that operating system calls the constructed fuction of the app.
During specific implementation, using user's actual perceived as foundation, from user start app starting event time point to Operating system is called in the time range between the time point of app code, when determining that a time point starts starting as app Between, rather than statistics app starting start time point is removed from the angle for executing app code, it in this way can be by acquisition app starting starting Time point shifts to an earlier date, it is ensured that the app starting initial time of statistics and the time of user's actual perceived are almost the same.
Such as: before executing app code, operating system needs to be implemented the relevant initial code of necessary system, or Person needs to load security framework first for security consideration, and many frames may all use the means such as injection, agency Start in advance prior to app code, therefore, in order to accurately obtain app starting initial time, acquisition app is started into initial time In advance.
In the following, will be introduced to how to determine app starting initial time in step 201:
One kind is achieved in that, the time point of operating system creation app process is determined as app starting initial time;
During specific implementation, user starts app, as user clicks app icon or acoustic control starting app, operation system The app enabled instruction that system is triggered in response to user, operating system start to create consumer process, and in this process, operation System will record the creation time of the process or record prepares to create the time of the user app.So can be by operation The creation time for interface or other approach acquisition process of uniting.
For example, (including Android the IOS system based on these systems under the operating systems such as Linux/Unix System), can operating system /proc file system in record the details of each process.Under this systems, the CPU time with The records such as creation time are all the jiffies time, and jiffies is a global variable in kernel, for recording from system The beat number generated since starting.Hardware provides a system timer to kernel and passes through to calculate and manage time, kernel The frequency of programmed preset system timer, i.e. beat rate (tick rate), each period are referred to as a tick (beat).When When clock interrupt occurs, jiffies value just adds 1.In android system, the general beat period is 10ms.When due to CPU Between with the records such as creation time be all the jiffies time, then obtain operating system creation app process in this process Time point, so that it may subtract the time of process creation with the jiffies time of current system, and work as according to the jiffies time Period in preceding equipment calculates the difference of process creation time and current time.This difference is converted to millisecond in terms of facilitating Calculate, can also only obtain process the creation jiffies time, need using when calculate together.
In this case, due to using the time point for obtaining operating system creation app process as app starting starting It time, thus can be by the time ignored originally (including system in creation process to running in the entry code of app engineering The time of this part) statistics including, the initial time that starting is obtained from engineering code entrance is avoided, in the start completion time Label terminates before point, increases the flexibility of algorithm, while avoiding due to being held in advance by other frames agency, injection etc. Other skeleton codes of row, then execute statistical error problem brought by oneself engineering entry code again, increase time statistics Accuracy.
Another way is that user's starting app event time point is determined as app starting initial time;
For example: in the custom-built system of part, user can be clicked into the event time point that the modes such as screen start app It is recorded, during subsequent app creation, by this Time Transmission to new process and as at the beginning of one of executive process Beginningization time, the time that can thus take more early stage start initial time as app, and comparatively precision also can be higher.
The third mode is to determine the time point that the starting event that operating system receives app prepares creation app process Start initial time for app;
For example: in app start-up course, from the point of view of the level of operating system itself, it can will receive standard after event It is standby that the time for creating this app process is gone to do a record, if consumer process subsequent in this way can have technological means to be somebody's turn to do Time, can also be as the creation time point of process, such precision is also more relatively higher.
Step 202: determining that app starts the end time;
In the following, will be introduced to how to determine the app starting end time in step 202:
One kind is achieved in that, at the end of the end time point of the life cycle function of the page of app is started as app Between;
For example, showing that the time point of the first screen page is made when starting app in Android system (Android) Start the end time for app.That is, the onResume life cycle of Activity executes the time point completed as the page This time point is started end time point by time point through showing.
Another kind is achieved in that, the end time point that control receives data is started the end time as app;
For example, the data of server end are if desired used, then just during Taobao's app webpage representation on mobile phone To receive the data of server end and the control to Taobao's app page be arranged as end point, using this time point as the app Start end time point.
Step 203: calculating the difference of app starting end time and app starting initial time, opened using the difference as app The dynamic time;
App, which is got, by step 201 starts initial time, recycle step 202 gets the app starting end time, The difference for calculating app starting end time and app starting initial time, starts the time for the difference as app.
As can be seen from the above-described embodiment, when counting app starting initial time, app can be created using operating system The time point of process, user start app event time point or operating system receives the starting event preparation creation app of app The time point of process is determined as app starting initial time, existing app can be started start time point and shifted to an earlier date, thus with Practical app starting start time point is closer, that is, obtains more acurrate, the higher app starting initial time of precision, then passes through meter The difference for calculating app starting initial time and app starting end time obtains the more accurate app starting time.
Present invention also provides a kind of app to start time counting method, and this method is introduced below.
Referring to Fig. 3, start the flow chart of time counting method for another kind app provided by the embodiments of the present application, such as Fig. 3 institute Show, this method comprises:
Step 301: determining that app starts initial time;
In the following, will be introduced to how to determine app starting initial time in step 301:
A kind of optional implementation, the initial time of the starting to count app on the basis of the time point for calling code, example Such as, start initial time for the time point of the app personal code work being performed earliest as app.
For example, in Android system (Android) being started using the constructed fuction of Application as app The time point for executing this function code is started start time point as the app by starting point entrance.
Step 302: determining that app starts the end time according to the practical rendering situation of app content of pages;
It in the embodiment of the present application, is to determine that app starts the end time from the angle of user's actual perceived, so that app The statistics of starting time more meets user's actual perceived, is conducive to the optimization of app performance.
About the specific implementation of step 302, the embodiment of the present application provides several optional implementations, separately below into Row is introduced.
One kind is achieved in that, by monitoring the rendering ratio of app content of pages, which is reached preset ratio Render time point when threshold value is determined as the app starting end time;
In actual pages render process, by a content of pages in the way of lateral, longitudinal or both combine, draw It is divided into different blocks, grid is perhaps divided by a certain percentage with vertical and horizontal interval and then successively renders block content or net Lattice content, until the rendering of full page content finishes.Rendering ratio refers to that the content of pages being rendered in the page accounts for entirely The ratio of content of pages.
Above-mentioned implementation can monitor the rendering ratio of app content of pages during specific implementation by monitoring software The app page is whether divided into different blocks, or in the way of lateral, longitudinal or both combine with vertical and horizontal by example Interval is divided into grid by a certain percentage, can have been rendered in the app page shared by the page integrally needs to show by calculating The ratio for holding region, obtains the rendering ratio of app content of pages.For example, the content area that the app page is needed to show is according to vertical To mode, it is divided into different blocks, calculates the ratio for having rendered all blocks of the app page shared by block as in the app page The rendering ratio of appearance.
Assuming that default rendering proportion threshold value is 80%, then the render time that will monitor the page rendering ratio and reach 80% Point is determined as the app starting end time.
It is illustrated by taking Fig. 4 as an example, referring to fig. 4, Fig. 4 shows the more complicated app page schematic diagram of content of pages, figure Grey bottom shown in 4 is the more complicated app page of content of pages, and page elements are relatively more, and white portion represents the app page Content has rendered part, but the scheme of the embodiment of the present application in order to facilitate understanding, does not provide specific picture in Fig. 4, will be in the page The time point that the rendering ratio of appearance reaches mark in figure 80% rendering ratio is determined as the app starting end time.
Another kind is achieved in that, is started the render time point of rendering as starting point, in preset time using app content of pages Whether interior monitoring content of pages changes, if it is not, will detect that time point that content of pages no longer changes is determined as app and opens for the first time The dynamic end time.
During specific implementation, the page few for content or static page can be opened with app content of pages The render time point rendered begin as starting point, in the case that a period of time inherent user does not operate, monitors page within a preset time Whether face content changes, if it is not, at the end of detecting that time point that content of pages no longer changes is determined as app starting for the first time Between.
It should be noted that content of pages no longer changes and refers in the page whithin a period of time in above-mentioned implementation Rendering ratio is no longer changed whithin a period of time, rather than actual content pixel no longer changes, for example, the text of some pages Word can be made into horse race lamp and other effects and be shown, this display mode makes content of pages look like variation, but for For rendering ratio, this partial content no longer changes.
It is illustrated by taking Fig. 5 as an example, shows the few app page of content or the static state app page referring to Fig. 5, Fig. 5 Schematic diagram, but the scheme of the embodiment of the present application in order to facilitate understanding are rendered completely, specific picture are not provided in Fig. 5, by the app page The render time point that content is started rendering is starting point, is preset in monitoring period, and user does not do any operation, figure acceptance of the bid to the page The dot of note is the point that user implements trigger action after default monitoring period to the page, and triggers content of pages more Change, in this case, monitors content of pages within a preset time and do not change, then will detect that for the first time content of pages no longer changes Time point be determined as app starting the end time.
The third is achieved in that, after app content of pages starts rendering, if receiving the behaviour that user implements the page Make, then the time point that user implements operation is determined as the app starting end time;
During specific implementation, after app content of pages starts rendering, and algorithm is calculated and is not over yet, but is connect The operation that user implements the page is received, the time point which is triggered starts the end time as app.
In view of user is in using terminal, some maloperations may be triggered due to accidentally touching terminal screen, such as It has accidentally touched app and has shown the page, but it is not effective operation of user's triggering, therefore, in order to guarantee that determining app is opened The dynamic end time is consistent with user's actual perceived, the third above-mentioned implementation in practical applications, user is implemented effective The time point of operation is determined as the app starting end time.
Effective operation that user implements refers to what user implemented the page, can cause the changed operation of the page, such as User clicks the button on the page, and the page is jumped;If user slides the page, the page carries out page with user's glide direction Face migration;As user click the page on input frame, input frame focuses and allow user input etc..
Be illustrated by taking Fig. 6 as an example, referring to Fig. 6, Fig. 6 show content of pages start rendering after and algorithm calculate on not yet The app page schematic diagram of end, such as grey bottom are that app does not render the page, and white portion represents app and rendered the page, but The scheme of the embodiment of the present application in order to facilitate understanding does not provide specific picture in Fig. 6, as shown in fig. 6, completely not aobvious in the page Show, only after the page has rendered and partially shown input frame and login button, user inputs specified data in input frame, then clicks Login button, the page can jump to the new page, even if the former page is not shown completely at this time, can also jump to new page, realize The operation of the login new page of user, in this case, so that it may which the time point that user implements operation is determined as app starting knot The beam time.
Step 303: calculating the difference of app starting end time and app starting initial time, opened using the difference as app The dynamic time;
App is obtained by step 301 and starts initial time, in step 302 according to the practical rendering feelings of app content of pages Condition determine app start the end time, calculate app starting the end time and app starting initial time difference, using the difference as App starts the time.
As can be seen from the above-described embodiment, count app starting the end time when, be with the actual perceived of user be according to According to, determined according to the practical rendering situation of app content of pages app start the end time, thus with practical app starting at the end of Between put it is closer, that is, obtain more acurrate, the higher app of precision starts the end time, then starts initial time by calculating app With the difference of app starting end time, the more accurate app starting time is obtained.
Present invention also provides the third app to start time counting method, and this method is introduced below.
Referring to Fig. 7, start the flow chart of time counting method for the third app provided by the embodiments of the present application, such as Fig. 7 institute Show, this method comprises:
Step 701: from user start app starting event time point to operating system call app code time point it Between time range in, determine a time point as app start initial time;It implements process with described in step 201, Details are not described herein again.
Step 702: determining that app starts the end time according to the practical rendering situation of app content of pages;It was implemented Journey is with described in step 302, and details are not described herein again;
Step 703: calculating the difference of app starting end time and app starting initial time, opened using the difference as app The dynamic time;
App is respectively obtained by step 701 and 702 and starts initial time and end time, is calculated app and is started the end time With the difference of app starting initial time, start the time for the difference as app.
As can be seen from the above-described embodiment, when counting app starting initial time, app can be created using operating system The time point of process, user start app event time point or operating system receives the starting event preparation creation app of app The time point of process is determined as app starting initial time, existing app can be started start time point and shifted to an earlier date, thus with Practical app starting start time point is closer;The present embodiment is actually to be felt as starting point with user, according in the app page Hold practical rendering situation come determine app start the end time, thus with practical app starting end time point it is closer, in standard True obtains app starting initial time and after the end time, so that it may accomplish that the app starting time of statistics is more acurrate, and It is almost the same with the time of user's actual perceived.
Above-described embodiment describes three kinds of technical solutions of the application method in detail, and correspondingly, present invention also provides three The embodiment of kind app starting time statistic device.
It is a kind of structure chart of app starting time statistic device provided by the embodiments of the present application, such as Fig. 8 referring to Fig. 8, Fig. 8 Shown, which includes:
First determining module 801, starting event time point to the operating system for starting app from user call app generation In time range between the time point of code, determine that a time point starts initial time as app;Optionally, this first really The treatment process of cover half block 801 can be found in the realization of embodiment illustrated in fig. 2.
Second determining module 802, for determining that app starts the end time;Optionally, the place of second determining module 802 Reason process can be found in the realization of embodiment illustrated in fig. 2.
Computing module 803 will for calculating the difference of the app starting end time and app starting initial time The difference starts the time as the app;Optionally, the treatment process of the computing module 803 can be found in embodiment illustrated in fig. 2 It realizes.
It is the structure chart of another kind app starting time statistic device provided by the embodiments of the present application referring to Fig. 9, Fig. 9, such as schemes Shown in 9, which includes:
First determining module 901, for determining that app starts initial time;Optionally, the place of first determining module 901 Reason process can be found in the realization of embodiment illustrated in fig. 3.
Second determining module 902, for determining that app starts the end time according to the app page rendering time;Optionally, should The treatment process of second determining module 902 can be found in the realization of embodiment illustrated in fig. 3.
Computing module 903 will for calculating the difference of the app starting end time and app starting initial time The difference starts the time as the app;Optionally, the treatment process of the computing module 903 can be found in embodiment illustrated in fig. 3 It realizes.
It is the structure chart of the third app starting time statistic device provided by the embodiments of the present application referring to Figure 10, Figure 10, such as Shown in Figure 10, which includes:
First determining module 1001, starting event time point to the operating system for starting app from user call app generation In time range between the time point of code, determine that a time point starts initial time as app;Optionally, this first really The treatment process of cover half block 1001 can be found in the realization of embodiment illustrated in fig. 7.
Second determining module 1002, at the end of determining app starting for the practical rendering situation according to app content of pages Between;Optionally, the treatment process of second determining module 1002 can be found in the realization of embodiment illustrated in fig. 7.
Computing module 1003, for calculating the difference of the app starting end time and app starting initial time, Start the time for the difference as app;Optionally, the treatment process of the computing module 1003 can be found in embodiment illustrated in fig. 7 It realizes.
This application provides a kind of app to start time statistical system, and the system is introduced below.
Referring to Figure 11, start the structure chart of time statistical system for app provided by the embodiments of the present application, as shown in figure 11, The system includes:
Terminal 1101, including app start time statistic device, and the function and structure which starts time statistic device can To see above the description of Installation practice, for details, reference can be made to Fig. 8-10.
Terminal 1101 for counting the app starting time using app starting time statistic device, and is generated for recording App starts the log of time, sends the described log to server 1102.
Server 1102, for storing the log.
Technical solution provided by the present application starts the time from the angle of user's actual perceived to count app, so that statistics The app starting time out is truer, with more test value.In specific implementation, terminal will not only count the app starting time As a result generate corresponding app starting time log and upload to server-side, can also by the equipment brand of itself, equipment performance with And one or more kinds of device attribute informations such as device configuration are uploaded onto the server, so that server counts pipe from different dimensions It manages app and starts the time, provide authentic data for app developer, improve optimization efficiency.
Server can be communicated with one or more terminal, and the app that storage and management terminal is sent starts time log, In addition, being opened according to the device attribute information that terminal is sent from different dimensions, or from the comprehensive Macro or mass analysis app of multiple dimensions The dynamic time supports and optimizes reference point so as to provide more data in the subsequent development of app to app developer, makes Developer is subsequent more targetedly app to be optimized and be improved.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
A kind of application program launching time counting method provided herein, apparatus and system have been carried out in detail above It introduces, specific examples are used herein to illustrate the principle and implementation manner of the present application, the explanation of above embodiments It is merely used to help understand the present processes and its core concept;At the same time, for those skilled in the art, according to this The thought of application, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification is not answered It is interpreted as the limitation to the application.

Claims (22)

1. a kind of app starts time counting method characterized by comprising
From the starting event time point of user's starting app to the time range between the time point of operating system calling app code It is interior, determine that a time point starts initial time as app;
Determine that app starts the end time;
The difference for calculating the app starting end time and app starting initial time, takes the difference as the app Start the time.
2. method according to claim 1, which is characterized in that the starting event time point from user's starting app to behaviour Make in the time range that system was called between the time point of app code, determine that a time point starts initial time as app, Include:
The time point of operating system creation app process is determined as app starting initial time.
3. method according to claim 1, which is characterized in that the starting event time point from user's starting app to behaviour Make in the time range that system was called between the time point of app code, determine that a time point starts initial time as app, Include:
The starting event time point that user starts app is determined as app starting initial time.
4. method according to claim 1, which is characterized in that the starting event time point from user's starting app to behaviour Make in the time range that system was called between the time point of app code, determine that a time point starts initial time as app, Include:
When the time point that the starting event that operating system receives app prepares creation app process is determined as app starting starting Between.
5. method according to claim 1, which is characterized in that the determining app starts the end time, comprising:
Start the end time for the end time point of the life cycle function of the page of app as app.
6. method according to claim 1, which is characterized in that the determining app starts the end time, comprising:
The end time point that control receives data is started into the end time as app.
7. a kind of app starts time statistic device characterized by comprising
First determining module, for starting the starting event time point of app from user to the time of operating system calling app code In time range between point, determine that a time point starts initial time as app;
Second determining module, for determining that app starts the end time;
Computing module, for calculating the difference of the app starting end time and app starting initial time, by the difference Value starts the time as the app.
8. a kind of app starts time counting method characterized by comprising
Determine that app starts initial time;
Determine that app starts the end time according to the practical rendering situation of app content of pages;
The difference for calculating the app starting end time and app starting initial time, takes the difference as the app Start the time.
9. method according to claim 8, which is characterized in that described to be determined according to the practical rendering situation of app content of pages App starts the end time, comprising:
Monitor the rendering ratio of app content of pages;
Render time point when the rendering ratio is reached preset ratio threshold value is determined as the app starting end time.
10. method according to claim 8, which is characterized in that described to be determined according to the practical rendering situation of app content of pages App starts the end time, comprising:
The render time point for being started rendering using app content of pages monitors whether content of pages has within a preset time as starting point Variation, if it is not, will detect that the time point that content of pages no longer changes is determined as the app starting end time for the first time.
11. method according to claim 8, which is characterized in that described to be determined according to the practical rendering situation of app content of pages App starts the end time, comprising:
After app content of pages starts rendering, if receiving the operation that user implements the page, user is implemented into operation Time point is determined as the app starting end time.
12. method according to claim 8, which is characterized in that the determining app starts initial time, comprising:
The time point that app code is performed is determined as app starting initial time.
13. a kind of app starts time statistic device characterized by comprising
First determining module, for determining that app starts initial time;
Second determining module, for determining that app starts the end time according to the app page rendering time;
Computing module, for calculating the difference of the app starting end time and app starting initial time, by the difference Value starts the time as the app.
14. a kind of app starts time counting method characterized by comprising
From the starting event time point of user's starting app to the time range between the time point of operating system calling app code It is interior, determine that a time point starts initial time as app;
Determine that app starts the end time according to the practical rendering situation of app content of pages;
The difference for calculating the app starting end time and app starting initial time, takes the difference as the app Start the time.
15. 4 the method according to claim 1, which is characterized in that it is described from user start app starting event time point to Operating system is called in the time range between the time point of app code, when determining that a time point starts starting as app Between, comprising:
The time point of operating system creation app process is determined as app starting initial time.
16. 4 the method according to claim 1, which is characterized in that it is described from user start app starting event time point to Operating system is called in the time range between the time point of app code, when determining that a time point starts starting as app Between, comprising:
The starting event time point that user starts app is determined as app starting initial time.
17. 4 the method according to claim 1, which is characterized in that it is described from user start app starting event time point to Operating system is called in the time range between the time point of app code, when determining that a time point starts starting as app Between, comprising:
When the time point that the starting event that operating system receives app prepares creation app process is determined as app starting starting Between.
18. 4 the method according to claim 1, which is characterized in that described true according to the practical rendering situation of app content of pages Determine the app starting end time, comprising:
Monitor the rendering ratio of app content of pages;
Render time point when the rendering ratio is reached preset ratio threshold value is determined as the app starting end time.
19. 4 the method according to claim 1, which is characterized in that described true according to the practical rendering situation of app content of pages Determine the app starting end time, comprising:
The render time point for being started rendering using app content of pages monitors whether content of pages has within a preset time as starting point Variation, if it is not, will detect that the time point that content of pages no longer changes is determined as the app starting end time for the first time.
20. 4 the method according to claim 1, which is characterized in that described true according to the practical rendering situation of app content of pages Determine the app starting end time, comprising:
After app content of pages starts rendering, if receiving the operation that user implements the page, user is implemented into operation Time point is determined as the app starting end time.
21. a kind of app starts time statistic device characterized by comprising
First determining module, for starting the starting event time point of app from user to the time of operating system calling app code In time range between point, determine that a time point starts initial time as app;
Second determining module determines that app starts the end time for the practical rendering situation according to app content of pages;
Third determining module, for calculating the difference of the app starting end time and app starting initial time, by institute Difference is stated as the app and starts the time.
22. a kind of app starts time statistical system characterized by comprising
Terminal, the terminal include: device described in claim 7,13 or 21;
The terminal for counting the app starting time using app starting time statistic device, and is generated for recording App starts the log of time, sends the log to server;
The server, for storing the log.
CN201711444655.8A 2017-12-27 2017-12-27 A kind of application program launching time counting method, apparatus and system Pending CN109976966A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711444655.8A CN109976966A (en) 2017-12-27 2017-12-27 A kind of application program launching time counting method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711444655.8A CN109976966A (en) 2017-12-27 2017-12-27 A kind of application program launching time counting method, apparatus and system

Publications (1)

Publication Number Publication Date
CN109976966A true CN109976966A (en) 2019-07-05

Family

ID=67071087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711444655.8A Pending CN109976966A (en) 2017-12-27 2017-12-27 A kind of application program launching time counting method, apparatus and system

Country Status (1)

Country Link
CN (1) CN109976966A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110888812A (en) * 2019-11-26 2020-03-17 国核自仪系统工程有限公司 System and method for testing response time of terminal page
CN110968508A (en) * 2019-11-21 2020-04-07 腾讯科技(深圳)有限公司 Method, device, terminal and storage medium for determining loading time of applet
CN112380092A (en) * 2020-11-16 2021-02-19 统信软件技术有限公司 Application program starting time testing method
CN112579416A (en) * 2020-12-11 2021-03-30 广州品唯软件有限公司 Page loading duration statistical method, terminal and readable storage medium
CN114168222A (en) * 2021-11-29 2022-03-11 北京博睿宏远数据科技股份有限公司 Method and device for acquiring starting time, terminal equipment and storage medium
CN115309347A (en) * 2022-10-10 2022-11-08 苏州浪潮智能科技有限公司 Time management method, device, equipment and medium based on SSD master control frequency conversion
CN112380092B (en) * 2020-11-16 2024-05-31 统信软件技术有限公司 Application program starting time testing method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902625A (en) * 2012-11-14 2013-01-30 北京奇虎科技有限公司 Software performance test system and method
CN102929782A (en) * 2012-11-14 2013-02-13 北京奇虎科技有限公司 Device and method for testing software performances
CN103197944A (en) * 2013-04-11 2013-07-10 腾讯科技(深圳)有限公司 Method for determining performance of process of application program and computer system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902625A (en) * 2012-11-14 2013-01-30 北京奇虎科技有限公司 Software performance test system and method
CN102929782A (en) * 2012-11-14 2013-02-13 北京奇虎科技有限公司 Device and method for testing software performances
CN103197944A (en) * 2013-04-11 2013-07-10 腾讯科技(深圳)有限公司 Method for determining performance of process of application program and computer system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968508A (en) * 2019-11-21 2020-04-07 腾讯科技(深圳)有限公司 Method, device, terminal and storage medium for determining loading time of applet
CN110888812A (en) * 2019-11-26 2020-03-17 国核自仪系统工程有限公司 System and method for testing response time of terminal page
CN110888812B (en) * 2019-11-26 2023-11-07 国核自仪系统工程有限公司 Test system and test method for response time of terminal page
CN112380092A (en) * 2020-11-16 2021-02-19 统信软件技术有限公司 Application program starting time testing method
CN112380092B (en) * 2020-11-16 2024-05-31 统信软件技术有限公司 Application program starting time testing method
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
CN114168222A (en) * 2021-11-29 2022-03-11 北京博睿宏远数据科技股份有限公司 Method and device for acquiring starting time, terminal equipment and storage medium
CN114168222B (en) * 2021-11-29 2023-10-17 北京博睿宏远数据科技股份有限公司 Method and device for acquiring time consumption during starting, terminal equipment and storage medium
CN115309347A (en) * 2022-10-10 2022-11-08 苏州浪潮智能科技有限公司 Time management method, device, equipment and medium based on SSD master control frequency conversion

Similar Documents

Publication Publication Date Title
CN109976966A (en) A kind of application program launching time counting method, apparatus and system
CN111176960B (en) User operation behavior tracking method, device, equipment and storage medium
US10664289B2 (en) Loading sub-applications for a terminal application
US10321342B2 (en) Methods and systems for performance monitoring for mobile applications
Ferreira et al. Revisiting human-battery interaction with an interactive battery interface
CN106210770B (en) A kind of method and apparatus showing barrage information
CN108874268B (en) User behavior data acquisition method and device
CN107451193B (en) A kind of acquisition methods and device of customer terminal webpage load time, electronic equipment
CN110362483A (en) Performance data acquisition method, device, equipment and storage medium
CN108762760A (en) Software interface customizing method, device, computer equipment and storage medium
CN108874672B (en) Application program exception positioning method, device, equipment and storage medium
CN109814801A (en) Using login method, device, terminal and storage medium
CN107948672A (en) Preserve the method and system and server, Wearable of video data
CN110795311A (en) Event playback method and device
CN107395872B (en) Application starting method and device, storage medium and electronic equipment
CN104572086A (en) Method and system for acquiring FPS (Frames Per Second) value based on Android Device
CN108197002B (en) Mobile device non-buried point data statistical method, system, terminal and medium
WO2017206476A1 (en) Method, device and apparatus for detecting cpu occupation
US20180121045A1 (en) Toggling application feature flags based on user sentiment
CN116933707A (en) Test method, device, equipment and medium for design circuit
CN107102937B (en) User interface testing method and device
CN111078383A (en) Timed task management method, device, equipment and storage medium
KR101744696B1 (en) Method, device, program and recording medium for filtering information
CN111475423A (en) Data entry method and device, electronic equipment and readable storage medium
CN111381908B (en) Timing information display method, timing information display device and storage medium

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

Application publication date: 20190705