Program code hotspot analysis method
The invention relates to hotspot analysis, in particular to a hotspot analysis method for a program code, which comprises the following steps: starting hotspot analysis, and distributing a memory space for storing a periodic sampling result; binding an intra-core timer event to a specified interrupt...
Saved in:
Main Authors | , , , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
03.10.2023
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The invention relates to hotspot analysis, in particular to a hotspot analysis method for a program code, which comprises the following steps: starting hotspot analysis, and distributing a memory space for storing a periodic sampling result; binding an intra-core timer event to a specified interrupt number, and registering a corresponding interrupt service program; starting an intra-core timer, periodically triggering interruption by the intra-core timer, and executing an interruption service program; obtaining a return address of the current function, judging whether the return address is the same as the return address of the interrupt service program, and writing the return address of the current function into a memory according to a judgment result; reading the address in the memory, obtaining executed function information according to the program PC address, analyzing a hotspot code snippet of the current program, and displaying a hotspot analysis result; according to the technical scheme, the defects tha |
---|---|
Bibliography: | Application Number: CN202310840074 |