文章
· 一月 11, 2023 阅读大约需 4 分钟

第四十一章 使用^%SYS.MONLBL检查例程性能 - 逐行监控报告示例

第四十一章 使用^%SYS.MONLBL检查例程性能 - 逐行监控报告示例

本节包含 ^%SYS.MONLBL 例程生成的各种报告的示例:

Line-by-line Detail Report

Line-by-line Summary Report

Line-by-line Delimited Output Report

Line-by-line Procedure Level Report

Line-by-line Detail Report

以下是报告所选期刊实用程序的最小指标详细信息的示例,包括覆盖率分析。报告被发送到 monlbl_JRN_dtl.txt 文件,其中显示了一部分。

Line-by-Line Monitor

1.) Stop Monitor
2.) Pause Monitor
3.) Clear Counters
4.) Report - Detail
5.) Report - Summary
6.) Report - Delimited (CSV) Output
7.) Report - Procedure Level

Enter the number of your choice: 4
Include Coverage Analysis summary (Y/N)? y

The following routines have been executed during the run,
and have detail statistics available for them.
1) JRNDUMP
2) JRNOPTS
3) JRNSTART
4) JRNSWTCH
5) JRNUTIL
6) JRNUTIL2

Enter list of routines, or * for all
Routine number (*=All)? 1 - JRNDUMP
Routine number (*=All)? 2 - JRNOPTS
Routine number (*=All)? 5 - JRNUTIL
Routine number (*=All)?
FileName: monlbl_JRN_dtl.txt


Press RETURN to continue ...

对于所选例程的每一行,报告会显示行号、每个指标的计数以及该行代码的文本(如果源代码可用)。如果请求覆盖率分析,它会在每个选定的例程之后显示。


Routine ^JRNDUMP ... Line RtnLine Time TotalTime 1 0 0 0 JRNDUMP ;dump the contents... 2 0 0 0 /* . . . 85 0 0 0 n (l,usecluster) 86 3 0.000016 0.000016 i +$g(usecluster) d showlistclu(.l) q 87 3 0.000008 0.000008 s diroff=((3+12+1)+10+1) 88 3 0.000072 0.000072 s i="" f s i=$o(l(i)) q:i="" d 89 11 0.001542 0.001542 . w /cup(i+3,1),?3,$S($F(l(i),";")... 90 11 0.028125 0.028220 . w ?(3+12+1),l(i,"info"),?diroff... 91 11 0.000378 0.000895 . w $$GJrnPrefix(l(i)) 92 3 0.000027 0.000027 q 93 0 0 0 listjrn(f,list,n) ;list at most... . . . Total 582 17.258963 Total Lines = 579 Total Lines Hit = 100 Coverage Percentage = 17.27%

这是一个选定例程的部分显示。

Line-by-line Summary Report

以下是报告所选期刊实用程序(包括覆盖率分析)的最小指标摘要的示例。报告被发送到 monlbl_JRN_summ.txt 文件,其中显示了一部分。


Line-by-Line Monitor 1.) Stop Monitor 2.) Pause Monitor 3.) Clear Counters 4.) Report - Detail 5.) Report - Summary 6.) Report - Delimited (CSV) Output 7.) Report - Procedure Level Enter the number of your choice: 5 Include Coverage Analysis summary (Y/N)? Y FileName: monlbl_JRN_summ.txt Press RETURN to continue ...

该报告显示了每个选定的例程,其中包含线路、覆盖范围和时间的摘要。覆盖率最高的例程首先出现在列表中。



Routine Lines LinesHit Percent RtnLine Time JRNOPTS 109 60 55.05% 155 14.172230 JRNSWTCH 249 58 23.29% 69 0.926131 JRNDUMP 579 100 17.27% 582 17.265002 JRNSTART 393 23 5.85% 23 0.005541 JRNUTIL 872 39 4.47% 39 0.116995 JRNUTIL2 276 8 2.90% 56 0.006056 JRNCHECK 18 0 0.00% JRNCLFOR 416 0 0.00% JRNCLUREST 193 0 0.00% JRNCLUREST2 229 0 0.00% JRNINFO 263 0 0.00% JRNMARK 195 0 0.00% JRNRESTB 1315 0 0.00% JRNRESTC 1245 0 0.00% JRNRESTC2 540 0 0.00% JRNRESTCHELP 122 0 0.00% JRNRESTD 445 0 0.00% JRNRESTO 859 0 0.00% JRNROLL 827 0 0.00% JRNSTAT 62 0 0.00% JRNSTOP 119 0 0.00% JRNWUTL 235 0 0.00% TOTAL 22 rtns 9561 288 3.01% 924 31.591955

这是完整的示例报告。

讨论 (0)1
登录或注册以继续