CN112711519B - Method and device for detecting fluency of picture, storage medium and computer equipment - Google Patents

Method and device for detecting fluency of picture, storage medium and computer equipment Download PDF

Info

Publication number
CN112711519B
CN112711519B CN201911024492.7A CN201911024492A CN112711519B CN 112711519 B CN112711519 B CN 112711519B CN 201911024492 A CN201911024492 A CN 201911024492A CN 112711519 B CN112711519 B CN 112711519B
Authority
CN
China
Prior art keywords
detection
instruction
picture
pause
application program
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.)
Active
Application number
CN201911024492.7A
Other languages
Chinese (zh)
Other versions
CN112711519A (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 CN201911024492.7A priority Critical patent/CN112711519B/en
Publication of CN112711519A publication Critical patent/CN112711519A/en
Application granted granted Critical
Publication of CN112711519B publication Critical patent/CN112711519B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3419Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment by assessing time
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Abstract

The application relates to a method and a device for detecting fluency of a picture, a computer readable storage medium and computer equipment, wherein the method comprises the following steps: receiving a picture detection instruction, operating an application program corresponding to the identifier of the application program to be detected according to the picture detection instruction, and starting a monitoring thread to monitor the application program; receiving a detection starting instruction, detecting the rendering time of a running picture frame in an application program according to a detection starting instruction detection thread, determining a pause picture frame according to the rendering time, and obtaining the rendering time of the pause picture frame; receiving a detection completion instruction, acquiring the rendering time of each pause picture frame according to the detection completion instruction, determining pause time according to the rendering time of each pause picture frame, and determining detection time; when the monitoring thread monitors that the detection is finished, the monitoring thread acquires the pause time and the detection time, determines the pause rate according to the pause time and the detection time, and determines the detection result according to the pause rate. The method and the device improve the accuracy of detecting the fluency of the picture.

Description

Method and device for detecting fluency of picture, storage medium and computer equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for detecting fluency of a picture, a computer-readable storage medium, and a computer device.
Background
The stuck phenomenon is a phenomenon occurring in electronic equipment such as mobile phones and notebook computers, and the occurrence condition is as follows: the method is characterized in that a card is displayed during the operation of various electronic equipment, for example, when a game is played or a song is listened, so that the card is commonly called as the card.
At present, when detecting the running fluency of game software, song software and the like, the running fluency of a picture is usually reflected by detecting FPS (Frames Per Second ) of the picture. However, the operating fluency of the picture is reflected by detecting the FPS value of the picture, the blocking condition of the picture cannot be accurately reflected, and the fluency accuracy obtained by detecting the operating picture is lower.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a picture detection method, a device, a computer-readable storage medium, and a computer apparatus for solving the technical problem of low accuracy of detected smoothness of operation.
A method for detecting fluency of a picture comprises the following steps:
receiving a picture detection instruction, wherein the picture detection instruction carries an identification of an application program to be detected, running the application program corresponding to the identification of the application program to be detected according to the picture detection instruction, and starting a monitoring thread to monitor the application program, wherein the application program calls a detection thread to run in an established detection environment;
receiving a detection starting instruction, detecting the rendering time of an operation picture frame in an application program according to the detection starting instruction, determining the operation picture frame as a stuck picture frame when the rendering time exceeds the normal rendering time, and obtaining the rendering time of the stuck picture frame;
receiving a detection completion instruction, acquiring the rendering time of each pause image frame according to the detection completion instruction, determining pause duration according to the rendering time of each pause image frame, and determining detection duration according to a detection start instruction and a detection completion instruction;
when the monitoring thread monitors that the detection is completed, the monitoring thread acquires the pause time and the detection time, determines the pause rate according to the pause time and the detection time, and determines the detection result according to the pause rate.
A picture fluency detection apparatus, comprising:
the program running module is used for receiving a picture detection instruction, the picture detection instruction carries an application program identifier to be detected, running an application program corresponding to the application program identifier to be detected according to the picture detection instruction, and starting a monitoring thread monitoring application program, wherein the application program calls a detection thread to run in an established detection environment;
the detection module is used for receiving a detection starting instruction, detecting the rendering time of the running picture frame in the application program according to the detection starting instruction detection thread, determining the running picture frame as a pause picture frame when the rendering time exceeds the normal rendering time, and obtaining the rendering time of the pause picture frame;
the duration determining module is used for receiving the detection finishing instruction, obtaining the rendering time of each pause picture frame according to the detection finishing instruction, determining the pause duration according to the rendering time of each pause picture frame, and determining the detection duration according to the detection starting instruction and the detection finishing instruction;
and the pause rate determining module is used for acquiring the pause time length and the detection time length by the monitoring thread when the monitoring thread monitors that the detection is finished, determining the pause rate according to the pause time length and the detection time length, and determining the detection result according to the pause rate.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor when executing the program implementing the steps of:
receiving a picture detection instruction, wherein the picture detection instruction carries an application program identifier to be detected, running an application program corresponding to the application program identifier to be detected according to the picture detection instruction, and starting a monitoring thread monitoring application program, wherein the application program calls a detection thread to run in an established detection environment;
receiving a detection starting instruction, detecting the rendering time of an operation picture frame in an application program according to a detection starting instruction detection thread, determining the operation picture frame as a pause picture frame when the rendering time exceeds the normal rendering time, and obtaining the rendering time of the pause picture frame;
receiving a detection completion instruction, acquiring the rendering time of each pause picture frame according to the detection completion instruction, determining pause time according to the rendering time of each pause picture frame, and determining detection time according to a detection start instruction and a detection completion instruction;
when the monitoring thread monitors that the detection is completed, the monitoring thread acquires the pause time and the detection time, determines the pause rate according to the pause time and the detection time, and determines the detection result according to the pause rate.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, causes the processor to carry out the steps of:
receiving a picture detection instruction, wherein the picture detection instruction carries an application program identifier to be detected, running an application program corresponding to the application program identifier to be detected according to the picture detection instruction, and starting a monitoring thread monitoring application program, wherein the application program calls a detection thread to run in an established detection environment;
receiving a detection starting instruction, detecting the rendering time of an operation picture frame in an application program according to a detection starting instruction detection thread, determining the operation picture frame as a pause picture frame when the rendering time exceeds the normal rendering time, and obtaining the rendering time of the pause picture frame;
receiving a detection completion instruction, acquiring the rendering time of each pause picture frame according to the detection completion instruction, determining pause time according to the rendering time of each pause picture frame, and determining detection time according to a detection start instruction and a detection completion instruction;
when the monitoring thread monitors that the detection is completed, the monitoring thread acquires the pause time and the detection time, determines the pause rate according to the pause time and the detection time, and determines the detection result according to the pause rate.
According to the method, the device, the computer-readable storage medium and the computer equipment for detecting the image fluency, the rendering time of the image frame is operated in the detection environment detection application program through the detection thread, the pause time is determined according to the rendering time, the pause time and the detection time are obtained through the monitoring thread, the pause rate is calculated according to the pause time and the detection time, and the detection result is determined according to the pause rate. The detection result is reflected through the pause rate, and the accuracy of the detected image fluency result can be improved. And the efficiency of detecting the fluency of the picture can be improved by using different threads to detect the fluency of the picture.
Drawings
FIG. 1 is a diagram illustrating an exemplary embodiment of a method for fluency detection in a display;
FIG. 2 is a flowchart illustrating a method for fluency detection in an embodiment;
FIG. 3 is a schematic flow chart illustrating the establishment of a test environment in one embodiment;
FIG. 4 is a schematic diagram illustrating a process for detecting a target scene in one embodiment;
FIG. 5 is a schematic diagram of a process for determining a detection result according to a Cartin rate and a Cartin frequency according to one embodiment;
FIG. 6 is a schematic flow chart showing the test results in one embodiment;
FIG. 7 is a flowchart illustrating a method for fluency detection in an embodiment;
FIG. 8 is a schematic interface diagram of an application icon to be detected in the embodiment of FIG. 7;
FIG. 9 is a diagram illustrating an interface of a scene selection screen in accordance with an illustrative embodiment;
FIG. 10 is a diagram illustrating an interface for detecting a frame of a running picture in one embodiment;
FIG. 11 is a schematic diagram of an interface of the test results in one embodiment;
FIG. 12 is a block diagram of an exemplary embodiment of a fluency detecting apparatus;
FIG. 13 is a block diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Fig. 1 is an application environment diagram of a method for detecting fluency in a picture according to an embodiment. Referring to fig. 1, the method for detecting fluency of a picture is applied to a picture fluency detection system. The screen fluency detection system comprises a terminal 102. The terminal 102 may be a desktop terminal or a mobile terminal, and the mobile terminal may be at least one of a mobile phone, a tablet computer, a notebook computer, and the like.
Specifically, the terminal 102 receives a picture detection instruction, where the picture detection instruction carries an identifier of an application to be detected, runs the application corresponding to the identifier of the application to be detected according to the picture detection instruction, and starts a monitoring thread to monitor the application, where the application calls a detection thread to run in an established detection environment; the terminal 102 receives a detection start instruction, detects the rendering time of the running picture frame in the application program according to the detection start instruction detection thread, determines the running picture frame as a pause picture frame when the rendering time exceeds the normal rendering time, and obtains the rendering time of the pause picture frame; the terminal 102 receives the detection completion instruction, obtains the rendering time of each pause image frame according to the detection completion instruction, determines the pause time length according to the rendering time of each pause image frame, and determines the detection time length according to the detection start instruction and the detection completion instruction; when the monitoring thread monitors that the detection is completed, the monitoring thread acquires the pause time and the detection time, determines the pause rate according to the pause time and the detection time, and determines the detection result according to the pause rate.
In one embodiment, as shown in fig. 2, a method for detecting fluency is provided. The embodiment is mainly illustrated by applying the method to the terminal 102 in fig. 1. Referring to fig. 2, the method for detecting fluency of a picture specifically includes the following steps:
s202, receiving a picture detection instruction, wherein the picture detection instruction carries an application program identifier to be detected, operating an application program corresponding to the application program identifier to be detected according to the picture detection instruction, and starting a monitoring thread monitoring application program, wherein the application program calls a detection thread to operate in an established detection environment.
The application identifier is used to uniquely identify the application, and may be a name, a character string, or the like. An application refers to software that can be installed and used in a computer. The detection environment refers to relevant information required by the application program when performing screen detection, such as a file after the application program is installed, a registry file, and the like. The monitoring thread is a thread for monitoring whether the application detects completion. The detection thread is a thread for detecting whether the application is stuck at runtime.
Specifically, the terminal receives a picture detection instruction, the picture detection instruction carries an application program identifier to be detected, the terminal calls a detection thread to run a corresponding application program in an established detection environment according to the application program identifier to be detected, and starts a monitoring thread to monitor the running application program.
S204, receiving a detection starting instruction, detecting the rendering time of the running picture frame in the application program according to the detection starting instruction detection thread, determining the running picture frame as a pause picture frame when the rendering time exceeds the normal rendering time, and obtaining the rendering time of the pause picture frame.
The running picture frame refers to a picture frame displayed when the application program runs in the detection environment. Each picture frame needs to be rendered before running, and can be displayed after rendering is successful. The normal rendering time refers to a preset rendering time of the screen frame, and may also be obtained according to a time required for rendering the screen frame that is not stuck during the detection.
Specifically, when a user clicks a detection start mark of the terminal, the terminal receives a detection start instruction, detects the rendering time of a running picture frame in an application program according to the detection start instruction, determines the running picture frame as a pause picture frame when the rendering time of the running picture frame exceeds the normal rendering time, and obtains the rendering time of the pause picture frame, namely calculates the time from the rendering end of the running picture frame before the pause picture frame to the rendering end of the pause picture frame.
S206, receiving the detection completion instruction, acquiring the rendering time of each pause image frame according to the detection completion instruction, determining the pause time according to the rendering time of each pause image frame, and determining the detection time according to the detection start instruction and the detection completion instruction.
Wherein, the pause time length refers to the sum of the rendering time of each pause picture frame in the detection process. The detection time period refers to the time from the start of detection to the completion of detection.
Specifically, the terminal receives a detection completion instruction sent by a user, obtains the rendering time of each incandescence frame determined in the detection process according to the detection completion instruction, and adds the rendering times of the incandescence frames to obtain the incandescence duration. And calculating to obtain the detection duration according to the system time for starting detection and the system time for finishing detection. In one embodiment, a timer may be set to count the detection duration.
S208, when the monitoring thread monitors that the detection is finished, the monitoring thread acquires the pause time and the detection time, determines the pause rate according to the pause time and the detection time, and determines the detection result according to the pause rate.
The pause rate is used for indicating the fluency of the application program running picture in the detection time, and the lower the pause rate is, the higher the fluency of the picture is.
Specifically, when the monitoring thread monitors that the detection thread completes the detection of the image fluency of the application program, the monitoring thread acquires the pause time and the detection time, calculates the pause rate according to the pause time and the detection time, acquires an image fluency detection passing result when the pause rate is smaller than a preset standard threshold, and acquires an image fluency detection failing result when the pause rate exceeds the preset standard threshold.
In the method for detecting the fluency of the picture, the rendering time of the picture frame is operated in the detection environment detection application program by using the detection thread, the pause time is determined according to the rendering time, the pause time and the detection time are obtained by using the monitoring thread, the pause rate is calculated according to the pause time and the detection time, and the detection result is determined according to the pause rate. The detection result is reflected through the pause rate, and the accuracy of the detected picture fluency result can be improved. And the efficiency of detecting the fluency of the picture can be improved by using different threads to detect the fluency of the picture.
In one embodiment, different versions of the application program may be tested, and when the pause rate of the newer version exceeds the pause rate of the non-updated version, the application program image fluency detection failure result of the updated version is obtained.
In an embodiment, as shown in fig. 3, before step S202, that is, before the receiving of the picture detection instruction, where the picture detection instruction carries the identifier of the application to be detected, and before the running of the application corresponding to the identifier of the application to be detected according to the picture detection instruction and the starting of the monitoring thread to monitor the application, the method further includes the steps of:
s302, receiving a detection environment establishment instruction, acquiring each installed application program identifier according to the detection environment establishment instruction, and displaying each installed application program identifier.
S304, receiving a selection instruction of the target installed application program identifier, and backing up a target application program file corresponding to the target installed application program identifier according to the selection instruction to obtain a detection environment of the target installed application program.
The target installed application program identification is used for identifying the application program which needs to establish the detection environment and is installed in the terminal.
Specifically, the terminal receives a detection environment establishment instruction, acquires each installed application program identifier in the terminal according to the detection environment establishment instruction, and displays each installed application program identifier on a display interface. The user can select the application program identification needing to be established in the checking environment in the display interface. When a user clicks an application program identifier to be selected on a display interface, the terminal receives a selection instruction of the target installed application program identifier, copies a target application program file corresponding to the target installed application program identifier according to the selection instruction, obtains a backed-up target application program file, and obtains a detection environment of the target installed application program. Namely, when the smoothness of the target application program picture is detected, the target application program is started by using the backed-up target application program file.
In an embodiment, a virtual machine may be installed in a terminal, the virtual machine acquires a target application program file, the virtual machine installs a target application program, and when the smoothness of the target application program screen is detected, the installed target application program is started in the virtual machine.
In the embodiment, the detection environment of the application program is established in advance, and the detection environment can be directly used during the detection of the fluency of the picture, so that the method is convenient and quick.
In one embodiment, as shown in fig. 4, the step S204 of receiving a detection start instruction and detecting a rendering time of a running picture frame in an application program by a thread according to the detection start instruction includes the steps of:
s402, receiving a detection starting instruction, and displaying each picture scene identifier to be selected according to the detection starting instruction.
S404, receiving a detection instruction of the target picture scene identification, and detecting the rendering time of the running picture frame in the target picture scene corresponding to the target picture scene identification according to the detection instruction of the target picture scene identification, wherein the running picture in the target picture scene is continuously changed.
The picture scene identification is used for identifying picture scenes running in the application program, and the picture scenes can comprise target picture scenes and other picture scenes. The other picture scenes mean that the running picture is randomly changed and is not continuously changed.
Specifically, the terminal receives a detection start instruction, and displays each picture scene identifier to be selected in the popup window according to the detection start instruction. When a user clicks the target picture scene identification, the terminal receives a detection instruction of the target picture scene identification, and detects the rendering time of the running picture frame in the target picture scene corresponding to the target picture scene identification according to the detection instruction of the target picture scene identification.
In the embodiment, the user can select the target picture scene identifier, the terminal receives the detection instruction of the target picture scene identifier, the target picture scene in the application program can be detected, the picture scene which the user needs to check can be checked, and the user experience is improved.
In one embodiment, when the application program to be detected is operated, the application program pops up windows to display each picture scene identifier to be selected, when a user selects a target picture scene identifier, the terminal operates a target picture scene in the application program, and picture fluency detection is performed on the target picture scene in the application program.
In one embodiment, as shown in fig. 5, in step S208, when the monitoring thread monitors that the detection is completed, the monitoring thread acquires the stuck time and the detection time, determines the stuck rate according to the stuck time and the detection time, and determines the detection result according to the stuck rate, including the steps of:
s502, when the monitoring thread monitors that the detection is finished, the monitoring thread acquires each pause picture frame and acquires the time difference among the pause picture frames.
The time difference is a difference between the rendering end time of the morton frame and the rendering start time of the next morton frame. Or the difference between the start time of the pause frame rendering and the end time of the next pause frame rendering.
Specifically, when the monitoring thread in the terminal detects that the detection is completed, the monitoring thread communicates with the detection thread to acquire each pause picture frame in the detection thread, and the rendering start time and the rendering end time of each pause picture frame are acquired. And determining the time difference between the various pause picture frames according to the rendering start time and the rendering end time of the various pause picture frames.
S504, determining the number of times of clamping according to the time difference, and calculating according to the number of times of clamping and the detection duration to obtain the clamping frequency.
Wherein, the number of times of the pause refers to the total number of times of the pause in the detection process.
Specifically, the number of times of hitching between the hitching picture frames is determined to be two times when the time difference between the hitching picture frames exceeds a preset threshold value, which may be 300ms (milliseconds), for example, and the number of times of hitching between the hitching picture frames is determined to be one time when the time difference between the hitching picture frames does not exceed the preset threshold value. And determining the pause times in the detection process according to the time difference between the pause picture frames. And calculating the stuck frequency according to the stuck times and the detection duration.
S506, determining a detection result according to the Caton rate and the Caton frequency.
Specifically, when the stuck rate exceeds a preset stuck rate threshold or the stuck frequency exceeds a preset stuck frequency threshold, a detection failure result is obtained. And when the blockage rate does not exceed the preset blockage rate threshold value and the blockage frequency does not exceed the preset blockage frequency threshold value, obtaining a detection passing result.
In the embodiment, the time difference between every two frames of the stuck picture is further used for determining the stuck times, the stuck frequency is calculated according to the stuck times, and the stuck rate and the stuck frequency are used for determining the detection result, so that the accuracy of the detection result is further improved.
In one embodiment, as shown in fig. 6, after step S208, that is, when the monitoring thread monitors that the detection is completed, the monitoring thread acquires the stuck duration and the detection duration, determines the stuck rate according to the stuck duration and the detection duration, and after determining the detection result according to the stuck rate, the method further includes the steps of:
and S602, sending the detection result to a server for storage.
And S604, when the server receives the detection result checking instruction sent by the management terminal, the server sends the detection result to the management terminal for displaying.
The management terminal is used for managing the detection result.
Specifically, the terminal sends the detection result obtained in the detection process to the server for storage. The method comprises the steps that a terminal sends a detection result storage instruction to a server, the server receives the detection result storage instruction sent by the terminal, obtains a detection result to be kept and other related detection information from the terminal, wherein the other related detection information can be detection starting time, detection personnel, detection machine types, detection scenes and the like, and stores the detection result and the other related detection information in a database of the server. The management terminal sends a detection result checking instruction to the server, the server receives the detection result checking instruction sent by the management terminal, obtains a detection result to be checked according to the detection result checking instruction, and returns the detection result to the management terminal. And the management terminal receives and displays the detection result returned by the server. The detection result can be conveniently checked by the manager, and the manager can further process the detection result according to the detection result. For example, when the detection result is failure, the stuck problem needs to be solved, and at this time, the administrator may modify the application program, for example, to reduce scene complexity, resolution, special effect, and the like.
In one embodiment, the terminal may also display the detection result and send the detection result to the server.
In a specific embodiment, as shown in fig. 7, a flowchart of a picture flow degree detection method, which is applied to a battle picture scene test of a game application, specifically includes:
when the test is started, the detection thread detects each frame of data of the game application, namely the rendering time of each running game picture frame, determines whether the corresponding game picture frame is stuck according to the rendering time, and records the rendering time of the game picture frame as the sticking time when the game picture frame is determined to be stuck. When it is determined that the game frame does not exist, the game frame is discarded.
When the instruction of detection ending is not received, the detection thread continues to detect each game frame data of the game application running. And when an instruction of detection ending is received, the detection thread sends the recorded pause time and the detection duration to the monitoring thread, the monitoring thread calculates the pause duration according to the recorded pause time, and calculates the pause rate according to the pause duration and the detection duration. And when the blockage rate is less than the standard blockage rate X%, the detected image fluency reaches the standard and passes. And when the blockage rate is not less than the standard blockage rate X%, the detected image fluency does not reach the standard and passes. At this time, the stuck-at repair may be performed, for example, to reduce scene complexity, reduce resolution, reduce special effects, and the like.
In this embodiment, before starting the detection, a "card-ton-meter" APP (Application) for performing the screen smoothness detection on the Application program may be entered. As shown in fig. 8, the interface diagram of the "katom" APP is shown, where the application icon is an application icon that can be detected. Each application icon has corresponding application name, version, and engine information. The user can detect by clicking a detection button corresponding to the application icon, the 'card counter' APP operates the application corresponding to the application icon according to the picture detection instruction, and starts the monitoring thread monitoring application, wherein the application calls the detection thread to operate in the established detection environment. The detection environment of the application can be established through my application in the 'incandescence meter' APP, and when a user clicks an adding button corresponding to my application, the 'incandescence meter' APP detects an installed application icon in the application and displays the application icon through an interface. The method comprises the steps of selecting an application icon corresponding to an application to be added, and backing up a file of an installed application corresponding to the application icon when the selected application icon is received, so as to obtain a detection environment corresponding to the application.
In one embodiment, when the user clicks the detection button to detect, the application corresponding to the application icon is executed, and a scene selection screen is displayed in the application, as shown in fig. 9. When the user selects the battle scene detection and clicks the start detection button in the picture, the timer starts to time and perform detection. Fig. 10 is a schematic diagram of the application in the detection process, wherein a battle scene picture of the application should be displayed in the picture, and the detected katton number is displayed in the picture 1 time at the same time. The detection time is 00. When the user clicks the end detection button in the screen, the detection is completed. In one embodiment, as shown in fig. 11, a schematic diagram of the detection result of the application displayed in the management terminal is shown. The schematic diagram includes relevant information of application detection and detection conclusion. The detected related information comprises detection personnel, detection machine types, detection versions, detection scenes, detection duration and detection time. The detection conclusion comprises the number of times of clamping, the number of times of serious clamping, the clamping rate, the clamping frequency and the like.
In an embodiment, the method for detecting fluency of a picture according to the present application can also be applied to a test of fluency of a picture, and specifically includes: receiving a picture test instruction, wherein the picture test instruction carries an identification of an application program to be tested, running the application program corresponding to the identification of the application program to be tested according to the picture test instruction, and starting a monitoring thread monitoring application program, wherein the application program calls a test thread to run in an established test environment; receiving a test starting instruction, detecting the rendering time of an operation picture frame in an application program according to a test starting instruction detection thread, determining the operation picture frame as a stuck picture frame when the rendering time exceeds the normal rendering time, and obtaining the rendering time of the stuck picture frame; receiving a test completion instruction, acquiring the rendering time of each pause picture frame according to the test completion instruction, determining pause time according to the rendering time of each pause picture frame, and determining test time according to a test start instruction and a test completion instruction; when the monitoring thread monitors that the test is completed, the monitoring thread acquires the clamping time length and the test time length, determines the clamping rate according to the clamping time length and the test time length, and determines the test result according to the clamping rate
It should be understood that although the various steps in the flowcharts of fig. 2-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-6 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 12, a device 1200 for detecting fluency of a picture is provided, which comprises a program running module 1202, a detection module 1204, a duration determination module 1206 and a pause rate determination module 1208, wherein:
a program running module 1202, configured to receive a picture detection instruction, where the picture detection instruction carries an identifier of an application to be detected, run an application corresponding to the identifier of the application to be detected according to the picture detection instruction, and start a monitoring thread to monitor the application, where the application calls a detection thread to run in an established detection environment;
the detection module 1204 is configured to receive a detection start instruction, detect rendering time of an operation picture frame in an application program according to the detection start instruction, determine that the operation picture frame is a katon picture frame when the rendering time exceeds normal rendering time, and obtain the rendering time of the katon picture frame;
the duration determining module 1206 is configured to receive the detection completion instruction, obtain the rendering time of each morton frame according to the detection completion instruction, determine the morton duration according to the rendering time of each morton frame, and determine the detection duration according to the detection start instruction and the detection completion instruction;
the stuck rate determining module 1208 is configured to, when the monitoring thread monitors that the detection is completed, obtain the stuck duration and the detection duration by the monitoring thread, determine the stuck rate according to the stuck duration and the detection duration, and determine the detection result according to the stuck rate.
In one embodiment, the image fluency detection apparatus 1200 further comprises:
the identification display module is used for receiving the detection environment establishment instruction, acquiring each installed application identification according to the detection environment establishment instruction, and displaying each installed application identification;
and the detection environment establishing module is used for receiving a selection instruction of the target installed application program identifier, and backing up the target application program file corresponding to the target installed application program identifier according to the selection instruction to obtain the detection environment of the target installed application program.
In one embodiment, the detection module 1204 includes:
the scene mark display unit is used for receiving a detection starting instruction and displaying each picture scene mark to be selected according to the detection starting instruction;
and the scene detection unit is used for receiving a detection instruction of the target picture scene identification, and detecting the rendering time of the running picture frame in the target picture scene corresponding to the target picture scene identification according to the detection instruction of the target picture scene identification, wherein the running picture in the target picture scene is continuously changed.
In an embodiment, the pause rate determining module 1208 is further configured to, when the monitoring thread monitors that the detection is completed, the monitoring thread obtains each pause picture frame, and obtains a time difference between each pause picture frame; determining the blocking times according to the time difference, and calculating according to the blocking times and the detection duration to obtain the blocking frequency; and determining a detection result according to the Caton rate and the Caton frequency.
In one embodiment, the image fluency detection apparatus 1200 is further configured to send the detection result to the server for saving: and when the server receives a detection result checking instruction sent by the management terminal, the server sends the detection result to the management terminal for displaying.
FIG. 13 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be the terminal 102 in fig. 1. As shown in fig. 13, the computer apparatus includes a processor, a memory, a network interface, an input device, and a display screen connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and also stores a computer program, and when the computer program is executed by a processor, the computer program can enable the processor to realize the method for detecting the fluency of the picture. The internal memory may also store a computer program, and when the computer program is executed by the processor, the computer program may enable the processor to execute the method for detecting the fluency of the image. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 13 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the apparatus for detecting fluency of a picture provided by the present application can be implemented in the form of a computer program, and the computer program can be run on a computer device as shown in fig. 13. The memory of the computer device may store various program modules constituting the screen fluency detection apparatus, such as a program execution module 1202, a detection module 1204, a duration determination module 1206, and a stuck rate determination module 1208 shown in fig. 12. The computer program constituted by the program modules causes the processor to execute the steps of the method for detecting fluency of a picture according to the embodiments of the present application described in the present specification.
For example, the computer device shown in fig. 13 may execute step 202 through a program execution module 1202 in the picture smoothness detection apparatus shown in fig. 12. The computer device may perform step 204 by detecting module 1204. The computer device may perform step 206 by duration determination module 1206. The computer device may perform step 208 via the stuck rate determination module 1208.
In one embodiment, a computer device is provided, which includes a memory and a processor, the memory storing a computer program, and the computer program, when executed by the processor, causes the processor to execute the steps of the method for detecting fluency of a picture. Here, the steps of the method for detecting fluency of a picture may be the steps of the method for detecting fluency of a picture in the above embodiments.
In one embodiment, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the computer program causes the processor to execute the steps of the method for detecting fluency of a picture. Here, the steps of the method for detecting fluency of a picture may be the steps of the method for detecting fluency of a picture in the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (12)

1. A method for detecting fluency of a picture comprises the following steps:
receiving a picture detection instruction, wherein the picture detection instruction carries an application program identifier to be detected, running an application program corresponding to the application program identifier to be detected according to the picture detection instruction, and starting a monitoring thread to monitor the application program, wherein the application program calls the detection thread to run in an established detection environment; the monitoring thread is used for monitoring whether the application program is detected to be completed or not, and the detecting thread is used for detecting whether the application program is stuck or not during running;
receiving a detection starting instruction, detecting the rendering time of an operation picture frame in the application program according to the detection starting instruction and the detection thread, determining the operation picture frame as a pause picture frame when the rendering time exceeds the normal rendering time, and obtaining the rendering time of the pause picture frame;
receiving a detection completion instruction, acquiring the rendering time of each pause picture frame according to the detection completion instruction, determining pause time according to the rendering time of each pause picture frame, and determining detection time according to the detection start instruction and the detection completion instruction;
when the monitoring thread monitors that the detection is completed, the monitoring thread acquires the pause time and the detection time, determines the pause rate according to the pause time and the detection time, and determines the detection result according to the pause rate.
2. The method according to claim 1, wherein before the receiving the image detection instruction, which carries an identifier of an application program to be detected, and running the application program corresponding to the identifier of the application program to be detected according to the image detection instruction and starting a monitoring thread to monitor the application program, the method further comprises:
receiving a detection environment establishment instruction, acquiring each installed application program identifier according to the detection environment establishment instruction, and displaying each installed application program identifier;
receiving a selection instruction of a target installed application program identifier, and backing up a target application program file corresponding to the target installed application program identifier according to the selection instruction to obtain a detection environment of the target installed application program.
3. The method according to claim 1, wherein the receiving a detection start instruction according to which the detection thread detects a rendering time of a running picture frame in the application program comprises:
receiving a detection starting instruction, and displaying each picture scene identifier to be selected according to the detection starting instruction;
receiving a detection instruction of a target picture scene identifier, and detecting the rendering time of a running picture frame in a target picture scene corresponding to the target picture scene identifier by the detection thread according to the detection instruction of the target picture scene identifier, wherein the running picture in the target picture scene is continuously changed.
4. The method according to claim 1, wherein when the monitoring thread monitors that detection is completed, the monitoring thread acquires the stuck time length and the detection time length, determines a stuck rate according to the stuck time length and the detection time length, and determines a detection result according to the stuck rate, including:
when the monitoring thread monitors that the detection is finished, the monitoring thread acquires all the pause picture frames and acquires the time difference among all the pause picture frames;
determining the number of times of clamping according to the time difference, and calculating according to the number of times of clamping and the detection duration to obtain the frequency of clamping;
and determining a detection result according to the clamping rate and the clamping frequency.
5. The method according to claim 1, wherein when the monitoring thread monitors that the detection is completed, the monitoring thread obtains the stuck duration and the detection duration, determines a stuck rate according to the stuck duration and the detection duration, and determines a detection result according to the stuck rate, and further comprising:
sending the detection result to a server for storage:
and when the server receives a detection result checking instruction sent by a management terminal, the server sends the detection result to the management terminal for displaying.
6. An apparatus for detecting fluency of a picture, the apparatus comprising:
the program running module is used for receiving a picture detection instruction, running an application program corresponding to the application program identifier to be detected according to the picture detection instruction, and starting a monitoring thread to monitor the application program, wherein the application program calls the detection thread to run in the established detection environment; the monitoring thread is used for monitoring whether the application program is detected to be completed or not, and the detecting thread is used for detecting whether the application program is stuck or not during running;
the detection module is used for receiving a detection starting instruction, detecting the rendering time of an operation picture frame in the application program according to the detection starting instruction and the detection thread, determining the operation picture frame as a pause picture frame when the rendering time exceeds the normal rendering time, and obtaining the rendering time of the pause picture frame;
the duration determining module is used for receiving a detection finishing instruction, obtaining the rendering time of each pause picture frame according to the detection finishing instruction, determining the pause duration according to the rendering time of each pause picture frame, and determining the detection duration according to the detection starting instruction and the detection finishing instruction;
and the pause rate determining module is used for acquiring the pause time length and the detection time length by the monitoring thread when the monitoring thread monitors that the detection is finished, determining the pause rate according to the pause time length and the detection time length, and determining the detection result according to the pause rate.
7. The apparatus of claim 6, further comprising:
the identification display module is used for receiving a detection environment establishment instruction, acquiring each installed application identification according to the detection environment establishment instruction, and displaying each installed application identification;
and the detection environment establishing module is used for receiving a selection instruction of the target installed application program identifier, and backing up the target application program file corresponding to the target installed application program identifier according to the selection instruction to obtain the detection environment of the target installed application program.
8. The apparatus of claim 6, wherein the detection module comprises:
the scene mark display unit is used for receiving a detection starting instruction and displaying each picture scene mark to be selected according to the detection starting instruction;
and the scene detection unit is used for receiving a detection instruction of the target picture scene identifier, and the detection thread detects the rendering time of the running picture frame in the target picture scene corresponding to the target picture scene identifier according to the detection instruction of the target picture scene identifier, wherein the running picture in the target picture scene is continuously changed.
9. The apparatus according to claim 6, wherein the pause rate determining module is further configured to, when the monitoring thread monitors that the detection is completed, the monitoring thread obtains each pause picture frame, and obtains a time difference between the each pause picture frame; determining the number of times of clamping according to the time difference, and calculating according to the number of times of clamping and the detection duration to obtain the frequency of clamping; and determining a detection result according to the clamping rate and the clamping frequency.
10. The apparatus of claim 6, wherein the apparatus is further configured to send the detection result to a server to store: and when the server receives a detection result checking instruction sent by a management terminal, the server sends the detection result to the management terminal for displaying.
11. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 5.
12. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 5.
CN201911024492.7A 2019-10-25 2019-10-25 Method and device for detecting fluency of picture, storage medium and computer equipment Active CN112711519B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911024492.7A CN112711519B (en) 2019-10-25 2019-10-25 Method and device for detecting fluency of picture, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911024492.7A CN112711519B (en) 2019-10-25 2019-10-25 Method and device for detecting fluency of picture, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN112711519A CN112711519A (en) 2021-04-27
CN112711519B true CN112711519B (en) 2023-03-14

Family

ID=75540761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911024492.7A Active CN112711519B (en) 2019-10-25 2019-10-25 Method and device for detecting fluency of picture, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN112711519B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116048933A (en) * 2022-08-09 2023-05-02 荣耀终端有限公司 Fluency detection method

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239168B (en) * 2013-06-09 2018-03-23 腾讯科技(深圳)有限公司 Interim card detection method and equipment
CN104410878A (en) * 2014-12-05 2015-03-11 北京国双科技有限公司 Method and device for detecting video Caton time distribution
CN105979360A (en) * 2015-12-04 2016-09-28 乐视致新电子科技(天津)有限公司 Rendering image processing method and device
CN105979332A (en) * 2015-12-04 2016-09-28 乐视致新电子科技(天津)有限公司 Video data detection method and device
CN106775403B (en) * 2016-12-14 2020-03-03 北京小米移动软件有限公司 Method and device for acquiring stuck information
EP3663925B1 (en) * 2017-10-09 2021-12-01 Huawei Technologies Co., Ltd. Method for processing refreshing display abnormality, and terminal
CN111240837B (en) * 2018-03-13 2023-12-26 Oppo广东移动通信有限公司 Resource allocation method, device, terminal and storage medium
CN109144858B (en) * 2018-08-02 2022-02-25 腾讯科技(北京)有限公司 Fluency detection method and device, computing equipment and storage medium
CN109285211B (en) * 2018-10-29 2023-03-31 Oppo广东移动通信有限公司 Picture rendering method and device, terminal and storage medium

Also Published As

Publication number Publication date
CN112711519A (en) 2021-04-27

Similar Documents

Publication Publication Date Title
CN107451193B (en) A kind of acquisition methods and device of customer terminal webpage load time, electronic equipment
CN107967209B (en) Method for detecting error in front-end webpage code, detection equipment and server
CN104424089A (en) Terminal testing method and device
JP6037397B2 (en) User operation log recording method, program and apparatus thereof
CN110401580B (en) Webpage state monitoring method based on heartbeat mechanism and related equipment
CN112783761A (en) Method, device and system for testing cold start duration of application program
CN112711519B (en) Method and device for detecting fluency of picture, storage medium and computer equipment
CN109324959B (en) Method for automatically transferring data, server and computer readable storage medium
US10108474B2 (en) Trace capture of successfully completed transactions for trace debugging of failed transactions
CN110888781B (en) Application blockage detection method and detection device
CN109684125A (en) A kind of method, apparatus, equipment and storage medium for repairing DDR physical damage
CN115629968A (en) Test data recording method and device
US20210271588A1 (en) Rendering gui test object of application under test to reflect test information
CN111124774B (en) Method and related device for testing stability of server in starting process
CN112817831A (en) Application performance monitoring method, device, computer system and readable storage medium
CN110569167B (en) Webpage alarm monitoring method, script error reporting method, device and computer equipment
CN106708705B (en) Terminal background process monitoring method and system
CN110502416B (en) Application clamping detection method and device, computer equipment and readable medium
JP3735484B2 (en) Memory leak detection system, memory leak detection method, and recording medium
CN113127242A (en) Application crash processing method and processing device
CN112631821A (en) Memory fault detection positioning method and device, computer equipment and storage medium
CN110633087B (en) Client installation method, device and storage medium
CN106970850B (en) Hijacking detection method and device for pit position of application program
US20180007152A1 (en) Asynchronous custom exit points
CN112988498B (en) Power consumption-based anomaly detection method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40042651

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant