Difference between revisions of "DISPLAY PROFILE"

From Lianjapedia
Jump to: navigation, search
m (Text replace - "Recital" to "Lianja")
(Example)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Displays input/output, locking and procedure call statistics for profiled code
 
Displays input/output, locking and procedure call statistics for profiled code
 
  
 
==Syntax==
 
==Syntax==
DISPLAY PROFILE
+
DISPLAY PROFILE [TO FILE <.txt filename> | (<expC>)]
 
+
  
 
==See Also==
 
==See Also==
[[CLEAR PROFILE]], [[DEBUG]], [[DISPLAY IOSTATS]], [[DO]], [[Function Keys]], [[IOSTATS()]], [[LIST IOSTATS]], [[LIST PROFILE]], [[PROFILE]], [[SET COMPILE]], [[SET DCACHE]], [[SET DEVELOPMENT]], [[SET ICACHE]], [[SET IOLOGGING]], [[SET IOSTATS]], [[SET LOCKTYPE]], [[SET NETWORK]], [[SET PROFILE]], [[SET REPLICATION]], [[SET SYSLOGGING]]
+
[[CLEAR PROFILE]], [[DISPLAY IOSTATS]], [[DO]], [[IOSTATS()]], [[LIST IOSTATS]], [[LIST PROFILE]], [[PROFILE]], [[SET COMPILE]], [[SET DCACHE]], [[SET ICACHE]], [[SET IOLOGGING]], [[SET IOSTATS]], [[SET PROFILE]]
 
+
  
 
==Description==
 
==Description==
 
The DISPLAY PROFILE command works in conjunction with the PROFILE and SET PROFILE commands to list input/output, locking and procedure call statistics for a particular application or part of an application.  This information can be used for analysis to enable application optimization and general performance tuning.
 
The DISPLAY PROFILE command works in conjunction with the PROFILE and SET PROFILE commands to list input/output, locking and procedure call statistics for a particular application or part of an application.  This information can be used for analysis to enable application optimization and general performance tuning.
 
DISPLAY differs from the LIST command in that it pauses every 17 lines until a key is pressed. You can cancel any further output at this point by pressing the [ABANDON] key. Where the output is sent to a file or printer, the pause is disabled.
 
 
  
 
====Profiler environment settings====
 
====Profiler environment settings====
Line 21: Line 15:
  
 
* [[SET NETWORK|cluster]]
 
* [[SET NETWORK|cluster]]
* [[SET REPLICATION|replication]]
+
* replication
 
* [[SET IOLOGGING|iologging]]
 
* [[SET IOLOGGING|iologging]]
* [[SET SYSLOGGING|syslogging]]
+
* syslogging
 
* [[SET IOSTATS|iostats]]
 
* [[SET IOSTATS|iostats]]
 
* [[SET DCACHE|dcache]]
 
* [[SET DCACHE|dcache]]
Line 31: Line 25:
 
* [[SET DEVELOPMENT|development]]
 
* [[SET DEVELOPMENT|development]]
 
* [[SET COMPILE|compile]]
 
* [[SET COMPILE|compile]]
* [[SET LOCKTYPE|locktype]]
+
* locktype
 
* Preallocated symbols
 
* Preallocated symbols
 
* Preallocated symbols used
 
* Preallocated symbols used
 
* Preallocated symbols available
 
* Preallocated symbols available
 
  
 
====Profiler data====
 
====Profiler data====
Line 55: Line 48:
 
* procedure calls
 
* procedure calls
 
* function calls
 
* function calls
 
  
 
====Profiler procedure calls====
 
====Profiler procedure calls====
Line 63: Line 55:
 
* Number of times called
 
* Number of times called
 
* Time in procedure (second, milliseconds, microseconds)
 
* Time in procedure (second, milliseconds, microseconds)
 
  
 
====Output keywords====
 
====Output keywords====
  
 
+
{| class="wikitable" width="100%"
{| class="wikitable"
+
!width="15%"|Keyword||Description
!Keyword||Description
+
 
|-
 
|-
|TO <file>||The display output will be sent to the specified file.  The filename can be substituted with a <expC>, enclosed in round brackets, which returns a valid filename.  If no file extension is specified, then ".txt" will be used.  The command SET PAGELENGTH governs the output file pagination and SET PAGEWIDTH defines the width of each page.  Page numbers are centered on the bottom of the page according to width.
+
|valign="top"|TO <file>||The display output will be sent to the specified file.  The filename can be substituted with a <expC>, enclosed in round brackets, which returns a valid filename.  If no file extension is specified, then ".txt" will be used.
|-
+
|TO PRINT||The display output will be sent to a printer.  The TO PRINT option will default to a local printer unless the command SET PRINTER TO \\SPOOLER is issued.  The print request will then be spooled to the system printer, which is defined by the environment variable DB_PRINT.
+
 
|-
 
|-
 
|}
 
|}
 
  
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
profile do myapp
+
profile myapp
 
display profile
 
display profile
 
</code>
 
</code>
 
 
==Products==
 
Lianja Server, Lianja
 
  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Performance and Optimization]]
 
[[Category:Performance and Optimization]]
[[Category:Performance and Optimization Commands]]
 

Latest revision as of 05:40, 8 August 2019

Purpose

Displays input/output, locking and procedure call statistics for profiled code

Syntax

DISPLAY PROFILE [TO FILE <.txt filename> | (<expC>)]

See Also

CLEAR PROFILE, DISPLAY IOSTATS, DO, IOSTATS(), LIST IOSTATS, LIST PROFILE, PROFILE, SET COMPILE, SET DCACHE, SET ICACHE, SET IOLOGGING, SET IOSTATS, SET PROFILE

Description

The DISPLAY PROFILE command works in conjunction with the PROFILE and SET PROFILE commands to list input/output, locking and procedure call statistics for a particular application or part of an application. This information can be used for analysis to enable application optimization and general performance tuning.

Profiler environment settings

The first part of the display shows current settings:

Profiler data

Profiler data information is then shown for each profiled code section

  • count
  • icachereads
  • icachewrites
  • ireads
  • iwrites
  • readlocks
  • writelocks
  • unlocks
  • disk reads
  • disk writes
  • elapsed time
  • disk operations
  • locking operations
  • procedure calls
  • function calls

Profiler procedure calls

The final part of the display shows procedure call statistics:

  • Name of procedure
  • Number of times called
  • Time in procedure (second, milliseconds, microseconds)

Output keywords

Keyword Description
TO <file> The display output will be sent to the specified file. The filename can be substituted with a <expC>, enclosed in round brackets, which returns a valid filename. If no file extension is specified, then ".txt" will be used.

Example

profile myapp
display profile