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...

Full description

Saved in:
Bibliographic Details
Main Authors ZHU YAN, CHEN JINZHONG, ZOU WENJING, CHEN SHUANGHOU
Format Patent
LanguageChinese
English
Published 03.10.2023
Subjects
Online AccessGet full text

Cover

Loading…
More Information
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