CN115269296A - Screen fluency detection method and device and electronic equipment - Google Patents

Screen fluency detection method and device and electronic equipment Download PDF

Info

Publication number
CN115269296A
CN115269296A CN202210964640.9A CN202210964640A CN115269296A CN 115269296 A CN115269296 A CN 115269296A CN 202210964640 A CN202210964640 A CN 202210964640A CN 115269296 A CN115269296 A CN 115269296A
Authority
CN
China
Prior art keywords
time period
type
display interface
screen
fluency
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210964640.9A
Other languages
Chinese (zh)
Inventor
赵义
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology 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 Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202210964640.9A priority Critical patent/CN115269296A/en
Publication of CN115269296A publication Critical patent/CN115269296A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

According to the method and the device for detecting the fluency of the screen and the electronic equipment, when the current display content of the display interface is detected to meet the predefined condition, the display content in the display interface is changed according to the predefined rule; acquiring a first type of operation parameter of a first time period from an operation system; the first time period may include a change time period during which the display interface performs a display content change process; therefore, the fluency corresponding to the screen in the process of changing the display content of the display interface can be determined based on the acquired first type of operation parameters and the duration of the first time period.

Description

Screen fluency detection method and device and electronic equipment
Technical Field
The disclosure relates to the technical field of internet, and in particular to a method and a device for detecting screen fluency and an electronic device.
Background
With the development of science and technology, terminal equipment is generally configured with a screen, the screen can display various contents, and a user can perform some interactive operations through the screen, so that the experience of the user can be improved.
However, the fluency of the screen is an important index of the user experience, and when the screen is not fluency, the user experience is usually poor. Therefore, the terminal device generally needs to detect the fluency of the screen; so as to judge whether the screen generates the stuck phenomenon.
Disclosure of Invention
This disclosure is provided to introduce concepts in a simplified form that are further described below in the detailed description. This disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The embodiment of the disclosure provides a method and a device for detecting screen fluency, and an electronic device, which can greatly reduce the operation parameters required to be obtained in the process of determining the screen fluency, so that the fluency corresponding to a screen in the process of determining the display content change of a display interface based on the obtained operation parameters is more accurate and efficient.
In a first aspect, an embodiment of the present disclosure provides a method for detecting screen fluency, including: in response to the fact that the current display content of the display interface meets the predefined condition, the display content in the display interface is changed according to the predefined rule, and a first type of operation parameter of the operation system in a first time period is obtained; the first time period comprises a change time period of the display interface in the display content change process; and determining the fluency corresponding to the screen in the process of changing the display content of the display interface based on the acquired first type operating parameters and the duration of the first time period.
In a second aspect, an embodiment of the present disclosure provides a device for detecting screen fluency, including: the change unit is used for responding to the detection that the current display content of the display interface meets the predefined condition, changing the display content in the display interface according to the predefined rule and acquiring a first type of operation parameter of the operation system in a first time period; the first time period comprises a change time period of the display interface in the display content change process; and the determining unit is used for determining the fluency corresponding to the screen in the process of changing the display content of the display interface based on the acquired first type operating parameters and the duration of the first time period.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; a storage device, configured to store one or more programs, which when executed by the one or more processors, enable the one or more processors to implement the method for detecting screen fluency according to the first aspect.
In a fourth aspect, the disclosed embodiments provide a computer readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for detecting screen fluency as described above in the first aspect.
According to the method and the device for detecting the fluency of the screen and the electronic equipment, when the current display content of the display interface is detected to meet the predefined condition, the display content in the display interface is changed according to the predefined rule; acquiring a first type of operation parameter of a first time period from an operation system; the first time period may include a change time period during which the display interface performs a display content change process; therefore, the state of the operating system in the process of changing the display content of the display interface can be determined based on the acquired first type of operating parameters and the duration of the first time period, and accordingly the fluency corresponding to the screen in the process of changing the display content of the display interface can be accurately determined.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1 is a flow diagram of one embodiment of a method of detecting screen fluency according to the present disclosure;
fig. 2 is a schematic interface change diagram of another embodiment of a method for detecting screen fluency according to the present disclosure;
FIG. 3 is a schematic diagram illustrating selection of a first time period according to an embodiment of a method for detecting fluency of a screen according to the present disclosure;
FIG. 4 is a schematic diagram of an embodiment of a device for detecting screen fluency according to the present disclosure;
FIG. 5 is an exemplary system architecture to which the method of detecting screen fluency of one embodiment of the present disclosure may be applied;
fig. 6 is a schematic diagram of a basic structure of an electronic device provided according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more complete and thorough understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
In order to facilitate understanding of the idea of the present disclosure, a brief introduction is made to an application scenario of the present disclosure. The application scene of the present disclosure can be understood as a scene in which the display condition of the terminal device needs to be tested, and in the scene, whether a stuck phenomenon occurs when the terminal switches among some scenes needs to be tested; that is, it can be understood that it is necessary to know whether the terminal can smoothly display the contents when the displayed contents are changed. When it is detected that the terminal cannot perform flow display on some content, the change process of the displayed content can be optimized, so that the browsing experience of the final user when the terminal equipment is used for browsing the content is better.
Referring to fig. 1, a flow chart of one embodiment of a method for detecting screen fluency according to the present disclosure is shown. The method for detecting the fluency of the screen can be applied to terminal equipment. The method for detecting the fluency of the screen as shown in fig. 1 comprises the following steps:
step 101, in response to the fact that the current display content of the display interface meets the predefined condition, changing the display content in the display interface according to the predefined rule; and obtaining a first type of operating parameter of the operating system over a first time period.
Here, the first time period may include a change period during which the presentation interface performs a presentation content change process.
As an example, the first time period includes a change time period of the display interface performing the display content change process, so that the acquired first type of operating parameter includes: a first type of operating parameter generated during a modification period of a content modification process is presented. Therefore, the first type of operation parameters in the display content changing process can be accurately acquired.
By way of example, the first type of operating parameter may be understood as a parameter related to fluency, such as an operating parameter indicating a number of frames, an operating parameter indicating GPU usage, and the like. Of course, the specific parameter type of the first type of operating parameter may be set according to the actual use situation.
As an example, the specific duration of the first time period may be determined according to predefined modification rules. For example, if the predefined rule indicates that the content displayed on the display interface is to be changed once, the first time period may be set to be slightly shorter, and if the predefined rule indicates that the content displayed on the display interface is to be changed several times, the first time period may be set to be slightly longer.
As an example, when the predefined alteration rule indicates that the presentation content is altered once, the specific duration of the first time period may be 1.6 seconds. Therefore, the first-type operation parameters in the content changing process of the display interface can be completely acquired, and the first-type operation parameters except the content changing process of too many display interfaces can be avoided being acquired.
As an example, the display content in the display interface may be changed according to a predefined rule only when it is detected that the current display content of the display interface meets a predefined condition; and the display content of the display interface is changed according to the predefined rule, so that the fluency detection of the display process of a specific display scene can be realized according to the actual requirement. Therefore, the fluency of a specific display scene can be accurately acquired. In other words, it can be understood that accurate detection of the fluency of the screen corresponding to a certain exhibition scene can be realized.
For example, the presentation contents of the presentation interface that can be presented include: wallpaper, menus, pages of a certain application, etc. Therefore, in the process of detecting the fluency of the screen, detection can be carried out according to scenes, for example, the displayed wallpaper meets the predefined condition, and the predefined rule can indicate that the menu is displayed next. That is, at this time, the display interface can change the displayed wallpaper to the display menu and can acquire the first type of operation parameters in the process of changing the display menu; therefore, the acquired first type operation parameter information can be more matched with the change process of the display wallpaper to the display menu.
As an example, the predefined rule may be defined according to actual situations, and the predefined rule is not limited herein. For example, when the content displayed on the current display interface is a menu, after the content can be changed according to predefined rules, the display interface can display a page of a certain application, and possibly also can display the next page of the menu, and the like, that is, the scene of fluency detection can be performed according to actual needs, and how to change the displayed content of the display interface is determined.
For example, the changing manner of changing the display content in the display interface may be automatic changing, and for example, the content changing instruction may be automatically generated in an UI automation manner, so that the display content in the display interface is changed.
As an example, the preset type of operating parameter may be obtained from within the operating system by calling a surfefringer function and/or a gfxinfo function within the operating system.
For better understanding, the description may be made with reference to fig. 2, where fig. 2 is a schematic diagram illustrating a change in display content of the display interface; fig. 2 may represent that the predefined rule indicates that the display content of the display interface may be changed from content a to content B, that is, when the display content a of the display interface is detected, the UI automation may be turned on, the content of the display interface may be changed to content B, and the first time period may include a change time period in which the display interface is changed from content a to content B, and the first type operation parameter for operating the system in the first time period may be obtained.
By the design, only the first type of operation parameters in the first time period are acquired, and the influence on the accuracy of the finally determined fluency due to excessive acquisition of the first type of operation parameters can be avoided. For example, when the information of the first-type operation parameters in the excessively long time period is acquired, the number of the first-type operation parameters to be subsequently processed is increased, which affects the efficiency of acquiring the fluency result, and meanwhile, since too many first-type operation parameters which are not the change process are acquired, which affects the precision of the fluency corresponding to the change process of the display content using the display interface determined by the first-type operation parameters.
And 102, determining the fluency corresponding to the screen in the process of changing the display content of the display interface based on the acquired first type operation parameters and the duration of the first time period.
As an example, the first time period includes a change time period during which the display interface changes the display content, and therefore, the acquired first type of operation parameter is an operation parameter for the operation system in the time period, so that by using the acquired first type of operation parameter and the time length of the first time period, a change condition of the first type of operation parameter in the time length of the first time period can be determined. For example, when the first type of operating parameter indicates the number of frames, the frame rate is determined based on the first type of operating parameter and the duration of the first time period; when the first type of operating parameter indicates the CPU utilization, then based on the first type of operating parameter and the duration of the first time period, a change in the GPU utilization within the first time period may be determined. Therefore, the fluency corresponding to the screen in the process of changing the display content of the display interface can be determined according to the change condition of the GPU utilization rate.
In the related art, when the fluency of the screen is detected, the fluency of the display interface is usually determined by using the tracking parameter information (for example, the capture trace) of the capture system, and in this way, the parameter information may be obtained for a long period of time, so that when the fluency of the screen is determined by using the obtained parameter information, the fluency corresponding to the screen in the process of changing the display content of the display interface cannot be accurately reflected.
In the disclosure, when it is detected that the current display content of the display interface meets the predefined condition, the display content in the display interface is changed according to the predefined rule; acquiring a first type of operation parameter of a first time period from an operation system; the first time period may include a change time period during which the display interface performs a display content change process; therefore, the state of the operating system in the process of changing the display content of the display interface can be determined based on the acquired first type of operating parameters and the duration of the first time period, and the fluency corresponding to the screen in the process of changing the display content of the display interface can be accurately determined.
In some embodiments, the first type of operation parameter may be used to indicate a frame number, and the step 102 (determining the fluency corresponding to the screen during the process of changing the display content of the display interface based on the acquired first type of operation parameter and the duration of the first time period) may specifically include:
determining a frame rate corresponding to a screen in the process of changing the display content of the display interface according to the first type of operation parameters and the duration of the first time period; and determining the fluency corresponding to the screen in the process of changing the display content of the display interface based on the determined frame rate.
As an example, the first type of operating parameter may be used to indicate a number of frames, and then the total number of frames output during the first time period may be determined using the first type of operating parameter; based on the total frame number and the duration of the first time period, the frame rate corresponding to the screen in the process of changing the display content of the display interface can be determined; and the frame rate can reflect the fluency of the screen more intuitively. For example, when the frame rate is lower than the preset value, it may be characterized that the screen may be stuck in the first time period, and correspondingly, when the frame rate is not lower than the preset value, it may be characterized that the screen is not stuck in the first time period.
By way of example, the method comprises the steps of determining a frame rate corresponding to a screen in the process of changing the display content of a display interface through a first type of operation parameter and the duration of a first time period; therefore, the determined frame rate can more accurately reflect the corresponding fluency of the screen in the process of changing the display content of the display interface.
In contrast, in the related art, the frame rate calculated by the operating system is directly obtained, and in this way, the obtained frame rate may not reflect the frame rate corresponding to the screen in the process of changing the display content of the display interface. For ease of understanding, fig. 3 is a time line segment, and for the related art, the operating system may calculate an average frame rate for the time period from T1 to T2 and calculate an average frame rate for the time period from T2 to T3; if the content change process performed by the display interface is in the time period of Ta-Tb, at this time, an average frame rate may be calculated in the time period of T1-T2 as the frame rate corresponding to the content change process performed by the display interface, which obviously causes an error, that is, the frame rate corresponding to the change process may not be accurately obtained in the manner of obtaining the frame rate in the related art, so that the result of the smoothness of the screen determined by using the frame rate is not accurate.
Continuing with the description of fig. 3, in the embodiment of the present disclosure, the first time period may be Tc-Td, at this time, the time period of Tc-Td is a time period including Ta-Tb, and the frame rate corresponding to the screen during the display content changing process performed by the display interface can be more accurately reflected by using the time period of Tc-Td, so that the fluency corresponding to the screen during the display content changing process can be accurately determined.
In some embodiments, after step 101 (in response to detecting that the currently presented content of the presentation interface meets the predefined condition), the method may further include: a second type of operating parameter of the operating system is obtained over a first time period.
At this time, based on the determined frame rate, determining fluency corresponding to the screen in the process of changing the display content by the display interface may specifically include: and determining the corresponding fluency of the screen in the process of changing the display content of the display interface according to the second type operation parameters and the frame rate.
As an example, the second type of operation parameter may be used to indicate an operation state of the operation system, so that based on the second type of operation parameter and the frame rate, the fluency corresponding to the screen in the process of changing the display content of the interface may be determined more accurately.
As an example, the second type of operating parameters may include which operating parameters may be set according to actual circumstances. For example, the second type of operating parameter may include: a parameter indicating memory usage, a parameter indicating graphics vertical synchronization (e.g., a VSYNC parameter), a parameter indicating GPU occupancy, a parameter indicating CPU usage, and so forth. Of course, in a specific embodiment, the second type of operation parameter may specifically include which parameters, and may be defined according to actual situations.
As an example, determining the fluency corresponding to the screen in the process of changing the display content of the display interface according to the second type operation parameter and the frame rate; in this way, the determined fluency can be made more accurate.
For example, when the frame rate is too low, it may be characterized that the fluency corresponding to the screen is poor in the process of changing the display content according to the predefined rule, and correspondingly, when the GPU frequency is too low, it may also be characterized that the fluency corresponding to the screen is poor. For another example, when the frame rate is too low, the corresponding GPU occupancy is not high, which may be an occasional karton phenomenon, and when the frame rate is too low, the GPU occupancy is also high, which may be a normal karton phenomenon. Therefore, the fluency corresponding to the screen in the process of changing the display content of the display interface can be more accurately determined.
Of course, how to determine the fluency corresponding to the screen by using the second type of operating parameter and the frame rate may also be defined according to the actual use condition, and the specific determination process is not limited herein.
In some embodiments, a frame rate and a second type of operating parameter may also be exposed.
As an example, the display frame rate and the second type of operation parameter may facilitate a user to know a parameter change condition in a display content change process of the display interface, so that the user may better optimize the display content change process of the display interface.
In some embodiments, the method for detecting the fluency of the screen may be applied to a terminal device, where the terminal device may include a preset cache region, and the preset cache region may be configured to cyclically cache parameter information of an operating system; and in step 101, after responding to the detection that the current display content of the display interface meets the predefined condition, the cached data in the preset cache region may also be cleared.
As an example, in the process of acquiring the first-type operating parameter and/or the second-type operating parameter each time, the operating parameter in the preset buffer may be cleared, so that the data in the buffer may be the first-type operating parameter and/or the second-type operating parameter acquired within the preset time length. Therefore, when the fluency corresponding to the screen in the process of changing the display content of the display interface is determined, the operation parameters can be directly obtained from the preset cache region. Therefore, the efficiency of processing the acquired operation parameters can be improved, and the fluency corresponding to the screen in the process of changing the display content on the display interface can be more efficiently determined.
In some embodiments, a preset script may be pre-configured in the runtime system, and the first type of runtime parameter may be obtained from the runtime system using the preset script.
As an example, the preset script is configured in the running system in advance, and the preset script can be run to obtain the first type running parameter, in such a way, the running process of the running system is not changed, and the script is directly used to obtain the first type running parameter from the running system, so that the obtained first type running parameter can be more accurate, and the fluency corresponding to the screen can be more accurately determined.
In contrast, in the related art, the fluency of the display interface is usually determined by using the tracking parameter information (for example, the trace captured) of the capturing system, but in the process of capturing the trace to obtain the parameter information, the instantaneous consumption of the system is huge, and therefore, the accuracy of the obtained parameter information is affected, for example, the seizure may be caused by capturing the trace. For some terminal devices with weak computing power, a large error may occur when parameter information is obtained by grabbing trace.
In some embodiments, the second type of operating parameter may also be obtained by a preset script.
In some embodiments, the type of the preset script may be a shell script.
As an example, a shell script is preset in the running system, and the running parameters can be directly obtained by running the shell script. And because the technical resources required by the running of the shell script are smaller, the running system can not interfere with the changing process of the display content in the process of obtaining the running parameters by running the shell script, so that the running parameters obtained by utilizing the shell script are more accurate, and the fluency determined by utilizing the obtained running parameters is more accurate. That is, the preset shell script can be configured in the running system in advance, so that the shell script can be directly run in the running system, and the first type and the second type of running parameters can be efficiently obtained.
It should be noted that, because the preset shell script is pre-configured in the running system, and the shell script can conform to most running environments, the process of configuring the running environment for the shell script is more efficient, and the required computing resources are less; therefore, the influence on the normal operation of the operation system is small in the process of operating the shell script; in addition, in the process of acquiring the operation parameters by using the preset shell script, the change influence on the display content of the display interface is small, and thus, the operation parameters acquired by using the preset shell script are more accurate.
Furthermore, the shell script is simple in maintenance case and environment configuration, so that deployment of the preset shell script is simpler in the process of acquiring the running parameters by using the preset shell script. That is, the preset shell script can be quickly deployed in the running system and can be quickly executed, and in the process, the influence on the computing resources of the running system is small.
In some embodiments, the acquired first type operating parameter and the duration of the first time period may also be processed by using a preset script, and the frame rate is output.
As an example, the preset script processes the operation parameters, so that the fluency corresponding to the screen in the process of changing the display content of the display interface can be determined by directly using the output result of the preset script. In this way, the operation parameters do not need to be processed by the operation system, so that the fluency of the screen can be conveniently acquired.
In some embodiments, the preset script may encapsulate at least one of the following functions: the function is used for controlling the display interface to change the content, the function is used for acquiring the GPU frequency, the function is used for acquiring the window name, and the function is used for determining the interface layout positioning.
By way of example, the function for controlling the presentation interface to change the content may be understood as a UI automation function, and may also be understood as an operation function. For example, the function for controlling the presentation interface to make content changes may include: the function used for indicating the short press operation, the function used for indicating the long press operation, the function used for indicating the drag operation and the like, so that the function needing to be operated can be determined according to the actual change requirement. That is, in some scenarios, when such UI operations are performed, the content of the presentation interface may be changed accordingly.
As an example, when the preset script encapsulates a function for controlling the display interface to change the content, the preset script may generate a change instruction of the interface content when the preset script is run, so that the interface display content is changed according to a predefined rule. That is, by changing the function for controlling the display interface to change the content, the changing mode of the predetermined rule can be changed. And the display content in the display interface is changed according to the predefined rule, so that the screen fluency result in the display process aiming at a certain display scene can be more accurately realized.
It should be noted that the specific function types of the various functions encapsulated by the preset script may be defined according to actual conditions, and the specific function types of the various functions are not limited herein, but only need to be set reasonably according to the actual conditions.
For the convenience of understanding, a preset script is taken as an example of the shell script, and the UI automation is realized in the shell script. For example, the most basic UI operation instructions in a shell may be defined. For example, an input event, a click action, a slide action, a long press action, a drag action, etc. may be defined and then an action function of short press, long press, drag, slide, long press, etc. may be encapsulated according to the basic action instruction; when the test case is written, the packaged action function can be directly called, so that UI automation can be realized. And the user can determine the predefined change rule according to the actual requirement.
While some operations require coordinate points to be acquired, one way is to acquire coordinate points from an already dumped file (dump file), which includes a directory for storing coordinate points, so that coordinate points can be acquired in this directory. (e.g., a directory of dump files/system/bin/UI automation file-compressed/data/local/tmp/UI. Xml) may be used to store coordinate points), coordinate points indicating the UI layout are screened out in the dump file, and each control in the directory for storing coordinate points has two coordinate points, and the middle values of the two x-axis coordinates and the two y-axis coordinates are calculated respectively at the upper left and the lower right to obtain the center point coordinates of the control. In some implementation manners, the coordinate point can also be directly obtained by using the pointer position, and a developer of the terminal device can select and start an instruction for obtaining the pointer position, so that the position coordinate can be obtained in real time in the touch screen process.
Of course, in the specific embodiment, how to perform UI automation specifically and how to determine the coordinate position may be defined according to actual situations. Only in the shell operation process, UI automation can be realized, and the corresponding coordinates of each operation in the UI automation process can be obtained. And the coordinates corresponding to the operation are obtained, so that when the screen pause is detected, the user can better optimize the screen pause.
As an example, the CPU/GPU frequency may also be continuously obtained as follows:
GPU frequency nodes can be continuously captured in the for sequence and assigned to the array; in this way, the GPU frequency may be obtained. It should be noted that, in the actual use process, there are many ways of capturing GPU frequency nodes using the script, and for the sake of simplicity of the description, various ways of capturing GPU frequency nodes are not limited here, and only need to be set reasonably according to the actual situation.
Of course, GPU nodes vary from test equipment platform to test equipment platform. In practical application, the method can be limited according to practical situations.
In some embodiments, the second type of operating parameter may include a first GPU parameter for indicating a GPU frequency, and the first GPU parameter may be obtained at least 2 times during the first time period.
As an example, the GPU frequency is obtained at least 2 times in the first time period, so that the change condition of the GPU frequency in the process of changing the display content on the display interface can be obtained, and thus the user can more conveniently determine the fluency corresponding to the screen.
As an example, the GPU frequency may be acquired 5 times in succession.
Here, the GPU frequency may be acquired using a preset script.
In some embodiments, the second type of operating parameter may include at least one of: GPU frequency and GPU utilization rate.
In some embodiments, the output that may utilize the preset script includes output results of one or more of frame rate, GPU frequency, GPU usage, and the like; therefore, the fluency corresponding to the screen in the process of changing the display content on the display interface can be determined directly according to the output result of the preset script.
As an example, in order to further improve the accuracy of the fluency determination result, the output result of the preset script may include a frame rate, a GPU frequency, a GPU usage rate, and the like. Therefore, the fluency result determined by the output result of the preset script can be more accurate.
In some embodiments, a preset shell script may correspond to a detection scenario. For example, the terminal device has multiple display scenes, such as a scene from a display menu to a page where the application a is displayed, a scene where the application a runs, a scene where the application a exits from the display page, and the like. That is, each display scene can correspond to a preset shell script, so that one shell script can only acquire data in one scene, and thus, excessive invalid parameter information can be prevented from being acquired; meanwhile, the corresponding fluency of the screen in the process of changing the displayed content can be more accurately determined.
With further reference to fig. 4, as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for detecting screen fluency, where the embodiment of the device corresponds to the embodiment of the method for detecting screen fluency shown in fig. 1, and the device can be applied to various electronic devices.
As shown in fig. 4, the apparatus for detecting screen fluency of the present embodiment includes: the changing unit 401 is configured to, in response to detecting that the current display content of the display interface meets a predefined condition, change the display content in the display interface according to a predefined rule, and acquire a first type of operating parameter of the operating system in a first time period; the first time period comprises a change time period of a display content change process of the display interface; a determining unit 402, configured to determine, based on the obtained first type of operating parameter and the duration of the first time period, a fluency corresponding to a screen in a process of changing display content of the display interface.
In some embodiments, the first type of operating parameter is indicative of a number of frames; and the determining unit 402 is further specifically configured to: determining a frame rate corresponding to a screen in the process of changing the display content of the display interface according to the first type operating parameter and the duration of the first time period;
and determining the fluency corresponding to the screen in the process of changing the display content of the display interface based on the determined frame rate.
In some embodiments, after the response to detecting that the current display content of the display interface meets the predefined condition, the changing unit 401 is further configured to obtain a second type of operating parameter of the operating system in a first time period; and the determining unit is specifically further configured to determine, according to the second type operating parameter and the frame rate, a fluency corresponding to a screen in a process of changing the display content of the display interface.
In some embodiments, the apparatus is further configured to display the frame rate and the second type of operating parameter.
In some embodiments, the method for detecting screen fluency is applied to a terminal device, where the terminal device includes a preset cache region, and the preset cache region is used for circularly caching parameter information of the operating system; and after responding to the detection that the current display content of the display interface meets the predefined condition, the device is also used for clearing the cached data in the preset cache region.
In some embodiments, a preset script is pre-configured in the running system, and the first type running parameter is obtained from the running system by using the preset script.
In some embodiments, at least one of the following functions is encapsulated in the preset script: the function is used for controlling the display interface to change the content, the function is used for acquiring the GPU frequency, the function is used for acquiring the window name, and the function is used for determining the interface layout positioning.
In some embodiments, the second type of operating parameter includes at least one of: frame rate, GPU frequency, GPU utilization.
In some embodiments, the type of the preset script includes a shell script.
In some embodiments, the second type of operation parameter includes a first GPU parameter indicating a GPU frequency, and the changing unit 401 is further configured to obtain the first GPU parameter at least 2 times during the first time period.
Referring to fig. 5, fig. 5 illustrates an exemplary system architecture to which the method for detecting screen fluency of one embodiment of the present disclosure may be applied.
As shown in fig. 5, the system architecture may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 may be the medium used to provide communication links between the terminal devices 501, 502, 503 and the server 505. Network 504 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
The terminal devices 501, 502, 503 may interact with a server 505 over a network 504 to receive or send messages or the like. The terminal devices 501, 502, 503 may have various client applications installed thereon, such as a web browser application, a search-type application, and a news-information-type application. The client application in the terminal device 501, 502, 503 may receive the instruction of the user, and complete the corresponding function according to the instruction of the user, for example, add the corresponding information in the information according to the instruction of the user.
The terminal devices 501, 502, 503 may be hardware or software. When the terminal devices 501, 502, 503 are hardware, they may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, motion Picture Experts Group Audio Layer 3), MP4 players (Moving Picture Experts Group Audio Layer IV, motion Picture Experts Group Audio Layer 4), laptop portable computers, desktop computers, and the like. When the terminal devices 501, 502, and 503 are software, they can be installed in the electronic devices listed above. It may be implemented as a plurality of software or software modules (e.g., software or software modules used to provide distributed services) or as a single software or software module. And is not particularly limited herein.
The server 505 may be a server providing various services, for example, receiving an information acquisition request sent by the terminal device 501, 502, 503, and acquiring the presentation information corresponding to the information acquisition request in various ways according to the information acquisition request. And the relevant data of the presentation information is sent to the terminal equipment 501, 502, 503.
It should be noted that the information processing method provided by the embodiment of the present disclosure may be executed by a terminal device, and accordingly, the detection device for the fluency of the screen may be disposed in the terminal device 501, 502, 503. In addition, the information processing method provided by the embodiment of the present disclosure may also be executed by the server 505, and accordingly, an information processing apparatus may be provided in the server 505.
It should be understood that the number of terminal devices, networks, and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to fig. 6, shown is a schematic diagram of an electronic device (e.g., a terminal device or a server of fig. 6) suitable for use in implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: in response to the fact that the current display content of the display interface meets the predefined condition, the display content in the display interface is changed according to the predefined rule, and a first type of operation parameter of the operation system in a first time period is obtained; the first time period comprises a change time period of the display interface in the display content change process; and determining the fluency corresponding to the screen in the process of changing the display content of the display interface based on the acquired first type of operation parameters and the duration of the first time period.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the changing unit 401 may also be described as a "unit that changes the presentation content within the presentation interface according to a predefined rule".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and the technical features disclosed in the present disclosure (but not limited to) having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (13)

