15 Statement Flow Analyser

sfarpt

The sfarpt program analyses SFA files and produces the results on stdout.

Syntax

The default is a line report.

Options

-f
A file report is to be created. All other options to be ignored.
-s
A segment report is to be created.
-l percent
All lines with elapsed time less than percent are to be ignored (default = 0%).
-g percent
All lines with elapsed time greater than percent are to be ignored (default = 100%)
-b line
The analysis is to begin at line number (line report only).
-e line
The analysis is to end at line number. (line report only).
-n
No page header to be printed.
Example listing sfarpt DBMAP1.SFA

GENERIC SFARPT  (C) COPYRIGHT MARXMEIER SOFTWARE AG 2002 (A.03.00)

------------------------------------------------------------------------

   STATEMENT FLOW ANALYZER - LINE REPORT

   File name            				: DBMAP1
   Ignored less than   			 	:   2.00 % execution time
   Ignored greater than 				: 100.00 % execution time
   Beginning line number				: 0
   End line number      				: 32767

   Total execution time 				: 1.54 Seconds
   Number of lines      				: 48
   Executed lines       				: 79.17 %

------------------------------------------------------------------------


------------------------------------------------------------------------
Segment        			: #1, main
Times loaded   			: 1
Eecution time  			: 1.64 sec (106.49%)
Number lines   			: 48
Executed lines 			: 38

LINE					EXECUTION     
NO    	HISTOGRAM    				SECONDS	   % RATE COUNT  AVG
----- 	------------------------------ --------- 	------ ------ -------
 1110 	**************************  				0.57       37.01      1    0.57
 1230 	***********  				0.25       16.23     26    0.00
 1260 	*				0.04        2.60     25    0.00
 1280 	******************************	0.64       41.56     25    0.02
 1380 	*				0.04        2.60      1    0.04
Example listing sfarpt -l2.0 DBMAP1.SFA

GENERIC SFARPT  (C) COPYRIGHT MARXMEIER SOFTWARE AG 2002 (A.03.00)

------------------------------------------------------------------------

   STATEMENT FLOW ANALYZER - LINE REPORT

   File name				: DBMAP1
   Ignored less than				:   0.00 % execution time
   Ignored greater than				: 100.00 % execution time
   Beginning line number				: 0
   End line number      				: 32767

   Total execution time 				: 1.64 Seconds
   Number of lines      				: 48
   Executed lines       				: 79.17 %

------------------------------------------------------------------------


------------------------------------------------------------------------
Segment        			: #1, main
Times loaded   			: 1
Eecution time  			: 1.64 sec (100.00%)
Number lines   			: 48
Executed lines 			: 38

LINE                                 EXECUTION     
NO    HISTOGRAM                        SECONDS   % RATE  COUNT  AVG
----- ------------------------------     --------- ------ ------ -------
 1000                                     0.00   0.00      1    0.00
 1010                                     0.00   0.00      1    0.00
 1020                                     0.00   0.00      1    0.00
 1030                                     0.00   0.00      1    0.00
 1040                                     0.00   0.00      1    0.00
 1045                                     0.00   0.00      1    0.00
 1050                                     0.00   0.00      1    0.00
 1060                                     0.00   0.00      1    0.00
 1070                                     0.00   0.00      1    0.00
 1080                                     0.01   0.61      1    0.01
 1090                                     0.00   0.00      1    0.00
 1100                                     0.00   0.00      1    0.00
 1110 **************************           0.57  37.76      1    0.57
 1120                                     0.00   0.00      1    0.00
 1130                                     0.00   0.00      1    0.00
 1140                                     0.00   0.00      1    0.00
 1150                                     0.00   0.00      1    0.00
 1160                                     0.00   0.00      1    0.00
 1170                                     0.00   0.00      1    0.00
 1171                                     0.01   0.61      1    0.01
 1180                                     0.01   0.61      1    0.01
 1190                                     0.02   1.22      1    0.02
 1200                                     0.00   0.00      1    0.00
 1210                                     0.00   0.00      1    0.00
 1220                                     0.00   0.00      1    0.00
 1230 ***********                          0.25  16.23     26    0.00
 1240                                     0.02   1.22     26    0.00   
 1250                                     0.01   0.61     25    0.00 
 1260 *                                   0.04   2.44     25    0.00
 1270                                     0.00   0.00     25    0.00
 1280 ******************************        0.64  39.02     25    0.02
 1290                                     0.00   0.00     25    0.00
 1300                                     0.00   0.00     25    0.00
 1310                                     0.00   0.00     25    0.00
 1320                                     0.00   0.00     25    0.00
 1330                                     0.02   1.22     25    0.00
 1340                                     0.00   0.00     25    0.00
 1350                                     0.00   0.00      0    0.00
 1360                                     0.00   0.00      0    0.00 
 1370                                     0.00   0.00      0    0.00
 1380 *                                   0.04   2.44      1    0.04
 1390                                     0.00   0.00      0    0.00
 1400                                     0.00   0.00      0    0.00
 1410                                     0.00   0.00      0    0.00
 1420                                     0.00   0.00      0    0.00
 1430                                     0.00   0.00      0    0.00
 1440                                     0.00   0.00      0    0.00
 1450                                     0.00   0.00      0    0.00
