SpringAop-based system performance monitoring method and device, and electronic device
A system performance and performance technology, applied in hardware monitoring, electrical digital data processing, instruments, etc., can solve the problem of low efficiency of system performance monitoring
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0060] The implementation environment of the present invention may be an electronic device, such as a smart phone, a tablet computer, or a desktop computer.
[0061] figure 1 It is a structural schematic diagram of a device disclosed in an embodiment of the present invention. The apparatus 100 may be the above-mentioned electronic equipment. Such as figure 1 As shown, apparatus 100 may include one or more of the following components: processing component 102 , memory 104 , power component 106 , multimedia component 108 , audio component 110 , sensor component 114 , and communication component 116 .
[0062] The processing component 102 generally controls the overall operations of the device 100, such as operations associated with display, phone calls, data communications, camera operations, and recording operations, among others. The processing component 102 may include one or more processors 118 to execute instructions to complete all or part of the steps of the methods de...
Embodiment 2
[0071] see figure 2 , figure 2 It is a schematic flowchart of a SpringAop-based system performance monitoring method disclosed in the embodiment of the present invention. Such as figure 2 The shown system performance monitoring method based on SpringAop may include the following steps:
[0072] 201. Define a SpringAop-based performance monitoring interceptor.
[0073] In the embodiment of the present invention, SpringAop is an important component in Spring. Among them, AOP (Aspect Oriented Programming, aspect-oriented programming) is used to extract the common features of different methods (such as security verification, log records, etc.) to form an aspect, so that the aspect can be plugged into the business logic when the system is running. Thereby reducing the duplication of code in the system and effectively reducing the coupling degree of different modules in the system. It should be noted that a program flow includes multiple connection points, and the connection...
Embodiment 3
[0094] see image 3 , image 3 It is a schematic flowchart of another SpringAop-based system performance monitoring method disclosed in the embodiment of the present invention. Such as image 3 Shown, this system performance monitoring method based on SpringAop can comprise the following steps:
[0095] 301. Define a SpringAop-based performance monitoring interceptor.
[0096] 302. Associate the performance monitoring interceptor with all methods to be intercepted in the monitored system.
[0097] 303. When the call operation to the target method to be intercepted is detected, before executing the target method to be intercepted, use the performance monitoring interceptor to increase the number of historical calls of the target method to be intercepted to obtain the cumulative number of calls of the target method to be intercepted, And record the start timestamp.
[0098] 304. Execute the target to-be-intercepted method.
[0099] 305. If it is detected that the execution...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com