Difference between revisions of "SET PROFILE"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Control profiling
 
Control profiling
 
  
 
==Syntax==
 
==Syntax==
Line 7: Line 6:
  
 
SET PROFILE ON | OFF
 
SET PROFILE ON | OFF
 
  
 
==See Also==
 
==See Also==
[[CLEAR PROFILE]], [[DEBUG]], [[DISPLAY PROFILE]], [[DO]], [[LIST PROFILE]], [[PROFILE]], [[SET COMPILE]], [[SET DCACHE]], [[SET DEVELOPMENT]], [[SET ICACHE]], [[SET IOLOGGING]], [[SET IOSTATS]], [[SET LOCKTYPE]], [[SET NETWORK]], [[SET REPLICATION]], [[SET SYSLOGGING]]
+
[[CLEAR PROFILE]], [[DISPLAY PROFILE]], [[DO]], [[LIST PROFILE]], [[PROFILE]], [[SET COMPILE]], [[SET DCACHE]], [[SET ICACHE]], [[SET IOLOGGING]], [[SET IOSTATS]]
 
+
  
 
==Description==
 
==Description==
 
The SET PROFILE command controls Recital's profiling functionality.  Profiling produces 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 profiling information can be output to the screen, a file or a printer using the LIST PROFILE and DISPLAY PROFILE commands.
 
The SET PROFILE command controls Recital's profiling functionality.  Profiling produces 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 profiling information can be output to the screen, a file or a printer using the LIST PROFILE and DISPLAY PROFILE commands.
 
  
 
====TO <command>, <id> [, <description>]====
 
====TO <command>, <id> [, <description>]====
 
SET PROFILE TO <command>, <id> [, <description>] is used to start, stop or update the profiling statistics.
 
SET PROFILE TO <command>, <id> [, <description>] is used to start, stop or update the profiling statistics.
 
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 34: Line 29:
 
|<description>||optional descriptive comment
 
|<description>||optional descriptive comment
 
|}
 
|}
 
  
 
====ON | OFF====
 
====ON | OFF====
 
SET PROFILE ON | OFF enables or disables profiling.  When SET PROFILE is OFF, no statistics are logged.
 
SET PROFILE ON | OFF enables or disables profiling.  When SET PROFILE is OFF, no statistics are logged.
 
  
 
The PROFILE command can also be used to log statistics for a particular command or an entire program or application and will automatically list the statistics to the screen.  CLEAR PROFILE is used to reset the log.
 
The PROFILE command can also be used to log statistics for a particular command or an entire program or application and will automatically list the statistics to the screen.  CLEAR PROFILE is used to reset the log.
 
  
 
==Example==
 
==Example==
Line 49: Line 41:
 
//...
 
//...
 
</code>
 
</code>
 
 
==Products==
 
Recital Server, Recital
 
  
 
[[Category:Documentation]]
 
[[Category:Documentation]]

Revision as of 06:14, 12 December 2012

Purpose

Control profiling

Syntax

SET PROFILE TO <command>, <id> [, <description>]

SET PROFILE ON | OFF

See Also

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

Description

The SET PROFILE command controls Recital's profiling functionality. Profiling produces 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 profiling information can be output to the screen, a file or a printer using the LIST PROFILE and DISPLAY PROFILE commands.

TO <command>, <id> [, <description>]

SET PROFILE TO <command>, <id> [, <description>] is used to start, stop or update the profiling statistics.

Keyword Description
<command> "start" - start a new profile for this <id>

"stop" - stop the profile for this <id>

"update" - update an existing profile for this <id>

<id> a unique reference for the profile of up to 10 characters.
<description> optional descriptive comment

ON | OFF

SET PROFILE ON | OFF enables or disables profiling. When SET PROFILE is OFF, no statistics are logged.

The PROFILE command can also be used to log statistics for a particular command or an entire program or application and will automatically list the statistics to the screen. CLEAR PROFILE is used to reset the log.

Example

set profile on
set profile to "start", "myapp", "Start of update section"
//...