![]() |
Powered by QM on a Rpi server |
|
KnowledgeBase 00046: The Hot Spot MonitorThis article was originally published as a Tip of the Week. The Hot Spot Monitor is a tool that enables developers to identify performance bottlenecks in applications. Monitoring Own ProcessThe hot spot monitor is enabled with HSM ONThen, after running the program that is to be analysed, accumulated data can be displayed with HSM DISPLAYwhere the DISPLAY keyword is optional. The result is a report such as Calls.. CP time... Program 1 0.000 !SCREEN 13 0.060 $CPROC 18 0.000 !PARSER 1 0.000 PRINT.DEFERED 4 0.010 $SETPTR 1 0.000 CHARGE.TOTAL 19 0.034 CALC.INVOICE.VALUE 24 0.000 ADD.MONTH 3 0.000 REVERSE 1 0.000 C:\QM\BP.OUT\PROC 6 17.040 C:\QM\BP.OUT\FINANCE 19 14.010 C:\QM\BP.OUT\INVOICE 1 0.800 C:\QM\BP.OUT\CHECK_EX 1 0.000 $HSMFrom this example, if we need to improve performance by ten percent, there is little point in looking at anything other than the FINANCE and INVOICE programs. Displaying accumulated data does not reset the counters. It is therefore possible to repeat the display periodically for a cumulative report. Monitoring is terminated with HSM OFFafter which the accumulated data remains available until the user logs out. Monitoring Another ProcessIt is also possible to monitor another process, typically a phantom. HSM ON USER nThe accumulated data is displayed using HSM DISPLAY USER nMonitoring can only be terminated from within the monitored process. Related ArticlesNone. |