CN107590060A - A kind of analysis method and device of terminal interim card - Google Patents

A kind of analysis method and device of terminal interim card Download PDF

Info

Publication number
CN107590060A
CN107590060A CN201710791520.2A CN201710791520A CN107590060A CN 107590060 A CN107590060 A CN 107590060A CN 201710791520 A CN201710791520 A CN 201710791520A CN 107590060 A CN107590060 A CN 107590060A
Authority
CN
China
Prior art keywords
message
consuming
time
type
analysis
Prior art date
Application number
CN201710791520.2A
Other languages
Chinese (zh)
Inventor
王戬
Original Assignee
杭州时趣信息技术有限公司
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 杭州时趣信息技术有限公司 filed Critical 杭州时趣信息技术有限公司
Priority to CN201710791520.2A priority Critical patent/CN107590060A/en
Publication of CN107590060A publication Critical patent/CN107590060A/en

Links

Abstract

The invention discloses a kind of analysis method of terminal interim card, including:Identify the type of message of the currently processed message of main thread;Calculate the duration used in processing message;Frame losing number is determined according to duration, and generates the analysis report comprising type of message and frame losing number.As can be seen here, the analysis method of terminal interim card disclosed by the invention, the duration handled by main thread used in message can calculate frame losing number, and to generate analysis report together for reference for the type of message that will identify that and the frame losing number that calculates, engineer or other users enable according to the type of message and corresponding frame losing number provided in analysis report, navigate within the shorter time that terminal capabilities is low, the basic reason of interim card using less energy, so as to solves the problems, such as at faster speed terminal capabilities lowly, interim card.Therefore, this method can improve the operating efficiency of engineer or other users.In addition, the invention also discloses a kind of analytical equipment of terminal interim card, effect is as above.

Description

A kind of analysis method and device of terminal interim card

Technical field

The present invention relates to electronics technology application field, the more particularly to a kind of analysis method and device of terminal interim card.

Background technology

The fluency of terminal is very important Consumer's Experience, and works as the behaviour for ensuring that single refreshing can be just completed in 16ms When making, the refreshing frame per second can of screen is optimal value, and now, end-user experience is also optimal, but works as main thread When the task of execution is excessively heavy, usually there is frame phenomenon, so as to reduce refreshing frame per second, and then cause the performance of terminal low Under, interim card, influence the experience of terminal user.

Current performance monitoring tool, such as the GT of Tengxun, the Emmagee of Netease, can only all provide the current frame per second that refreshes is How much, and it can not provide that to cause to refresh frame per second low, or even cause that terminal capabilities is low, the clear and definite reason of interim card.But in order to carry The experience sense of high terminal user, when terminal software degraded performance, interim card, engineer then has to consume substantial amounts of time and essence Power carries out manual test to determine that terminal capabilities is low, basic reason of interim card, and then lifts the fluency of terminal.

Therefore, the time and energy for determining that the basic reason of terminal interim card is spent how are reduced, to improve operating efficiency It is the current technical issues that need to address of those skilled in the art.

The content of the invention

It is an object of the invention to provide a kind of analysis method of terminal interim card, can reduce the basic original for determining terminal interim card Because of the time spent and energy, and then improve operating efficiency.

In order to solve the above-mentioned technical problem, the analysis method of terminal interim card provided by the invention, including:

Identify the type of message of the currently processed message of main thread;

Calculate the duration used in the processing message;

Frame losing number is determined according to the duration, and generates the analysis report comprising the type of message and the frame losing number.

Preferably, it is described to calculate the duration handled used in the message when the type of message is interface processing message Specially:

Intercept event handling operation, animation operation, drafting event action and GPU and draw operation;

Calculate respectively and perform event handling operation and take, perform the animation operation and take, perform the drafting thing It is time-consuming that part operation takes and performed the GPU draftings operation;

It is then corresponding, also taken in the analysis report comprising the execution event handling operation, perform the animation behaviour When making trouble, to perform the drafting event action time-consuming and perform the GPU to draw operation time-consuming.

