Automatic deployment and automatic optimization method for monitoring time consumption of function

The invention relates to the field of communication, in particular to an automatic deployment and automatic optimization method for monitoring time consumption of a function. The method comprises the steps of searching all functions in a source program; screening out functions with hotspot features...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: LIU JUN, DENG MENGCAN, REN ENXIAN, HAN LIUBIN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention relates to the field of communication, in particular to an automatic deployment and automatic optimization method for monitoring time consumption of a function. The method comprises the steps of searching all functions in a source program; screening out functions with hotspot features according to preset conditions; inserting a program module for recording a starting clock period at the starting position of the function with the hot spot feature, and inserting a program module for recording an ending clock period at the ending position of the function with the hot spot feature; the difference value between the ending clock cycle number and the starting clock cycle number is the time consumed by one-time execution of the function; and acquiring accumulated time consumption of the function with the hot spot feature during the running period of the source program, and recording the accumulated time consumption to a specified position. The method is wide in applicability, convenient to operate and l