CN109933537A - A kind of Caton detection method, relevant apparatus, equipment and computer-readable medium - Google Patents

A kind of Caton detection method, relevant apparatus, equipment and computer-readable medium Download PDF

Info

Publication number
CN109933537A
CN109933537A CN201910259036.4A CN201910259036A CN109933537A CN 109933537 A CN109933537 A CN 109933537A CN 201910259036 A CN201910259036 A CN 201910259036A CN 109933537 A CN109933537 A CN 109933537A
Authority
CN
China
Prior art keywords
caton
piece
display sub
display
equipment
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.)
Granted
Application number
CN201910259036.4A
Other languages
Chinese (zh)
Other versions
CN109933537B (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910259036.4A priority Critical patent/CN109933537B/en
Publication of CN109933537A publication Critical patent/CN109933537A/en
Application granted granted Critical
Publication of CN109933537B publication Critical patent/CN109933537B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present application discloses a kind of Caton detection method, relevant apparatus, equipment and computer-readable medium, wherein method includes: that display segment is divided into N number of display sub-piece, the display segment is the multiframe picture that equipment is shown in first time period, and the first time period is time to the time for responding first operation that the equipment detects the first operation;N is the integer greater than 1;The frame per second for measuring each display sub-piece will measure display sub-piece of the frame per second less than preset threshold and be determined as the display sub-piece for Caton occur;According to occurring the display sub-piece of Caton in N number of display sub-piece, Caton result is calculated;Wherein, the Caton result is for characterizing Caton severity.Implement the application, detection efficiency can be improved to avoid the extra performance expense in the prior art in measurement utility card immediately.

Description

A kind of Caton detection method, relevant apparatus, equipment and computer-readable medium
Technical field
This application involves computer application technology more particularly to a kind of Caton detection method, relevant apparatus, equipment and Computer-readable medium.
Background technique
With the high speed development of network technology, it is mounted on intelligent terminal, such as mobile phone, tablet computer, wearable device Application program either in Functional Design, or diversified development trend is presented on Vision Design, it is intended to meet and use While the primary demand at family, better user experience is improved for user.There is Caton phenomenon (Application in application program Not Responding, ANR), refer to when executing specific function, the display page of intelligent terminal occurs that delay, frame losing occur existing As.Specifically, application program generation Caton phenomenon refers to that execution time of the application program when responding user's operation is more than intelligence The preset threshold value of terminal.The preset threshold value of intelligent terminal referred to herein refers to the processing single incident that intelligent terminal is pre-set Time.In most cases, after the time in a moment, application program just be can be self-healing normally.If application program is in piece Continue to keep Caton phenomenon after carving the time, this will will cause the warning of higher level, and the operation of user is caused to be unable to successful execution.
It in the prior art, may include: firstly, measuring every phase for the implementation process of the Caton detection method of application program The time interval that adjacent display interface twice is drawn;Then, the time interval every adjacent display interface twice drawn and it is default when Between interval (for example, prefixed time interval be 16ms, indicate 60 frames of standard frame per second/second) be compared, when above-mentioned time interval is big When prefixed time interval, determine that Caton phenomenon occurs in application program.It is understood that if life between frame and frame picture It is far longer than 16ms at the time, then will appear continuous frame losing phenomenon, in this case, the display interface of application program occurs tight Heavy truck.As shown in ③ in Figure 1, accidental to lose one liang of frame and bring Caton sense;As shown in 2., when frame per second (FPS, Frames Per Second) be lower than 30 frames/second when, can just generate apparent Caton sense.In practical applications, the above method needs The generation time of each frame picture is measured, and is determined based on the generation time of each frame picture and is drawn per adjacent display interface twice The time interval of system, and need one by one to be compared above-mentioned time interval with prefixed time interval, to determine whether card , entire realize is not only related to complicated measurement, calculating and analytic process in the process, further includes excessively frequent data note Record, is easy to bring additional performance cost to application program.
Summary of the invention
The embodiment of the present application provides a kind of Caton detection method, relevant apparatus, equipment and computer-readable medium, can keep away Exempt from the extra performance expense in the prior art in measurement utility card immediately, improves detection efficiency.
In a first aspect, the embodiment of the present application provides a kind of Caton detection method, this method comprises:
Display segment is divided into N number of display sub-piece, the display segment shows for equipment in first time period more Frame picture, the first time period are time to the time for responding first operation that the equipment detects the first operation;N For the integer greater than 1;
The frame per second for measuring each display sub-piece will measure display sub-piece of the frame per second less than preset threshold and be determined as occurring The display sub-piece of Caton;
According to occurring the display sub-piece of Caton in N number of display sub-piece, Caton result is calculated;Wherein, the card Result of pausing is for characterizing Caton severity.
Implement the embodiment of the present application, after carrying out fragment to the display segment shown on device screen, measures N number of aobvious Show the frame per second of each display sub-piece in sub-piece, and display sub-piece of the frame per second less than preset threshold will be measured and be determined as The display sub-piece of existing Caton then calculates Caton as a result, in entire realization process according to the display sub-piece for Caton occur In, due to being to determine Caton as a result, rather than being determined according to the drafting time of every two frames picture in small grain size time range Whether there is Caton, detection effect can be improved to avoid the extra performance expense in the prior art in measurement utility card immediately Rate.
In a wherein possible implementation, the frame per second of each display sub-piece of measurement, comprising:
Obtain the render times of each display sub-piece;
According to the duration determination of the render times of each display sub-piece and each display sub-piece Frame per second.
It is described the display of Caton occur according in N number of display sub-piece in a wherein possible implementation Sub-piece calculates Caton result, comprising:
There is the display sub-piece of Caton according in N number of display sub-piece, calculates total Caton duration;
Caton result is determined according to the duration of the display segment and total Caton duration.
In a wherein possible implementation, it is described according to it is described display segment duration and total Caton when It is long to determine Caton result, comprising:
When determining the Caton result, calculated according to the following formula:
Wherein, b indicates Caton as a result, TbIndicate total Caton duration, TtIndicate the duration of the display segment.
It is described the display of Caton occur according in N number of display sub-piece in a wherein possible implementation Sub-piece calculates Caton result, further includes:
According to occurring the display sub-piece of Caton in N number of display sub-piece, the display sub-piece for Caton occur is calculated Total number M;Wherein, M is the positive integer less than or equal to N;
The card is determined according to the total number M of N number of display sub-piece and the display sub-piece for Caton occur Result.
In a wherein possible implementation, any one in N number of display sub-piece shows sub-piece Duration is not more than 250ms.
In a wherein possible implementation, the display segment is equipment operation first in application, in institute State the multiframe picture shown in first time period;The display sub-piece of the frame per second less than preset threshold that will measure is determined as occurring Before the display sub-piece of Caton, the method also includes:
According to the corresponding relationship of application preset in the equipment and threshold value, determine that described first applies corresponding default threshold Value.
Second aspect, the embodiment of the present application provide a kind of Caton detection device, which includes for executing above-mentioned The unit of the method for one side.Specifically, the apparatus may include:
Division unit, for that will show that segment is divided into N number of display sub-piece, the display segment is equipment at first Between the multiframe picture that shows of section, the first time period is that the equipment detects time of the first operation to responding described first The time of operation;N is the integer greater than 1;
Measuring unit, for measuring the frame per second of each display sub-piece;
Determination unit, it is sub less than the display that the display sub-piece of preset threshold is determined as occurring Caton for frame per second will to be measured Segment;
Computing unit, for calculating Caton knot according to occurring the display sub-piece of Caton in N number of display sub-piece Fruit;Wherein, the Caton result is for characterizing Caton severity.
In a wherein possible implementation, the measuring unit includes:
Acquiring unit, for obtaining the render times of each display sub-piece;
First determination unit, for according to each render times for showing sub-piece and each display sub-pieces The duration of section determines the frame per second.
In a wherein possible implementation, the computing unit includes:
First computing unit, for calculating total card according to occurring the display sub-piece of Caton in N number of display sub-piece Immediately it grows;
Second determination unit, for determining Caton knot according to the duration and total Caton duration of the display segment Fruit;
In a wherein possible implementation, second determination unit is specifically used for:
When determining the Caton result, calculated according to the following formula:
Wherein, b indicates Caton as a result, TbIndicate total Caton duration, TtIndicate the duration of the display segment.
In a wherein possible implementation, the computing unit further include:
Second computing unit, for calculating and occurring according to occurring the display sub-piece of Caton in N number of display sub-piece The total number M of the display sub-piece of Caton;Wherein, M is the positive integer less than or equal to N;
Third determination unit, for according to N number of display sub-piece and the display sub-piece for Caton occur Total number M determines the Caton result.
In a wherein possible implementation, any one in N number of display sub-piece shows sub-piece Duration is not more than 250ms.
In a wherein possible implementation, the display segment is equipment operation first in application, in institute State the multiframe picture shown in first time period;Display sub-piece of the frame per second less than preset threshold will be measured in the determination unit It is determined as before the display sub-piece for Caton occur, described device further include:
4th determination unit determines described for the corresponding relationship according to application preset in the equipment and threshold value One applies corresponding preset threshold.
The third aspect, the embodiment of the present application provide a kind of Caton detection device, including processor, input equipment, output Equipment and memory, the processor, input equipment, output equipment and memory are connected with each other, wherein the memory is used for Storage supports the equipment to execute the computer program of the above method, and the computer program includes program instruction, the processing Device is configured for calling described program instruction, the method for executing above-mentioned first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, the computer storage medium It is stored with computer program, the computer program includes program instruction, and described program instruction makes institute when being executed by a processor State the method that processor executes above-mentioned first aspect.
5th aspect, the embodiment of the present application also provides a kind of computer program, the computer program includes that program refers to It enables, described program instructs the method for making the processor execute above-mentioned first aspect when being executed by a processor.
Implement the embodiment of the present application, after carrying out fragment to the display segment shown on device screen, measures N number of aobvious Show the frame per second of each display sub-piece in sub-piece, and display sub-piece of the frame per second less than preset threshold will be measured and be determined as The display sub-piece of existing Caton then calculates Caton according to the display sub-piece for Caton occur as a result, for example, can be according to aobvious Show the duration of segment and total Caton duration calculation card section result of the display sub-piece of Caton occurs;In another example can also basis The ratio for the total number of the display sub-piece of Caton and N number of display sub-piece occur determines Caton as a result, in entire realization process In, due to being to determine Caton as a result, rather than being determined according to the drafting time of every two frames picture in small grain size time range Whether there is Caton, detection effect can be improved to avoid the extra performance expense in the prior art in measurement utility card immediately Rate.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in embodiment description Attached drawing is briefly described.
Fig. 1 is a kind of schematic diagram of Caton detection provided by the embodiments of the present application;
Fig. 2 is that a kind of the first interface of checking and killing virus application program provided by the embodiments of the present application jumps to second contact surface Operation chart;
Fig. 3 is a kind of flow diagram of Caton detection method provided by the embodiments of the present application;
Fig. 4 is a kind of division schematic diagram for showing segment provided by the embodiments of the present application;
Fig. 5 is the schematic diagram for the picture frame number for including in a kind of display sub-piece provided by the embodiments of the present application;
Fig. 6 is a kind of structural schematic diagram of Caton detection device provided by the embodiments of the present application;
Fig. 7 is a kind of structural schematic diagram of Caton detection device 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 is described.
It should be appreciated that the term used in this description of the invention is merely for the sake of for the purpose of describing particular embodiments And it is not intended to limit the present invention.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
In the specific implementation, equipment described in the embodiment of the present invention can be terminal or server etc..Specifically, equipment can To include but is not limited to desktop computer, laptop computer, tablet computer, intelligent terminal etc..
For the ease of better understanding a kind of Caton detection method, relevant apparatus and equipment provided by the embodiments of the present application, First the adaptable application scenarios of the embodiment of the present application are illustrated below, as shown in Fig. 2, equipment (for example, intelligent terminal) Upper operation has checking and killing virus application program, and the first interface of checking and killing virus application program is shown in the display screen of intelligent terminal 10, rubbish cleaning button 101 is shown on first interface, specifically, the function of rubbish cleaning button 101 is scanning intelligence The useless rubbish of committed memory in terminal jumps to second contact surface 20 after rubbish, which scans, to be completed.For example, such as the second boundary It include clearing up button 102 immediately shown in face 20, in the interface, the function of the button is to realize the cleaning of rubbish.Under normal circumstances, When user for rubbish cleaning button 101 performs a touch control operation, (here, touch control operation includes but is not limited to click, press Pressure etc.) after, (specifically, refer within 1 second referred to herein that the first interface that intelligent terminal is set jumps within 1 second Second contact surface jumps the time) checking and killing virus application program by the first display interface 10 jumps to the second display interface 20.However, In practical applications, it will usually when the first interface 10 for checking and killing virus application program occur jumps to second contact surface, jump the time Greater than 1 second, in such a case, it is possible to which there is Caton phenomenon in determination.Specifically, Caton phenomenon referred to herein, which refers to, answers It is more than the preset threshold value of intelligent terminal with execution time of the program when responding user's operation.In conjunction with Caton described herein Detection method can detecte the first interface and jump to Caton severity during second contact surface, and this method has light-weighted Feature.
Based on above-mentioned application scenarios, below with reference to a kind of Caton detection method provided by the embodiments of the present application shown in Fig. 3 Flow diagram, illustrating is how to realize the detection of the Caton phenomenon in above-mentioned application scenarios in the embodiment of the present application , it can include but is not limited to following steps:
Step S301, display segment is divided into N number of display sub-piece, the display segment is equipment in first time period The multiframe picture of display, the first time period are that the equipment detects that the time of the first operation operates to responding described first Time;N is the integer greater than 1.
Application scenario diagram as shown in connection with fig. 2, here, display segment are in first time period inner virus killing application program Multiframe picture during jumping to second contact surface by the first interface 10.Specifically, first time period is that equipment detects use Family executes the time of touch control operation to the time of equipment display second contact surface for cleaning rubbish button 101.
In a wherein possible implementation, will show that segment is divided into the schematic diagram of N number of display sub-piece can be with As shown in figure 4, here, each sub-pieces when being divided in first time period to display segment, in N number of display sub-piece The time span of section is T.
In practical applications, the picture frame number for being included in time span T can be Q frame picture, or Q+1 Frame picture, can also be Q+2 frame picture, and the embodiment of the present application is not especially limited.For example, the length of display segment is 4Q frame picture Face, equipment will show that segment is divided into 4 display sub-pieces, wherein the length of display sub-piece 1 is Q frame picture, shows sub-pieces The length of section 2 is Q frame picture, and the length of display sub-piece 3 is Q frame picture, and the length of display sub-piece 4 is Q frame picture.Example again Such as, the length for showing segment is 4Q+1 frame picture, and equipment will show that segment is divided into 4 display sub-pieces, wherein display sub-pieces The length of section 1 is Q frame picture, and the length of display sub-piece 2 is Q frame picture, and the length of display sub-piece 3 is Q frame picture, display The length of sub-piece 4 is Q+1 frame picture.In another example showing that the length of segment is 4Q+2 frame picture, equipment will show that segment is divided into 4 display sub-pieces, wherein the length of display sub-piece 1 is Q frame picture, and the length of display sub-piece 2 is Q frame picture, is shown The length for showing sub-piece 3 is Q frame picture, and the length of display sub-piece 4 is Q+2 frame picture.
It is N number of aobvious when being divided in first time period to display segment in a wherein possible implementation Show that the time span of each sub-piece in sub-piece can be distributed are as follows: T, T ..., T+S.Here, S is set no more than a certain Fixed threshold value, for example, the threshold value is 20 milliseconds.For example, equipment will show that segment is divided into 3 display sub-pieces, this 3 displays The time span of each sub-piece in sub-piece can be distributed are as follows: T, T, T+S.
In the specific implementation, the duration of any one display sub-piece in N number of display sub-piece is not more than 250ms. For example, the duration of display sub-piece can be 250ms, in another example, show that the duration of sub-piece can be 200ms, in another example, it shows The duration for showing sub-piece can be 180ms etc., and the embodiment of the present application is not especially limited.
For example, display segment has been divided into 6 display sub-pieces, equipment renders 6 display sub-pieces within first time Concrete condition can be as shown in Figure 5, wherein display sub-piece 1 in include 8 frame pictures (the 1st the-the 8 frame picture of frame picture), A length of 160ms when corresponding;Show to include 6 frame pictures in segment 2, a length of 160ms when corresponding ..., show sub-pieces It include 5 frame pictures, a length of 180ms when corresponding in section 6.It is understood that every frame picture association in display sub-piece There is corresponding timestamp for drawing the frame picture.
It is drawn it should be noted that the frame number for the picture for including in each display sub-piece as described herein is practical Frame number, it is indicated by the solid line;In addition, dotted line indicates the frame number that should ideally draw, however, existing due to there is Caton As in practical situations, not drawing the picture frame number that should ideally draw, but frame losing occur.For example, aobvious Show that the frame losing quantity in sub-piece 2 is 2 frames.
Step S302, the frame per second for measuring each display sub-piece, will measure display sub-piece of the frame per second less than preset threshold It is determined as the display sub-piece for Caton occur.
In the specific implementation, the frame per second of each display sub-piece of measurement, may include:
Obtain the render times of each display sub-piece;
According to the duration determination of the render times of each display sub-piece and each display sub-piece Frame per second.
Specifically, after equipment receives drafting rendering notice of the image rendering layer for Application Program Interface, equipment is held Row Rendering operations.Specifically, equipment execution Rendering operations refer to that equipment draws Application Program Interface on a display screen, then, When measuring the frame per second of each display sub-piece, the render times of each display sub-piece can be first obtained, then, according to each The duration of the render times and each display sub-piece that show sub-piece determines frame per second.
For example, the frame per second of each display sub-piece can be determined according to the following formula:
Wherein, FPS (FPS, Frames Per Second) namely frame per second;P indicates the rendering time of each display sub-piece Number;T indicates the duration of each display sub-piece, and chronomere is nanosecond.By 60 frames of standard frame per second/for the second, indicate 1 60 frame pictures are shown within second.
It is understood that in the embodiment of the present application, frame per second refers to the average frame per second of each display sub-piece, rather than Frame per second per adjacent two frames picture.As shown in ③ in Figure 1, in existing implementation, the 22nd frame picture can be determined to Between 23 frame pictures, there is slight Caton.Need further exist for explanation, the 22nd frame picture to the Caton between the 23rd frame picture Phenomenon is very little, is sporadic Caton phenomenon, and the function calling relationship that can not be characterized in the program source code of application program goes out Existing problem.So, when analyzing the function calling relationship of program source code of application program, application program research staff is come It says, the Caton phenomenon can be ignored.In addition, from the angle of user, since it belongs to sporadic Caton phenomenon, user Perception is less than the Caton phenomenon.In the embodiment of the present application, the above problem can be avoided using average frame per second, at the same time, the reality Existing mode can be more in line with the actual perceived of Caton.
For example, determining that the frame per second of display sub-piece 1 shown in fig. 5 is 50 frames/second according to above-mentioned formula, according to above-mentioned formula The frame per second for determining display sub-piece 2 shown in fig. 5 is 37.5 frames/second ..., it is determined according to above-mentioned formula shown in fig. 5 aobvious The frame per second for showing sub-piece 6 is 27.8 frames/second.
Equipment is after the frame per second that each display sub-piece has been determined, by the frame per second and preset threshold of each display sub-piece It is compared, to determine whether Caton.
In the embodiment of the present application, different application scenarios correspond to the setting value of different frame per second.
In a wherein possible implementation, preset threshold mentioned here is that can perceive out under the application scenarios The minimum frame per second threshold value of existing Caton phenomenon.Further, preset threshold can configure dynamic acquisition from backstage.
In a wherein possible implementation, application and the corresponding relationship between threshold value have been stored in advance in equipment, Then, equipment is when determining the preset threshold under current application scene, equipment can according to application preset in the equipment and The corresponding relationship of threshold value determines that described first applies corresponding preset threshold.
For example, can include but is not limited to shown in table 1 using the corresponding relationship between threshold value:
The mapping table of table 1 application and threshold value
Application Type Threshold value
Instant messaging application program 40 frames/second
Audio class application program 50 frames/second
Game class application program 60 frames/second
Checking and killing virus class application program 35 frames/second
By taking checking and killing virus application program as an example, equipment obtain checking and killing virus application program frame per second preset threshold when, Equipment determines that the preset threshold of the frame per second of checking and killing virus application program is 35 frames/second according to preset above-mentioned mapping table 1, after And execute above-mentioned measurement frame per second and operated compared with preset threshold, to determine whether Caton phenomenon.
As previously mentioned, equipment determines that the frame per second of display sub-piece 1 is 50 frames/second, the frame per second of display sub-piece 2 is 37.5 Frame/second, the frame per second of display sub-piece 3 are 45 frames/second, and the frame per second of display sub-piece 4 is 32 frames/second, show the frame per second of sub-piece 5 For 30 frames/second, show that the frame per second of sub-piece 6 is 27.8 frames/second.Then, equipment will be less than the display sub-piece (example of preset threshold Such as, sub-piece 4, display sub-piece 5, display sub-piece 6 are shown) it is determined as the display sub-piece for Caton occur.
Step S304, according to occurring the display sub-piece of Caton in N number of display sub-piece, Caton result is calculated;Its In, the Caton result is for characterizing Caton severity.
It is described the display of Caton occur according in N number of display sub-piece in a wherein possible implementation Sub-piece calculates Caton result, comprising:
There is the display sub-piece of Caton according in N number of display sub-piece, calculates total Caton duration;
Caton result is determined according to the duration of the display segment and total Caton duration.
In the specific implementation, it is described according to it is described display segment duration and total Caton duration determine Caton as a result, Include:
When determining the Caton result, calculated according to the following formula:
Wherein, b indicates Caton as a result, TbIndicate total Caton duration, TtIndicate the duration of the display segment.
In a wherein possible implementation, here, Caton result may include Caton coefficient.Implement in the application In example, Caton coefficient can be indicated with percentage.
As previously mentioned, equipment determines that display sub-piece 4, display sub-piece 5, display sub-piece 6 are the display of Caton occur Sub-piece, wherein the when a length of 160ms of display sub-piece 4, the when a length of 160ms of display sub-piece 5, display sub-piece 6 when A length of 180ms, the Caton coefficient that equipment is calculated according to above-mentioned formula are as follows:
Here, Caton coefficient is higher, indicates that Caton degree is more serious.In practical applications, application program research staff exists After getting the Caton coefficient of test application program, it can be closed by the function call in the program source code of analysis application program System is fundamentally to solve the problems, such as Caton.When Caton coefficient is greater than a certain threshold value (for example, 80%), equipment can issue police It accuses.In this case, the warning for prompting application program research staff it is necessary to analyze the application program, it is excellent Change.
In practical applications, equipment can be marked the display sub-piece for Caton phenomenon occur.To which, equipment can be with The display sub-piece of output token, so as to application program research staff can with the operating condition of timely learning application program, from And it targetedly determines whether the current generation needs the behaviour such as, optimization for further analysis to the program source code of application program Make.
It is described the display of Caton occur according in N number of display sub-piece in a wherein possible implementation Sub-piece calculates Caton result, further includes:
According to occurring the display sub-piece of Caton in N number of display sub-piece, the display sub-piece for Caton occur is calculated Total number M;Wherein, M is the positive integer less than or equal to N;
The card is determined according to the total number M of N number of display sub-piece and the display sub-piece for Caton occur Result.
In the specific implementation, according to N number of display sub-piece and the total number M of the display sub-piece for Caton occur Determine the Caton result, comprising:
When determining the Caton result, calculated according to following ratio formula:
Wherein, b indicates Caton as a result, M indicates the total number for the display sub-piece for Caton occur, and N indicates display The total number of segment.
In the embodiment of the present application, Caton coefficient can also be indicated with ratio.Specifically, which blocks for characterizing The display sub-pieces segment number paused accounts for the ratios of all display sub-pieces segment numbers.
As previously mentioned, equipment determines that display sub-piece 4, display sub-piece 5, display sub-piece 6 are the display of Caton occur Sub-piece namely equipment, which are determined, shows that the total number M for the display sub-piece for occurring Caton phenomenon in sub-piece is 3 at 6, it Afterwards, the Caton coefficient that equipment is calculated according to above-mentioned ratio formula are as follows:
It is understood that ratio is bigger, indicate that Caton degree is more serious.Similarly, when Caton coefficient is greater than a certain threshold When being worth (for example, 80%), equipment can be given a warning.
In the embodiment of the present application, due to Caton coefficient be in small grain size time range determine, only need to add up frame number, Determining the display sub-piece of Caton occur, the time data generated without obtaining every frame picture calculate data without frequent, Have the characteristics that light-weighted.In addition, from the point of view of user experience angle, using the Caton situation of Caton factor evaluation application program When, the actual perceived of Caton can be more in line with.
Implement the embodiment of the present application, after carrying out fragment to the display segment shown on device screen, measures N number of aobvious Show the frame per second of each display sub-piece in sub-piece, and display sub-piece of the frame per second less than preset threshold will be measured and be determined as The display sub-piece of existing Caton then calculates Caton according to the display sub-piece for Caton occur as a result, for example, can be according to aobvious Show the duration of segment and total Caton duration calculation card section result of the display sub-piece of Caton occurs;In another example can also basis The ratio for the total number of the display sub-piece of Caton and N number of display sub-piece occur determines Caton as a result, in entire realization process In, due to being to determine Caton as a result, rather than being determined according to the drafting time of every two frames picture in small grain size time range Whether there is Caton, detection effect can be improved to avoid the extra performance expense in the prior art in measurement utility card immediately Rate.
It is above-mentioned to illustrate the method for the embodiment of the present application, for the ease of better implementing the above-mentioned of the embodiment of the present application Scheme is correspondingly also provided below for cooperating the relevant apparatus for implementing above scheme.
Referring to Fig. 6, Fig. 6 provides the structural schematic diagram for sending out Caton detection device a kind of, the device 60 for the embodiment of the present application It at least may include: division unit 600, measuring unit 602, determination unit 604 and computing unit 606;Wherein,
Division unit 600, for that will show that segment is divided into N number of display sub-piece, the display segment is equipment the The multiframe picture of one period display, the first time period are that the equipment detected described in the time to response of the first operation The time of first operation;N is the integer greater than 1;
Measuring unit 602, for measuring the frame per second of each display sub-piece;
Determination unit 604 is determined as the aobvious of Caton occur less than the display sub-piece of preset threshold for that will measure frame per second Show sub-piece;
Computing unit 606, for calculating Caton according to occurring the display sub-piece of Caton in N number of display sub-piece As a result;Wherein, the Caton result is for characterizing Caton severity.
In a wherein possible implementation, the measuring unit 602 may include:
Acquiring unit 6021, for obtaining the render times of each display sub-piece;
First determination unit 6022, for according to each render times for showing sub-piece and each display The duration of sub-piece determines the frame per second.
In a wherein possible implementation, the computing unit 606 includes:
First computing unit 6061 is calculated for there is the display sub-piece of Caton according in N number of display sub-piece Total Caton duration;
Second determination unit 6062, for determining Caton according to the duration and total Caton duration of the display segment As a result;
In a wherein possible implementation, second determination unit 6062 is specifically used for:
When determining the Caton result, calculated according to the following formula:
Wherein, b indicates Caton as a result, TbIndicate total Caton duration, TtIndicate the duration of the display segment.
In a wherein possible implementation, the computing unit 606 further include:
Second computing unit 6063 is calculated for there is the display sub-piece of Caton according in N number of display sub-piece There is the total number M of the display sub-piece of Caton;Wherein, M is the positive integer less than or equal to N;
Third determination unit 6064, for according to N number of display sub-piece and the display sub-pieces for Caton occur The total number M of section determines the Caton result.
In a wherein possible implementation, any one in N number of display sub-piece shows sub-piece Duration is not more than 250ms.
In a wherein possible implementation, the display segment is equipment operation first in application, in institute State the multiframe picture shown in first time period;Display of the frame per second less than preset threshold will be measured in the determination unit 604 Segment is determined as before the display sub-piece for Caton occur, described device further include:
4th determination unit 608, for the corresponding relationship according to application preset in the equipment and threshold value, determine described in First applies corresponding preset threshold.
Implement the embodiment of the present application, after carrying out fragment to the display segment shown on device screen, measures N number of aobvious Show the frame per second of each display sub-piece in sub-piece, and display sub-piece of the frame per second less than preset threshold will be measured and be determined as The display sub-piece of existing Caton then calculates Caton according to the display sub-piece for Caton occur as a result, for example, can be according to aobvious Show the duration of segment and total Caton duration calculation card section result of the display sub-piece of Caton occurs;In another example can also basis The ratio for the total number of the display sub-piece of Caton and N number of display sub-piece occur determines Caton as a result, in entire realization process In, due to being to determine Caton as a result, rather than being determined according to the drafting time of every two frames picture in small grain size time range Whether there is Caton, detection effect can be improved to avoid the extra performance expense in the prior art in measurement utility card immediately Rate.
For the ease of better implementing the above scheme of the embodiment of the present invention, the present invention is also corresponding to provide a kind of Caton inspection Measurement equipment is described in detail with reference to the accompanying drawing:
The structural schematic diagram of Caton equipment provided in an embodiment of the present invention as shown in Figure 7, equipment 70 may include processing Device 701, memory 704 and communication module 705, processor 701, memory 704 and communication module 705 can pass through bus 706 It is connected with each other.Memory 704 can be high speed random access memory (Random Access Memory, RAM) memory, It can be non-volatile memory (non-volatile memory), for example, at least a magnetic disk storage.Memory 704 It optionally can also be that at least one is located remotely from the storage system of aforementioned processor 701.Memory 704 applies journey for storing Sequence code may include operating system, network communication module, Subscriber Interface Module SIM and Caton detection program, communication module 705 For carrying out information exchange with external equipment;Processor 701 is configured for calling the program code, executes following steps:
Display segment is divided into N number of display sub-piece, the display segment shows for equipment in first time period more Frame picture, the first time period are time to the time for responding first operation that the equipment detects the first operation;N For the integer greater than 1;
The frame per second for measuring each display sub-piece will measure display sub-piece of the frame per second less than preset threshold and be determined as occurring The display sub-piece of Caton;
According to occurring the display sub-piece of Caton in N number of display sub-piece, Caton result is calculated;Wherein, the card Result of pausing is for characterizing Caton severity.
Wherein, processor 701 measures the frame per second of each display sub-piece, may include:
Obtain the render times of each display sub-piece;
According to the duration determination of the render times of each display sub-piece and each display sub-piece Frame per second.
Wherein, the processor 701 calculates card according to occurring the display sub-piece of Caton in N number of display sub-piece Pause as a result, may include:
There is the display sub-piece of Caton according in N number of display sub-piece, calculates total Caton duration;
Caton result is determined according to the duration of the display segment and total Caton duration.
Wherein, the processor 701 determines Caton knot according to the duration and total Caton duration of the display segment Fruit may include:
When determining the Caton result, calculated according to the following formula:
Wherein, b indicates Caton as a result, TbIndicate total Caton duration, TtIndicate the duration of the display segment.
Wherein, the processor 701 calculates card according to occurring the display sub-piece of Caton in N number of display sub-piece Pause as a result, can also include:
According to occurring the display sub-piece of Caton in N number of display sub-piece, the display sub-piece for Caton occur is calculated Total number M;Wherein, M is the positive integer less than or equal to N;
The card is determined according to the total number M of N number of display sub-piece and the display sub-piece for Caton occur Result.
Wherein, the duration of any one display sub-piece in N number of display sub-piece is not more than 250ms.
Wherein, the display segment is equipment operation first in application, what is shown in the first time period is more Frame picture;The processor 701 is determined as display for Caton occur for display sub-piece of the frame per second less than preset threshold is measured Before segment, the processor 701 be can be also used for:
According to the corresponding relationship of application preset in the equipment and threshold value, determine that described first applies corresponding default threshold Value.
It should be noted that the execution step of processor can refer to above-mentioned each method in equipment 70 in the embodiment of the present invention The specific implementation of equipment operation in embodiment in Fig. 3 embodiment, which is not described herein again.
In the concrete realization, Caton equipment 70 may include cell phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA), mobile internet device (Mobile Internet Device, MID) etc. The equipment that various users can be used, the embodiment of the present invention are not especially limited.
It should be understood that the application scenarios that method provided by the embodiments of the present application can be applicable in are intended only as a kind of example, it is practical It is not limited to this in.
It should also be understood that the application involved in first, second, third and various digital numbers only for convenience of description into Capable differentiation, is not intended to limit scope of the present application.
It should be understood that term "and/or" in the application, a kind of only incidence relation for describing affiliated partner, expression can be with There are three kinds of relationships, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three feelings of individualism B Condition.In addition, character "/" in the application, typicallys represent the relationship that forward-backward correlation object is a kind of "or".
In addition, magnitude of the sequence numbers of the above procedures are not meant to execute sequence in each embodiment of the application It is successive, the execution of each process sequence should be determined by its function and internal logic, the implementation without coping with the embodiment of the present application Journey constitutes any restriction.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and method and step can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed Scope of the present application.
Those skilled in the art can be clearly understood that, for convenience and simplicity of description, only with above-mentioned each function The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of function described above Energy.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module and unit, Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be with In conjunction with or be desirably integrated into another system, or some features can be ignored or not executed.
The unit as illustrated by the separation member, which can be, to be physically separated, and be may not be and is physically separated, Component shown as a unit can be physical unit, may not be physical unit, it can in one place, Huo Zheye It can be distributed over a plurality of network elements.It can select some or all of unit therein according to the actual needs to realize this Apply for the purpose of example scheme.
In addition, each functional unit involved in each embodiment of the application can integrate in one processing unit, It is also possible to each unit to physically exist alone, can also be integrated in one unit with two or more units.Above-mentioned collection At unit both can take the form of hardware realization, can also realize in the form of software functional units, the application is to this It is not construed as limiting.
The embodiment of the invention also provides a kind of computer storage medium, finger is stored in the computer readable storage medium It enables, when it runs on a computer or a processor, so that computer or processor execute side described in any of the above-described a embodiment One or more steps in method.If each comprising modules of above-mentioned apparatus are realized in the form of SFU software functional unit and as only Vertical product when selling or using, can store in the computer-readable storage medium, based on this understanding, this Shen Substantially all or part of the part that contributes to existing technology or the technical solution can in other words for technical solution please To be expressed in the form of software products, which is stored in a computer-readable storage medium.
Above-mentioned computer readable storage medium can be the internal storage unit of equipment described in previous embodiment, such as firmly Disk or memory.Above-mentioned computer readable storage medium is also possible to the External memory equipment of above equipment, such as the grafting of outfit Formula hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, above-mentioned computer readable storage medium can also both include the storage inside of above equipment Unit also includes External memory equipment.Above-mentioned computer readable storage medium is for storing above-mentioned computer program and above-mentioned setting Standby required other programs and data.Above-mentioned computer readable storage medium can be also used for temporarily storing exported or The data that will be exported.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, can pass through Computer program is completed to instruct relevant hardware, and the program of the computer can be stored in computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.And storage medium above-mentioned include: ROM, The medium of the various program storage codes such as RAM, magnetic or disk.
Step in the embodiment of the present application method can be sequentially adjusted, merged and deleted according to actual needs.
Module in the embodiment of the present application device can be combined, divided and deleted according to actual needs.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the range of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of Caton detection method characterized by comprising
Display segment is divided into N number of display sub-piece, the display segment is that equipment is drawn in the multiframe that first time period is shown Face, the first time period are time to the time for responding first operation that the equipment detects the first operation;N is big In 1 integer;
The frame per second for measuring each display sub-piece will measure display sub-piece of the frame per second less than preset threshold and be determined as Caton occur Display sub-piece;
According to occurring the display sub-piece of Caton in N number of display sub-piece, Caton result is calculated;Wherein, the Caton knot Fruit is for characterizing Caton severity.
2. the method according to claim 1, wherein the frame per second of each display sub-piece of the measurement, comprising:
Obtain the render times of each display sub-piece;
The frame per second is determined according to the duration of the render times of each display sub-piece and each display sub-piece.
3. the method according to claim 1, wherein described there is Caton according in N number of display sub-piece Display sub-piece, calculate Caton result, comprising:
There is the display sub-piece of Caton according in N number of display sub-piece, calculates total Caton duration;
Caton result is determined according to the duration of the display segment and total Caton duration.
4. according to the method described in claim 3, it is characterized in that, described according to the duration for showing segment and described total Caton duration determines Caton result, comprising:
When determining the Caton result, calculated according to the following formula:
Wherein, b indicates Caton as a result, TbIndicate total Caton duration, TtIndicate the duration of the display segment.
5. according to the method described in claim 3, it is characterized in that, described there is Caton according in N number of display sub-piece Display sub-piece, calculate Caton result, further includes:
According to occurring the display sub-piece of Caton in N number of display sub-piece, the total of the display sub-piece for Caton occur is calculated Number M;Wherein, M is the positive integer less than or equal to N;
The Caton knot is determined according to the total number M of N number of display sub-piece and the display sub-piece for Caton occur Fruit.
6. method according to claim 1-5, which is characterized in that any one in N number of display sub-piece The duration of a display sub-piece is not more than 250ms.
7. method according to claim 1-5, which is characterized in that the display segment is equipment operation the One in application, the multiframe picture shown in the first time period;It is described to measure display of the frame per second less than preset threshold Segment is determined as before the display sub-piece for Caton occur, the method also includes:
According to the corresponding relationship of application preset in the equipment and threshold value, determine that described first applies corresponding preset threshold.
8. a kind of Caton detection device characterized by comprising
Division unit, for that will show that segment is divided into N number of display sub-piece, the display segment is equipment in first time period The multiframe picture of display, the first time period are that the equipment detects that the time of the first operation operates to responding described first Time;N is the integer greater than 1;
Measuring unit, for measuring the frame per second of each display sub-piece;
Determination unit is determined as the display sub-pieces for Caton occur less than the display sub-piece of preset threshold for that will measure frame per second Section;
Computing unit, for calculating Caton result according to occurring the display sub-piece of Caton in N number of display sub-piece;Its In, the Caton result is for characterizing Caton severity.
9. a kind of Caton detection device, which is characterized in that including processor, input equipment, output equipment and memory, the place It manages device, input equipment, output equipment and memory to be connected with each other, wherein the memory is described for storing computer program Computer program includes program instruction, and the processor is configured for calling described program instruction, executes such as claim 1-7 Described in any item methods.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence, the computer program include program instruction, and described program instruction executes the processor such as The described in any item methods of claim 1-7.
CN201910259036.4A 2019-03-29 2019-03-29 Stuck detection method, related device, equipment and computer readable medium Active CN109933537B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910259036.4A CN109933537B (en) 2019-03-29 2019-03-29 Stuck detection method, related device, equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910259036.4A CN109933537B (en) 2019-03-29 2019-03-29 Stuck detection method, related device, equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN109933537A true CN109933537A (en) 2019-06-25
CN109933537B CN109933537B (en) 2021-07-27