Preferably, while the calculating handles the duration used in the message, the analysis method also includes:

The storehouse of main thread described in timing tracking, and the mark included in the storehouse is identified to determine and the mark pair The time-consuming operation answered;

Count the action type of the time-consuming operation, the number of the execution time-consuming operation and perform the time-consuming operation It is time-consuming;

It is then corresponding, also comprising the action type, the number and described time-consuming in the analysis report.

Preferably, the time-consuming operation includes:Input-output operation, data base read-write operation, vernier operation and picture are compiled Code device encoding operation.

Preferably, the storehouse of main thread described in the timing tracking, and the mark included in the storehouse is identified to determine Time-consuming operation corresponding with the mark specifically includes:

A data are taken from the storehouse every 16 milliseconds;

It is corresponding with the mark described to be determined according to the mark to identify the mark included in the data Time-consuming operation.

Preferably, when the type of message is interface processing message, the analysis method also includes:

Calculate the number and CPU usage of garbage reclamation;

Then accordingly, the number of the garbage reclamation and the CPU usage are also included in the analysis report.

In order to solve the above-mentioned technical problem, the analytical equipment of terminal interim card provided by the invention, including:

Identification module, for identifying the type of message of the currently processed message of main thread;

First computing module, for calculating the duration used in the processing message;

Generation module, for determining frame losing number according to the duration, and generate and include the type of message and the frame losing Several analysis reports.

Preferably, first computing module also includes:

Interception unit, for when the type of message is interface processing message, intercepting event handling operation, animation behaviour Make, draw event action and GPU drafting operations;

Computing unit, perform event handling operation for calculating respectively and take, perform the animation operation and take, hold It is time-consuming that the row drafting event action takes and performed the GPU draftings operation;

Then corresponding, the generation module, being additionally operable to generation, also comprising performing, the event handling operation is time-consuming, performs institute State that animation operation takes, to perform the drafting event action time-consuming and perform the GPU and draw the time-consuming analysis report of operation.

Preferably, the analytical equipment also includes:

Tracking module, for while the computing module calculates and handles the duration used in the message, timing tracking The storehouse of the main thread, and the mark included in the storehouse is identified to determine time-consuming operation corresponding with the mark;

Statistical module, for counting action type, the number for performing the time-consuming operation and the execution of the time-consuming operation The time-consuming operation takes;

It is then corresponding, the generation module, generation is additionally operable to also comprising the action type, the number and described time-consuming Analysis report.

Preferably, the analytical equipment also includes:

Second computing module, for when the type of message is interface processing message, calculate garbage reclamation number and CPU usage;

Then accordingly, the generation module, it is additionally operable to the generation also number comprising the garbage reclamation and the CPU and takes The analysis report of rate.

For above-mentioned prior art, the analysis method of terminal interim card provided by the invention, including:Identify main thread The type of message of currently processed message;Calculate the duration used in processing message;Frame losing number is determined according to duration, and generates and includes The analysis report of type of message and frame losing number.As can be seen here, the analysis method of terminal interim card provided by the invention, passes through main thread Duration used in processing message can calculate frame losing number, and the type of message that will identify that is given birth to together with the frame losing number calculated It is for reference into analysis report so that engineer or other users can according to the type of message provided in analysis report and therewith Corresponding frame losing number, navigates within the shorter time that terminal capabilities is low, the basic reason of interim card using less energy, from And solve the problems, such as that terminal capabilities is low, interim card at faster speed.Therefore, this method can improve engineer or other users Operating efficiency.In addition, present invention also offers a kind of analytical equipment of terminal interim card, effect is as above.

Brief description of the drawings

In order to illustrate the embodiments of the present invention more clearly, the required accompanying drawing used in embodiment will be done simply below Introduce, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for ordinary skill people For member, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.

Fig. 1 is a kind of flow chart of the analysis method of terminal interim card provided in an embodiment of the present invention;