Example listing sfarpt -b1070 -e1230 DBMAP1.SFA

GENERIC SFARPT  (C) COPYRIGHT MARXMEIER SOFTWARE AG 2002 (A.03.00)

------------------------------------------------------------------------

   STATEMENT FLOW ANALYZER - LINE REPORT

   File name            : DBMAP1
   Ignored less than    :   0.00 % execution time
   Ignored greater than : 100.00 % execution time
   Beginning line number: 1070
   End line number      : 1230

   Total execution time : 0.87 Seconds
   Number of lines      : 48
   Executed lines       : 79.17 %

------------------------------------------------------------------------


------------------------------------------------------------------------
Segment        : #1, main
Times loaded   : 1
Execution time : 1.64 sec (188.51%)
Number lines   : 48
Executed lines : 38

LINE                                 EXECUTION
NO    HISTOGRAM                      SECONDS   % RATE COUNT  AVG
----- ----------------------------- --------- ------ ------ -------
 1070                                    0.00   0.00      1    0.00
 1080                                    0.01   1.15      1    0.01
 1090                                    0.00   0.00      1    0.00
 1100                                    0.00   0.00      1    0.00
 1110 ******************************     0.57  65.52      1    0.57
 1120                                    0.00   0.00      1    0.00
 1130                                    0.00   0.00      1    0.00
 1140                                    0.00   0.00      1    0.00
 1150                                    0.00   0.00      1    0.00
 1160                                    0.00   0.00      1    0.00
 1170                                    0.00   0.00      1    0.00
 1171                                    0.01   1.15      1    0.01
 1180                                    0.01   1.15      1    0.01
 1190 *                                  0.02   2.30      1    0.02
 1200                                    0.00   0.00      1    0.00
 1210                                    0.00   0.00      1    0.00
 1220                                    0.00   0.00      1    0.00
 1230 *************                      0.23  28.74     26    0.00
Example listing sfarpt -f DBMAP*

GERERIC SFARPT  (C) COPYRIGHT MARXMEIER SOFTWARE AG 2002 (A.03.00)

------------------------------------------------------------------

   STATEMENT FLOW ANALYZER - FILE REPORT

   Ignored less than    :   0.00 % execution time
   Ignored greater than : 100.00 % execution time

   Number of files      : 5
   Total execution time : 11.09 Seconds
   Number of lines      : 375
   Executed lines       : 66.13 %

------------------------------------------------------------------

FILE                                   EXECUTION        LINES
NAME     HISTOGRAM                      SECONDS  % RATE EXEC  % RATE
-------- ----------------------------  --------- ------ ----- ------
DBMAP1   ********                           1.64  14.79    38  79.17
DBMAP2   ***************                    2.88  25.97    61  84.72
DBMAP3   ******************************     5.58  50.32    71  70.30
DBMAP4   **                                 0.52   4.69    43  59.72
DBMAP5   **                                 0.47   4.24    35  42.68
Example listing sfarpt -s DBMAP*

GENERIC SFARPT  (C) COPYRIGHT MARXMEIER SOFTWARE AG 2002 (A.03.00)

-----------------------------------------------------------------

   STATEMENT FLOW ANALYZER - FILE REPORT

   Ignored less than    :   0.00 % execution time
   Ignored greater than : 100.00 % execution time

   Number of files      : 5
   Number of segments   : 5
   Total execution time : 11.09 Seconds
   Number of lines      : 375
   Executed lines       : 66.13 %

------------------------------------------------------------------

FILE/SEGMENT                              EXECUTION        LINES
NAME                 HISTOGRAM            SECONDS   % RATE EXEC  % RATE
----------------     ----------------     -------   -----  ----  -----

DBMAP1
main                 *****                  1.64    14.79   38   79.17

DBMAP2
main                 **********             2.88    25.97   61   84.72

DBMAP3
main                 ********************   5.58    50.32   71   70.30

DBMAP4
main                 *                      0.52    4.69    43   59.72

DBMAP5
main                 *                      0.47    4.24    35   42.68

Eloquence Language Manual - 19 DEC 2002