Method, device and system for obtaining program performance consumption information

A technology that consumes information and performance, applied in the direction of program control devices, etc., can solve problems that affect the efficiency of code execution, and achieve the effect of avoiding system overhead, reducing impact, and avoiding the operation process of manually inserting code

Active Publication Date: 2017-10-20
ALIBABA GRP HLDG LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Relatively speaking, this method saves the trouble of manually adding troubleshooting codes, but there are still at least the following problems: this method modifies the bytecodes of all Java methods loaded into the JVM, which will affect to a certain extent to the code execution efficiency of the checked application

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, device and system for obtaining program performance consumption information
  • Method, device and system for obtaining program performance consumption information
  • Method, device and system for obtaining program performance consumption information

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application belong to the protection scope of this application.

[0047] In order to avoid the need to manually modify the code of the method when troubleshooting and analyzing the performance problem of the java program, and to avoid the bytecode of all methods being enhanced to affect the checked application, the embodiment of this application provides New way to get program performance consumption information. In this method, the analysts can specify the methods to be analyzed, and then automatically enhance the bytecodes of these specified methods, and then obtain information su...

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 present application discloses a method, device and system for obtaining program performance consumption information, wherein the method includes: receiving an analysis instruction carrying target information to be analyzed, and determining a method to be analyzed according to the target information to be analyzed; Find the bytecode of the method to be analyzed in the class loaded by the analysis process, and perform bytecode enhancement on the method to be analyzed through the bytecode manipulation framework; according to the information recorded at the specified location, calculate the The performance consumption analysis results of each method to be analyzed. Through this application, the operation process of manually inserting codes by the user can be avoided, and the scope of bytecode enhancement can be controlled to reduce the impact on the operation of actual business programs.

Description

technical field [0001] The present application relates to the technical field of Java program performance investigation and analysis, in particular to a method, device and system for obtaining program performance consumption information. Background technique [0002] In the troubleshooting and analysis of Java program performance problems, it is often necessary to obtain the execution path of the Java program and the performance consumption of each node on the path, that is, it is necessary to know the execution time of each Java method in the Java program, and the calls between each Java method relationship, and the execution time of other methods invoked by the Java method. In order to achieve this goal, the general implementation method is to add a piece of code for recording the current time and method identification at the beginning and end of the Java method call, and set the data to the thread variable; in this way, when the top layer is called When the end of the me...

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 Patents(China)
IPC IPC(8): G06F9/44
Inventor 汤鑫斌
Owner ALIBABA GRP HLDG 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