Fig. 2 is flow chart corresponding to a kind of step S11 provided in an embodiment of the present invention;

Fig. 3 is the flow chart of the analysis method of another terminal interim card provided in an embodiment of the present invention;

Fig. 4 is a kind of structure chart of the analytical equipment of terminal interim card provided in an embodiment of the present invention.

Embodiment

Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Based on this Embodiment in invention, those of ordinary skill in the art on the premise of creative work is not paid, obtained it is all its His embodiment, belongs to the scope of the present invention.

It is an object of the invention to provide a kind of analysis method of terminal interim card, can reduce the basic original for determining terminal interim card Because of the time spent and energy, and then improve operating efficiency.

In order that those skilled in the art is better understood from technical solution of the present invention, below in conjunction with the accompanying drawings and it is embodied The present invention is described in further detail for mode.

Fig. 1 is a kind of flow chart of the analysis method of terminal interim card provided in an embodiment of the present invention.It is as shown in figure 1, our Method includes:

S10:Identify the type of message of the currently processed message of main thread.

S11:Calculate the duration used in processing message.

S12:Frame losing number is determined according to duration, and generates the analysis report comprising type of message and frame losing number.

It should be noted that the type of message of the message of main thread processing includes interface processing message (UI message) and non-UI The major class of message two, wherein, non-UI message includes many classification again.Furthermore, it should be noted that generation type of message and frame losing number Analysis report be that frame losing number caused by order to record which type of message is how many, to help engineer or other users clear and definite The reason for terminal capabilities low interim card, so under specific circumstances, can also with the message name of message disappearing come response message Cease type, then directly generate the analysis report for including message name and frame losing number.In specific implementation, for step , can whether the mark comprising UI message judges the message class of the currently processed message of main thread by message for S10 Type, if it is, the type of message of the currently processed message of main thread is UI message, if it is not, then main thread is currently processed The type of message of message is non-UI message.It is, of course, understood that in the message class of the currently processed message of identification main thread While type, the message name of the currently processed message of main thread can also be recorded, is also wrapped so as to generate in step s 12 Analysis report containing message name.

Aspect is realized in code, the message class of the Looper.loop codes message currently processed to main thread can be passed through Type is identified, and can also realize that the type of message of the message currently processed to main thread is known by other codes certainly Not, the present invention repeats no more.Below by taking concrete implementation code as an example, step S10 is described in detail.

Utilize code:

Main line is set by Looper.getMainLooper () .setMessageLogging (actPerfPrinter) The mLogging member of journey, the message of main thread processing is intercepted, and to print main thread current by printing mLogging member The runnable (msg.callback) of handler (msg.target) and message belonging to the message of processing.And every disappearing Comprising View.Choreographer in breath, then it is UI message, is otherwise non-UI message.

In specific implementation, for step S11, sequencing is had no with step S10, as long as main thread is current Message is handled, duration used in current message can be handled to calculate main thread.It is understood that handle message calculating When duration used, the total duration used in processing message can be only calculated, each step is performed when not calculating processing message Suddenly the time spent;It is of course also possible to perform the time that each step is spent when calculating processing message, finally add up and hold again The time that each step of row is spent is to obtain handling the total duration used in message.

In specific implementation, whether main thread in processing is currently that UI message is also non-UI message, and main thread is It is occupied and other message beyond currently processed message can not be handled, so when main thread handles the duration used in a message Frame losing is will result in when long, terminal capabilities is low, interim card so as to cause.Usually, if main thread handles message Duration will result in frame losing phenomenon more than 16 milliseconds, and the duration for handling message often spends 16 milliseconds and will lose a frame data, Go to handle a UI message for example, main thread consumes 32 milliseconds, then may can cause 2 (32/16) frame data frame losings.Institute For step S12, the duration used in message can be handled according to main thread to determine frame losing number, and generate and include The analysis report of type of message and frame losing number refers to for engineer or other users.

However, it is noteworthy that in analysis report, the type of message of the same message of main thread processing and frame losing Number is mutually corresponding, that is to say, that if during the message A of main thread processing, identification outbound message A type is A1, is calculated When a length of A2 used in message A is handled, then A1 is mutually corresponding with A2 in the analysis report of generation.If in addition, led in identification During the type of message of the message of thread process, while it have recorded the title of message, then corresponding should also be wrapped in analysis report Title containing message, that is to say, that if during the message A of main thread processing, identification outbound message A type is A1, calculates source When a length of A2 used in message A is managed, then message name A, type of message A1 and handling duration are included in the analysis report of generation A2, and A, A1 and A2 are mutually corresponding.

As can be seen here, the present embodiment provide terminal interim card analysis method, by main thread handle message used in when Length can calculate frame losing number, and the type of message that will identify that generates analysis report with the frame losing number calculated for ginseng together Examine so that engineer or other users can make according to the type of message and corresponding frame losing number provided in analysis report Navigate within the shorter time that terminal capabilities is low, the basic reason of interim card with less energy, so as at faster speed Solve the problems, such as that terminal capabilities is low, interim card.Therefore, this method can improve the operating efficiency of engineer or other users.

Fig. 2 is flow chart corresponding to a kind of step S11 provided in an embodiment of the present invention.On the basis of above-described embodiment, In another embodiment, when type of message is UI message, step S11 is specifically included:

S20:Intercept event handling operation, animation operation, drafting event action and GPU and draw operation.

S21:Calculating execution event handling operation is time-consuming respectively, performs animation operation is taken, event action consumption is drawn in execution When and perform GPU to draw operation time-consuming.

Then corresponding, also comprising performing, event handling operation is time-consuming, it is time-consuming to perform animation operation, performs and paints in analysis report Event action processed is time-consuming and execution GPU draws operation and taken.

Provided in the present embodiment when the type of message of main thread processing is UI message, a kind of step S11 specific implementation Mode, in addition to a kind of this embodiment, other embodiment can also be taken, the present invention repeats no more.Usually, handling Four steps can be performed during UI message, be respectively perform event handling operation, perform animation operation, perform draw event action and Perform GPU and draw operation, then, can be by setting hook procedure for step S20, these four operations are performed with calculating Every kind of operation takes, to generate in addition to comprising type of message and frame losing number, also taken comprising execution event handling operation, Execution animation operation is time-consuming, performing drafting event action, time-consuming and execution GPU draws the analysis report that operation takes.

For step S21, can calculate respectively perform event handling operation is time-consuming, it is time-consuming to perform animation operation, Execution drafting event action is time-consuming and execution GPU draws to operate and taken.It is so corresponding, execution thing is should also contain in analysis report Part processing operation is time-consuming, it is time-consuming to perform animation operation, performs that to draw event action time-consuming and perform GPU to draw operation time-consuming, and In the analysis report of generation, these four it is time-consuming with its belonging to UI message it is corresponding.

Aspect is realized in code, can be self-defined by putting one below decorView to each activity Framelayout, using other all sub- View all as this framelayout View so that all behaviour of UI message Make to intercept to realize by this framelayout, all behaviour to UI message can also be realized by other method certainly The interception of work, the present invention repeat no more.Below by taking concrete implementation code as an example, step S20 and step S21 is carried out specifically It is bright.

Utilize code:

A self-defined framelayout, and another other institutes are put below decorView to each activity Sub- Views of the sub- View having all as this framelayout so that all operations of UI message are both needed to by this framelayout。

Utilize code:

All drafting time operations are intercepted, and counts to perform and draws the duration that event action is consumed.

As can be seen here, the present embodiment provide terminal interim card analysis method, by main thread handle UI message when, hold Duration used in each operation of row calculates respectively, and will perform duration used in each operation with the type of message and calculating identified The frame losing number gone out generates analysis report to provide more comprehensive reference for engineer or other users together so that engineer or Other users can be default in the shorter time using less energy according to the more comprehensive information provided in analysis report Position to terminal capabilities is low, the basic reason of interim card, so as to solves the problems, such as at faster speed terminal capabilities lowly, interim card. Therefore, this method can improve the operating efficiency of engineer or other users.