1. A method for detecting fluency of a screen is characterized by comprising the following steps:
in response to the fact that the current display content of the display interface meets the predefined condition, the display content in the display interface is changed according to the predefined rule, and a first type of operation parameter of the operation system in a first time period is obtained; the first time period comprises a change time period of a display content change process of the display interface;
and determining the fluency corresponding to the screen in the process of changing the display content of the display interface based on the acquired first type operation parameters and the duration of the first time period.
2. The method of claim 1, wherein the determining of the fluency corresponding to the screen during the process of changing the display content of the display interface by using the first type of operation parameter for indicating the frame number, the obtained first type of operation parameter and the duration of the first time period comprises:
determining a frame rate corresponding to a screen in the process of changing the display content of the display interface according to the first type operation parameter and the duration of the first time period;
and determining the fluency corresponding to the screen in the process of changing the display content of the display interface based on the determined frame rate.
3. The method of claim 2, wherein after the responding detects that the currently presented content of the presentation interface meets a predefined condition, the method further comprises:
acquiring a second type of operation parameter of the operation system in a first time period;
and determining the fluency corresponding to the screen in the process of changing the display content of the display interface based on the determined frame rate, wherein the fluency comprises the following steps:
and determining the fluency corresponding to the screen in the process of changing the display content of the display interface according to the second type operation parameter and the frame rate.
4. The method of claim 3, further comprising:
and displaying the frame rate and the second type of operation parameters.
5. The method according to claim 1 or 3, wherein the method for detecting the fluency of the screen is applied to a terminal device, and the terminal device comprises a preset cache region, wherein the preset cache region is used for circularly caching parameter information of the operating system; and after responding to the detection that the currently displayed content of the display interface meets the predefined condition, the method further comprises the following steps:
and clearing the cached data in the preset cache region.
6. The method of claim 1, wherein a preset script is pre-configured in the runtime system, and wherein the first type runtime parameters are obtained from the runtime system using the preset script.
7. The method according to claim 6, wherein at least one of the following functions is encapsulated in the preset script:
the function is used for controlling the display interface to change the content, the function is used for acquiring the GPU frequency, the function is used for acquiring the window name, and the function is used for determining the interface layout positioning.
8. The method according to claim 6 or 7, wherein the type of the preset script comprises a shell script.
9. The method of claim 3, wherein the second type of operating parameter comprises at least one of:
GPU frequency and GPU utilization rate.
10. The method of claim 3, wherein the second type of operating parameter comprises a first GPU parameter indicating a GPU frequency, and wherein the obtaining the second type of operating parameter for the operating system over the first time period comprises:
and acquiring at least 2 times of first GPU parameters in the first time period.
11. A device for detecting fluency of a screen, comprising:
the change unit is used for responding to the detection that the current display content of the display interface meets the predefined condition, changing the display content in the display interface according to the predefined rule and acquiring a first type of operation parameter of the operation system in a first time period; the first time period comprises a change time period of a display content change process of the display interface;
and the determining unit is used for determining the fluency corresponding to the screen in the process of changing the display content of the display interface based on the acquired first type operating parameters and the duration of the first time period.
12. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-10.
13. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-10.
CN202210964640.9A 2022-08-11 2022-08-11 Screen fluency detection method and device and electronic equipment Pending CN115269296A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210964640.9A CN115269296A (en) 2022-08-11 2022-08-11 Screen fluency detection method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210964640.9A CN115269296A (en) 2022-08-11 2022-08-11 Screen fluency detection method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN115269296A true CN115269296A (en) 2022-11-01

