logo
Powered by QM on a Rpi server
Home
About OpenQM
Sales and Downloads
Help and Support
About
Login

KnowledgeBase 00046: The Hot Spot Monitor

Last updated: 17 Feb 2017
Applies to: All versions
Search  
Top level index       Full Index Search Tips
Previous article     Next article

This 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 Process

The hot spot monitor is enabled with

   HSM ON 
Then, after running the program that is to be analysed, accumulated data can be displayed with
   HSM DISPLAY 
where 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  $HSM 
From 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 OFF 
after which the accumulated data remains available until the user logs out.


Monitoring Another Process

It is also possible to monitor another process, typically a phantom.

   HSM ON USER n
The accumulated data is displayed using
   HSM DISPLAY USER n
Monitoring can only be terminated from within the monitored process.


Related Articles

None.



Please tell us if this article was helpful
Very     Slightly     Not at all
Comments
Email (optional)