Fig. 3 is the flow chart of the analysis method of another terminal interim card provided in an embodiment of the present invention.As shown in figure 3, On the basis of above-described embodiment, in another embodiment, in addition to including step S10 and step S11, in addition to:

S30:The storehouse of timing tracking main thread, and identify that the mark included in storehouse is corresponding with indicating time-consuming to determine Operation.

S31:Count the action type of time-consuming operation, the number of execution time-consuming operation and perform the time-consuming of time-consuming operation.

S32:Generation includes action type, number and the time-consuming and analysis report of type of message and frame losing number.

It should be noted that step S30 and step S31 is performed while step S11 is performed, and step S32 is in step Rapid S31 and step S11 is performed after being finished;Time-consuming operation specifically includes input-output operation, data base read-write operation, vernier Operation and image encoder encoding operation.In specific implementation, for step S30, can according to default time interval, The storehouse of timing tracking main thread, identify storehouse in all marks with determine with each corresponding time-consuming operation of mark, certainly, It can also judge which message is the longer message of handling duration be specially according to timestamp, then necessarily included in the message There is time-consuming longer operation, then when handling the message, targetedly the data taken out from storehouse are identified, with The mark of the time-consuming longer operation included in data is identified, so that it is determined that going out time-consuming longer operation corresponding with the mark.

One kind as step S30 is preferably carried out mode, the storehouse of timing tracking main thread, and identifies in storehouse and include Mark to determine that time-consuming operation corresponding with indicating specifically includes:A data are taken from storehouse every 16 milliseconds;Identify number The mark included in is determined and the corresponding time-consuming operation of mark with foundation mark.Certainly, in addition to a kind of this embodiment, Other embodiment can also be taken, the time interval for such as tracking storehouse is bigger than 16 milliseconds or small, and the present invention repeats no more.

For step S31, count the action type of time-consuming operation, the number of execution time-consuming operation and perform time-consuming behaviour That makees is time-consuming.It is so corresponding, action type, number are should also contain in analysis report and is taken, and in the analysis report of generation In, these three statistics should be corresponding with the message that time-consuming operation is belonged to.

Aspect is realized in code, a data can be taken from the storehouse of main thread every 16 milliseconds, and according to the time Stamp judges time-consuming longer message, then has and targetedly determines corresponding time-consuming operation, to count time-consuming operation Type, perform number and perform time-consuming.Certainly time-consuming operation can also be determined by other method, and counts its type, is performed Number and execution are time-consuming, and the present invention repeats no more.Below by taking concrete implementation code as an example, step S30 is described in detail.

Utilize code:

Realization takes a data every 16 milliseconds from the storehouse of main thread, and is judged according to timestamp time-consuming longer Message, the mark included from the string data of the taking-up of storehouse, such as .file or .net are then identified, according to identification The mark gone out determines and the corresponding time-consuming operation of mark.

As can be seen here, the analysis method for the terminal interim card that the present embodiment provides, by the storehouse of timing tracking main thread, and The mark included in identification storehouse finally counts the type of time-consuming operation to determine time-consuming operation corresponding with indicating.Perform Number and execution are time-consuming, and these three data are generated into analysis together with the type of message identified and the frame losing number calculated and reported Accuse to provide more comprehensive reference for engineer or other users so that engineer or other users can be according to analysis reports The more comprehensive information of middle offer, it is low, interim card that terminal capabilities is navigated within the shorter time using less energy Basic reason, so as to solves the problems, such as at faster speed terminal capabilities lowly, interim card.Therefore, this method can improve engineering Teacher or the operating efficiency of other users.

In order that the data in the analysis report of method provided by the invention generation are more comprehensive, can make engineer or its The content of his user in analysis report grasps the processing data of terminal, and the present invention is on the basis of above-described embodiment, another In embodiment, in addition to step S10-S12, in addition to:Calculate the number and CPU usage of garbage reclamation.Moreover, calculating rubbish After the number and CPU usage of rubbish recovery, except comprising the type of message that identifies and calculating in the analysis report of generation Outside frame losing number, also corresponding to include the number of garbage reclamation and CPU occupancy so that engineer or other users can be according to According to the more comprehensive information provided in analysis report, it is low within the shorter time to navigate to terminal capabilities using less energy Under, the basic reason of interim card, so as to solves the problems, such as at faster speed terminal capabilities lowly, interim card.Therefore, this method can Improve the operating efficiency of engineer or other users.

It is described in detail above for a kind of embodiment of the analysis method of terminal interim card provided by the invention, this Invention additionally provides a kind of analytical equipment of terminal interim card corresponding with this method, due to embodiment and the method portion of device part The embodiment divided mutually correlates, therefore the embodiment of device part refers to the description of the embodiment of method part, here wouldn't Repeat.

Fig. 4 is a kind of structure chart of the analytical equipment of terminal interim card provided in an embodiment of the present invention.As shown in figure 4, analysis Device includes:

Identification module 40, for identifying the type of message of the currently processed message of main thread.

First computing module 41, for calculating the duration used in processing message.

Generation module 42, for determining frame losing number according to duration, and generate the analysis report comprising type of message and frame losing number Accuse.

As can be seen here, the analytical equipment for the terminal interim card that the present embodiment provides, the first meter can be utilized by generation module The duration used in the main thread processing message that module counts is calculated, calculates frame losing number, and the message that identification module is identified It is for reference that the frame losing number that type and generation module calculate generates analysis report together so that engineer or other users can It is default in the shorter time using less energy according to the type of message and corresponding frame losing number provided in analysis report Position to terminal capabilities is low, the basic reason of interim card, so as to solves the problems, such as at faster speed terminal capabilities lowly, interim card. Therefore, the present apparatus can improve the operating efficiency of engineer or other users.

Preferably embodiment, the first computing module 41 also include:

Interception unit, for when type of message is interface processing message, intercepting event handling operation, animation operation, painting Event action processed and GPU draw operation.

Computing unit, for calculating respectively, execution event handling operation is time-consuming, performing animation operation, thing is drawn in time-consuming, execution Part operation is time-consuming and execution GPU drafting operations are time-consuming.

Then corresponding, generation module 42, being additionally operable to generation, also comprising performing, event handling operation is time-consuming, performs animation operation Time-consuming, execution drafting event action takes and performed GPU and draws the analysis report for operating and taking.

Preferably embodiment, analytical equipment also include:

Tracking module, for computing module calculate processing message used in duration while, timing tracking main thread Storehouse, and the mark included in storehouse is identified to determine time-consuming operation corresponding with indicating.

Statistical module, for counting the action type of time-consuming operation, the number of execution time-consuming operation and performing time-consuming operation It is time-consuming.

It is then corresponding, generation module 42, it is additionally operable to generation and also includes action type, number and time-consuming analysis report.

Preferably embodiment, analytical equipment also include:

Second computing module, for when type of message is interface processing message, the number and CPU that calculate garbage reclamation to account for With rate.

Then accordingly, generation module 42, it is additionally operable to the generation also analysis report of the number comprising garbage reclamation and CPU usage Accuse.

The analysis method and device of terminal interim card provided by the present invention are described in detail above.It is each in specification Individual embodiment is described by the way of progressive, and it is difference with other embodiments that each embodiment, which stresses, each Between embodiment identical similar portion mutually referring to.

It should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention, Some improvement and modification can also be carried out to the present invention, these are improved and modification also falls into the protection domain of the claims in the present invention It is interior.