Family

ID=83750721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210964640.9A Pending CN115269296A (en) 2022-08-11 2022-08-11 Screen fluency detection method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN115269296A (en)

Similar Documents

Publication Publication Date Title
CN110795022B (en) Terminal testing method, system and storage medium
CN111488185B (en) Page data processing method, device, electronic equipment and readable medium
CN111459364B (en) Icon updating method and device and electronic equipment
CN110619100B (en) Method and apparatus for acquiring data
CN111258736B (en) Information processing method and device and electronic equipment
CN110619096B (en) Method and apparatus for synchronizing data
CN112379982B (en) Task processing method, device, electronic equipment and computer readable storage medium
CN111596991A (en) Interactive operation execution method and device and electronic equipment
CN111461967B (en) Picture processing method, device, equipment and computer readable medium
CN111309617A (en) Application program control method and device, storage medium and electronic equipment
CN110879729A (en) Channel configuration method and device for live broadcast room, readable medium and electronic equipment
CN114417782A (en) Display method and device and electronic equipment
CN110069186B (en) Method and equipment for displaying operation interface of application
CN111273884A (en) Image display method and device and electronic equipment
CN111783010A (en) Webpage blank page monitoring method, device, terminal and storage medium
CN113163483B (en) Timestamp updating method and device and electronic equipment
CN114520928B (en) Display information generation method, information display device and electronic equipment
CN111290812B (en) Display method, device, terminal and storage medium of application control
CN114626332A (en) Content display method and device and electronic equipment
CN115269296A (en) Screen fluency detection method and device and electronic equipment
CN113779461A (en) Data loading method and device and electronic equipment
CN111309323A (en) Parameter initialization method and device and electronic equipment
CN112311842A (en) Method and device for information interaction
CN113032172B (en) Abnormality detection method and device and electronic equipment
CN112328341B (en) Model display method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination