Function execution time testing method and device

A technology of execution time and test method, applied in the field of communication, can solve the problems of large system memory space occupation and system resource waste, and achieve the effect of reducing memory occupation space and reducing system resource waste.

Active Publication Date: 2017-08-08
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] For example, when testing through traceView (a tool for testing application performance), the time-consuming calculation of the executed functions from the capture to capture all the executed functions of the process, the time-consuming data of the functions obtained in a short time It can reach 8M (megabytes) in 3 to 5 seconds, resulting in a large system memory space and a waste of system resources

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
  • Function execution time testing method and device
  • Function execution time testing method and device
  • Function execution time testing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] Referring to the drawings, wherein like reference numerals represent like components, the principles of the present invention are exemplified when implemented in a suitable computing environment. The following description is based on illustrated specific embodiments of the invention, which should not be construed as limiting other specific embodiments of the invention not described in detail herein.

[0025] In the following description, specific embodiments of the present invention will be described with reference to steps and symbols executed by one or more computers, unless otherwise stated. Accordingly, these steps and operations will several times be referred to as being computer-implemented, which herein refers to operations by a computer processing unit of electronic signals representing data in a structured form. This operation transforms the data or maintains it at a location in the computer's memory system that can reconfigure or otherwise alter the operation ...

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 discloses a function execution time testing method and device. The method comprises steps as follows: a test instruction is received, and a function tracking course is acquired according to the test instruction and is used for acquiring time test parameters of a to-be-tested function; the function tracking course is hung up by the aid of a preset hook function, and a tracking function is triggered to be enabled; after the tracking function is enabled, whether the to-be-tested function meets preset conditions is determined; when the to-be-tested function is determined to meet the preset conditions, the function tracking course is returned, and execution time of the to-be-tested function is tested. The function tracking course is hung up by the use of a hook, the execution path of the to-be-tested function is changed, after the tracking function is enabled, the to-be-tested function is judged firstly, logic for testing and recording function time consumption is executed only when the function meets preset conditions, thus, some useless function time consumption data can be filtered out, memory occupation space of the function time consumption data is greatly reduced, and system resource waste is reduced.

Description

technical field [0001] The invention belongs to the technical field of communication, and in particular relates to a method and device for testing function execution time. Background technique [0002] At present, when testing the performance of electronic devices (such as mobile phones, tablet computers, TVs, etc.), it is necessary to locate which functions are called by the current application program (app, application) and these functions call or occupy the central processing unit (CPU, Central Processing Unit). ) execution time, helping developers and testers to locate and find the corresponding function location faster. [0003] For example, when testing through traceView (a tool for testing application performance), the time-consuming calculation of the executed functions from the capture to capture all the executed functions of the process, the time-consuming data of the functions obtained in a short time It can reach 8M (megabytes) in 3 to 5 seconds, resulting in a ...

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/36
CPCG06F11/3688
Inventor 陈礼娟王俊俊
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products