It should also be noted that, in this manual, such as first and second etc relational terms are used merely to one Individual entity either operates to be made a distinction with another entity or operation, and is not necessarily required and either implied these entities or behaviour Any this actual relation or order between work be present.Moreover, term " comprising ", "comprising" or its any variant are intended to Cover including for nonexcludability, so that process, method, article or equipment including a series of key element not only include that A little key elements, but also other key elements including being not expressly set out, either also include for this process, method, article or set Standby intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Other identical element in the process including the key element, method, article or equipment also be present.

Claims (10)

  1. A kind of 1. analysis method of terminal interim card, it is characterised in that including:
    Identify the type of message of the currently processed message of main thread;
    Calculate the duration used in the processing message;
    Frame losing number is determined according to the duration, and generates the analysis report comprising the type of message and the frame losing number.
  2. 2. analysis method according to claim 1, it is characterised in that when the type of message is interface processing message, The duration handled used in the message that calculates is specially:
    Intercept event handling operation, animation operation, drafting event action and GPU and draw operation;
    Calculate respectively and perform event handling operation and take, perform the animation operation and take, perform the drafting event behaviour When making trouble and the execution GPU draws operation and taken;
    It is then corresponding, also taken in the analysis report comprising the execution event handling operation, perform the animation operation consumption When, to perform the drafting event action time-consuming and perform the GPU to draw operation time-consuming.
  3. 3. analysis method according to claim 1, it is characterised in that in the duration for calculating and handling used in the message While, in addition to:
    The storehouse of main thread described in timing tracking, and identify that the mark included in the storehouse is corresponding with the mark to determine Time-consuming operation;
    Count the action type of the time-consuming operation, the number of the execution time-consuming operation and the consumption for performing the time-consuming operation When;
    It is then corresponding, also comprising the action type, the number and described time-consuming in the analysis report.
  4. 4. analysis method according to claim 3, it is characterised in that the time-consuming operation includes:Input-output operation, number According to storehouse read-write operation, vernier operation and image encoder encoding operation.
  5. 5. analysis method according to claim 3, it is characterised in that the storehouse of main thread described in the timing tracking, and The mark included in the storehouse is identified to determine that time-consuming operation corresponding with the mark specifically includes:
    A data are taken from the storehouse every 16 milliseconds;
    It is corresponding with the mark described time-consuming to be determined according to the mark to identify the mark included in the data Operation.
  6. 6. according to the analysis method described in claim 1-5 any one, it is characterised in that when the type of message is interface When managing message, in addition to:
    Calculate the number and CPU usage of garbage reclamation;
    Then accordingly, the number of the garbage reclamation and the CPU usage are also included in the analysis report.
  7. A kind of 7. analytical equipment of terminal interim card, it is characterised in that including:
    Identification module, for identifying the type of message of the currently processed message of main thread;
    First computing module, for calculating the duration used in the processing message;
    Generation module, for determining frame losing number according to the duration, and generate comprising the type of message and the frame losing number Analysis report.
  8. 8. analytical equipment according to claim 7, it is characterised in that first computing module also includes:
    Interception unit, for when the type of message is interface processing message, intercepting event handling operation, animation operation, painting Event action processed and GPU draw operation;
    Computing unit, perform event handling operation for calculating respectively and take, perform that the animation operation is time-consuming, performs institute State that to draw event action time-consuming and perform the GPU to draw operation time-consuming;
    It is then corresponding, the generation module, it is additionally operable to generation and is also taken comprising the execution event handling operation, performs described move Draw that operation takes, to perform the drafting event action time-consuming and perform the GPU and draw the time-consuming analysis report of operation.
  9. 9. analytical equipment according to claim 7, it is characterised in that also include:
    Tracking module, for while the computing module calculates and handles the duration used in the message, described in timing tracking The storehouse of main thread, and the mark included in the storehouse is identified to determine time-consuming operation corresponding with the mark;
    Statistical module, for counting described in action type, the number for performing the time-consuming operation and the execution of the time-consuming operation Time-consuming operation takes;
    It is then corresponding, the generation module, generation is additionally operable to also comprising the action type, the number and time-consuming point Analysis report.
  10. 10. according to the analytical equipment described in claim 7-9 any one, it is characterised in that also include:
    Second computing module, for when the type of message is interface processing message, the number and CPU that calculate garbage reclamation to account for With rate;
    Then accordingly, the generation module, the generation also number comprising the garbage reclamation and the CPU usage are additionally operable to Analysis report.
