Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for performance testing for local method call

A method call, local technology, applied in software testing/debugging, error detection/correction, instrumentation, etc., can solve problems such as impractical and unpredictable dynamic loading method signatures, and achieve high feasibility results

Inactive Publication Date: 2010-07-21
INT BUSINESS MASCH CORP
View PDF0 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, according to the current technology, it is impossible to predict the signature of the dynamic loading method, so this mechanism is not practical in practice.

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
  • Method and device for performance testing for local method call
  • Method and device for performance testing for local method call
  • Method and device for performance testing for local method call

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] Below, the method and device for testing local method calls provided by the present invention will be described in detail with reference to the accompanying drawings.

[0027] First, refer to figure 2 An embodiment of the method according to the invention will be described. figure 2 A flowchart showing a method for performance testing a local method call according to an embodiment of the present invention.

[0028] Such as figure 2 As shown, in step 201, in response to the event associated with the local method call, a copy of the performance test template is generated from the general performance test template for performance testing the local method call.

[0029] In the Java virtual machine, after the calling method calls the native method, the address of the native method will be bound, and at this time, a native method call related event such as the above-mentioned native method binding event (NativeMethodBind) will be started.

[0030] It should be noted that, ...

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 provides a method and a device for performance testing for local method call. The method comprises the following steps: responding to the related events of the local method call, and using a universal performance testing template for performance testing for the local method call to generate a performance testing template copy; filling the information required for performance testing for the local method call in the corresponding position of the performance testing template copy; and changing code execution processes to execute the performance testing template copy. According to the invention, when a local method is called, the performance testing for the local method is realized by dynamically inserting the performance testing template copy into the execution route at the assembly level. Thus, compared with the prior art, the invention does not need to provide a related agent aiming at each local method, has high feasibility, and almost can not cause any difference to system performance.

Description

technical field [0001] The present invention relates to profiling technology, and more particularly to a method and device for profiling local method calls. Background technique [0002] The performance testing technology is such a technology, which obtains various performance parameters during the execution process by tracking the execution process of the application program, so as to locate the performance bottleneck of the program, so as to optimize the application program in a targeted manner. [0003] A local method is a method that can be directly run on a local hardware platform without being interpreted by a virtual machine (VM, Virtual Machine). Typically, native methods can be used for purposes such as direct manipulation of computer hardware, improved program execution performance, legacy code reuse, and more. As we all know, in applications such as Java applications, native method calls are very common, mainly because many functions need to be implemented by usi...

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/3636
Inventor 滕启明钟虓王峰王海川
Owner INT BUSINESS MASCH CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products