Family

ID=66988891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910259036.4A Active CN109933537B (en) 2019-03-29 2019-03-29 Stuck detection method, related device, equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN109933537B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140108310A1 (en) * 2012-01-31 2014-04-17 International Business Machines Corporation System and method for optimizing teams
CN106991034A (en) * 2017-04-01 2017-07-28 奇酷互联网络科技(深圳)有限公司 A kind of method and apparatus and mobile terminal for monitoring interim card
CN107678934A (en) * 2017-10-13 2018-02-09 北京小米移动软件有限公司 Interim card index selection method and device
CN108076386A (en) * 2017-12-22 2018-05-25 广州酷狗计算机科技有限公司 Video cardton detection method and device, storage medium
CN108721898A (en) * 2018-06-01 2018-11-02 深圳市腾讯网络信息技术有限公司 The determination method and apparatus of frame per second, storage medium, electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140108310A1 (en) * 2012-01-31 2014-04-17 International Business Machines Corporation System and method for optimizing teams
CN106991034A (en) * 2017-04-01 2017-07-28 奇酷互联网络科技(深圳)有限公司 A kind of method and apparatus and mobile terminal for monitoring interim card
CN107678934A (en) * 2017-10-13 2018-02-09 北京小米移动软件有限公司 Interim card index selection method and device
CN108076386A (en) * 2017-12-22 2018-05-25 广州酷狗计算机科技有限公司 Video cardton detection method and device, storage medium
CN108721898A (en) * 2018-06-01 2018-11-02 深圳市腾讯网络信息技术有限公司 The determination method and apparatus of frame per second, storage medium, electronic device