CN201710791520.2A 2017-09-05 2017-09-05 A kind of analysis method and device of terminal interim card CN107590060A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710791520.2A CN107590060A (en) 2017-09-05 2017-09-05 A kind of analysis method and device of terminal interim card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710791520.2A CN107590060A (en) 2017-09-05 2017-09-05 A kind of analysis method and device of terminal interim card

Publications (1)

Publication Number Publication Date
CN107590060A true CN107590060A (en) 2018-01-16

Family

ID=61051017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710791520.2A CN107590060A (en) 2017-09-05 2017-09-05 A kind of analysis method and device of terminal interim card

Country Status (1)

Country Link
CN (1) CN107590060A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389258A (en) * 2015-12-10 2016-03-09 腾讯科技(深圳)有限公司 Program detection method and apparatus
CN105589783A (en) * 2014-11-18 2016-05-18 广州市动景计算机科技有限公司 Application program lag problem data obtaining method and device
CN106445769A (en) * 2015-08-11 2017-02-22 腾讯科技(深圳)有限公司 Computer operation monitoring method, device and system
CN106874168A (en) * 2017-01-12 2017-06-20 北京奇虎科技有限公司 Determine method, device and the mobile terminal of application program runnability

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589783A (en) * 2014-11-18 2016-05-18 广州市动景计算机科技有限公司 Application program lag problem data obtaining method and device
CN106445769A (en) * 2015-08-11 2017-02-22 腾讯科技(深圳)有限公司 Computer operation monitoring method, device and system
CN105389258A (en) * 2015-12-10 2016-03-09 腾讯科技(深圳)有限公司 Program detection method and apparatus
CN106874168A (en) * 2017-01-12 2017-06-20 北京奇虎科技有限公司 Determine method, device and the mobile terminal of application program runnability

Similar Documents

Publication Publication Date Title
US20190362274A1 (en) Conformance authority reconciliation
CN206058171U (en) Message processing device and electronic equipment
US9880920B2 (en) Providing a user with feedback regarding power consumption in battery-operated electronic devices
CN103136102B (en) The fluency test method and device of a kind of Android platform
JP5798372B2 (en) Method call detection to streamline custom code diagnosis through dynamic instrumentation
Xu et al. V-edge: Fast self-constructive power modeling of smartphones based on battery voltage dynamics
Iqbal et al. Oasis: A framework for linking notification delivery to the perceptual structure of goal-directed tasks
KR101525965B1 (en) Providing a user with feedback regarding power consumption in battery-operated electronic devices
CN103136471B (en) A kind of malice Android application program detection method and system
Helsel Much ado about next to nothing: incorporating nondetects in science
US7103848B2 (en) Handheld electronic book reader with annotation and usage tracking capabilities
EP3097462B1 (en) User interface modification and usage tracking
Trier Research note—towards dynamic visualization for understanding evolution of digital communication networks
CA1326560C (en) Document annotation and manipulation in a data processing system
CN1795453B (en) Real-time inking
CN104360816B (en) Screenshotss method and system
CN103716690B (en) Method, terminal, server and the system of multimedia live broadcast report
US20110213788A1 (en) Information fusion for multiple anomaly detection systems
US8631401B2 (en) Capacity planning by transaction type
CA2866544A1 (en) Cohort-based presentation of user interaction data
US6519766B1 (en) Computer program profiler
US8595047B2 (en) Automatically-generated workflow report diagrams
US20110072378A1 (en) Method and apparatus for visualizing energy consumption of applications and actions
CN104615538B (en) A kind of mobile phone application testing method based on mobile phone interface control element
EP2898417B1 (en) Real time and high resolution buffer occupancy monitoring and recording

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