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

Code running monitoring method and device, equipment and storage medium

A technology of operation monitoring and coding, which is applied in the computer field, can solve the problems of increasing the coding workload and coding complexity of weaving codes, increasing the maintenance cost of weaving codes, etc., and achieve the goals of reducing maintenance costs, efficient monitoring, and reducing code complexity Effect

Pending Publication Date: 2022-01-07
北京博睿宏远数据科技股份有限公司
View PDF2 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the order of magnitude of the method to be AOP is large, the coding workload and coding complexity of the weaving code will be greatly increased, and the maintenance cost of the weaving code will also be increased.

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
  • Code running monitoring method and device, equipment and storage medium
  • Code running monitoring method and device, equipment and storage medium
  • Code running monitoring method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the invention are shown in the drawings, it should be understood that the invention may be embodied in various forms and should not be construed as limited to the embodiments set forth herein; A more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are for exemplary purposes only, and are not intended to limit the protection scope of the present invention.

[0025] It should be understood that the various steps described in the method implementation manners of the present invention may be executed in different orders, and / or executed in parallel. Additionally, method embodiments may include additional steps and / or omit performing illustrated steps. The scope of the invention is not limited in this respect.

[0026] As 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
Login to View More

PUM

No PUM Login to View More

Abstract

An embodiment of the invention discloses a code running monitoring method and device, equipment and a storage medium. The method comprises the steps of: acquiring a target class to be subjected to aspect oriented programming (AOP), and determining at least one target method in the target class; acquiring target objects corresponding to the target methods, and acquiring target proxy functions matched with the target objects by conducting dynamic proxy on the target objects; and monitoring the operation condition of each target proxy function to obtain an operation monitoring result, and determining the operation condition of each target method according to the operation monitoring result. According to the code running monitoring method and device provided by the embodiment of the invention, the target objects corresponding to the method to be monitored are acquired, and unified dynamic proxy is performed on the target objects, so that efficient monitoring of a large number of methods is realized, meanwhile, the code quantity and the code complexity of weaving codes required to be written during AOP are reduced, and the maintenance cost of the weaving codes is further reduced.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of computers, and in particular to a code running monitoring method, device, equipment and storage medium. Background technique [0002] Through aspect oriented programming (Aspect Oriented Programming, AOP) to perform code insertion on methods in a class, you can monitor or intercept some characteristic methods or all methods in a class, which is of great significance for improving method rewriting or collection efficiency . [0003] At present, in the existing AOP method, if it is necessary to perform method injection on some characteristic methods, or all methods in the entire class, due to the characteristics of bytecode static storage, for each method that needs to weave logic The corresponding weaving code needs to be written separately. And when the order of magnitude of the method to be AOP is large, the coding workload and coding complexity of the weaving code will be gre...

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
IPC IPC(8): G06F11/30
CPCG06F11/302G06F11/3051Y02D10/00
Inventor 袁耀辉朱家锐
Owner 北京博睿宏远数据科技股份有限公司
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