Also Published As

Publication number Publication date
CN109933537B (en) 2021-07-27

Similar Documents

Publication Publication Date Title
CN106156066B (en) Page switching method, device and client
CN106951346B (en) Response time testing method and device
US10834424B2 (en) Method and device for compressing image, and electronic device
WO2021175054A1 (en) Image data processing method, and related apparatus
WO2014075582A1 (en) Method and apparatus for storing webpage access records
CN110730387B (en) Video playing control method and device, storage medium and electronic device
CN112135140B (en) Video definition identification method, electronic device and storage medium
CN104834597B (en) Using the measuring method and system of response time
CN104679307B (en) A kind of detect touches the method and device that screen slides sensitivity
CN105100784A (en) Smoothness test method and device
CN113691733B (en) Video jitter detection method and device, electronic equipment and storage medium
CN106557426B (en) A kind of method and system for analyzing the ends Android application operation fluency
WO2021068113A1 (en) Method and apparatus for compiling duration statistics, electronic device, and computer-readable medium
CN108196904A (en) Calculate the method, apparatus and computer storage media of page response duration
CN112995418A (en) Video color ring playing method, sending method and related equipment
CN110069194B (en) Page blockage determining method and device, electronic equipment and readable storage medium
CN105323624B (en) A kind of methods, devices and systems of recorded video
CN105100785A (en) Smoothness test method and device
CN113010825A (en) Data processing method and related device
CN111881862A (en) Gesture recognition method and related device
CN109933537A (en) A kind of Caton detection method, relevant apparatus, equipment and computer-readable medium
CN106375700A (en) Video transmission method and mobile terminal
CN110503042A (en) Image processing method, device and electronic equipment
CN114363704B (en) Video playing method, device, equipment and storage medium
CN112422370B (en) Method and device for determining voice call quality

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
GR01 Patent grant
GR01 Patent grant