第三十八章 使用^%SYS.MONLBL检查例程性能
例程^%SYS.MONLBL为监视器工具提供用户界面。该实用程序提供了一种方法来诊断在例程中执行选定代码所花费的时间,从而帮助识别特别耗费资源的代码行。它是现有监视器实用程序的扩展,可通过^PerfMon和%Monitor系统程序包类访问。由于这些实用程序共享相同的内存分配,因此一次只能在IRIS实例上运行其中一个实用程序。
调用逐行监视例程
如果在调用^%SYS.MONLBL时监视器没有运行,则例程会显示一条警告消息,并提供启动监视器或检查内存要求的选项。例如:
%SYS>Do ^%SYS.MONLBL
WARNING ! Starting the line-by-line monitor will enable the
collection of statistics for *every* line of code executed by
the selected routines and processes. This can have a significant
impact on the performance of a system, and it is recommended
that you do this on a 'test' system.
.png)



