Unlock instant, AI-driven research and patent intelligence for your innovation.

Response time measurement method and terminal

A response time and terminal technology, applied in the field of data processing, can solve the problems of consuming large system resources, unbalanced response time accuracy and measurement efficiency, and large application response time, achieving high efficiency, high accuracy, and improved accuracy Effect

Active Publication Date: 2018-03-13
FUJIAN TQ DIGITAL
View PDF10 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantage of this solution is that real-time matching consumes a lot of system resources, which will make the application response time too long
None of the above methods of measuring application response time can balance the accuracy of response time and measurement efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Response time measurement method and terminal
  • Response time measurement method and terminal
  • Response time measurement method and terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0073] This embodiment provides a method for measuring response time, including:

[0074] S1. Obtain the time point at which the interface rendering operation is triggered, and obtain the start time point.

[0075] Optionally, the time point at which an application program receives the click operation is obtained to obtain the start time point.

[0076] Wherein, the response time to be measured in this embodiment is the time from when the user operation request is issued to when the rendering of the UI interface is finished. The time when the user operation request is sent can be automatically monitored and recorded by the automated script, and the time point when the user performs the click operation or the touch operation, that is, the start time point.

[0077] S2. Monitor the drawing end function in real time, and record the time point when the drawing end function is called, and obtain a set of calling time points.

[0078] Wherein, to realize the real-time monitoring d...

Embodiment 2

[0085] This embodiment provides a method for measuring response time, including:

[0086] S1. Obtain the time point at which the interface rendering operation is triggered, and obtain the start time point.

[0087] Optionally, the time point at which an application program receives the click operation is obtained to obtain the start time point.

[0088] S2. Monitor the drawing end function in real time, and record the time point when the drawing end function is called, and obtain the set of calling time points; specifically:

[0089] S21, preset monitoring area;

[0090] S22. Monitor the drawing end function in real time. If the drawing area corresponding to the currently called drawing end function matches the monitoring area, record the time point when the drawing end function is called to obtain a set of calling time points.

[0091] S3. If the drawing area corresponding to the called drawing end function does not match the preset monitoring area within the preset time in...

Embodiment 3

[0097] S1. Obtain the time point at which the interface rendering operation is triggered, and obtain the start time point.

[0098] S2. Monitor the drawing end function in real time, and record the time point when the drawing end function is called, and obtain a set of calling time points.

[0099] S3, preset interface rendering times;

[0100] Real-time monitoring of drawing end function,

[0101] Sm. Obtain the element with the largest value in the call time point set to obtain the latest call time point;

[0102] Sn. If the call of the drawing end function is not monitored within the preset time interval from the latest call time point, the actual interface rendering times are increased by one;

[0103] Repeat steps Sm to Sn until the actual interface rendering times are equal to the preset interface rendering times;

[0104] It is not monitored that the drawing end function is called within the preset time interval.

[0105] Among them, no matter how complicated the UI...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the field of data processing, and in particular to a response time measurement time and a terminal. The method comprises the following steps of: obtaining a starting time point through obtaining a time point for triggering an interface rendering operation; monitoring a drawing ending function in real time and recording time points for calling the drawing ending function soas to obtain a calling time point set; if the fact that the drawing ending function is called is not monitored in a preset time interval, obtaining the time point, the time interval between which andthe current system time is the minimum, from the calling time point set so as to obtain an ending time point; and calculating a response time according to the ending time point and the starting timepoint. According to the method, the accuracy and efficiency of measuring application response time are improved at the same time.

Description

technical field [0001] 本发明涉及数据处理领域,尤其涉及一种测量响应时间的方法及终端。 Background technique [0002] 应用响应时间指用户发出请求到系统做出反应的时间。应用响应时间包含系统响应时间、程序响应时间和界面渲染时间。响应时间是应用性能测试的主要指标之一,同时也是影响用户体验和软件产品质量的主要因素之一。 [0003] 传统的响应时间测量方案有以下几种:一种是在应用程序中加入时间点记录代码,通过Log输出,手动计算响应时间,需要一定的人力投入,并且需要源码提供支持,需对软件架构有一定的了解,这种方案效率低,同时误差大,无法计算界面渲染时间和系统响应时间;另一种是通过高速相机录像,通过解析帧来计算响应时间,这种方案虽然误差小,但需要投入大量人力,效率低。还有一种是通过自动化测试工具和屏幕截图实时匹配来计算。这种方案的缺点是实时匹配消耗大量系统资源,会使应用响应时间偏大。上述测量应用响应时间的方法都无法均衡响应时间的精确度及测量效率。 Contents of the invention [0004] 本发明所要解决的技术问题是:如何同时提高测量应用响应时间的精确度及效率。 [0005] In order to solve the problems of the technologies described above, the technical solution adopted in the present invention is: [0006] 本发明提供一种测量响应时间的方法,包括: [0007] S1、获取触发界面渲染操作的时间点,得到开始时间点; [0008] S2、实时监控绘图结束函数,并记录绘图结束函数被调用的时间点,得到调用时间点集合; [0009] S3、若预设的时间间隔内未监控到所述绘图结束函数被调用,则从所述调用时间点集合中获取与当前系统时间的时间间隔最小的所述时间点,得到结束时间点; [0010] S4、根据所述结束时间点和所述开始时间点计算得到响应时间。 [0011] 本发明还提供一种测量响应时间的终端,包括一个或多个处理器及存储器,所述存储器存储有程序,并且被配置成由所述一个或多个处理器执行以下步骤: ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/34
CPCG06F11/3419G06F11/3476
Inventor 刘德建陈高武陈军魏小明雷平陈文胜刘飞跃曾捷
Owner FUJIAN TQ DIGITAL