$Stat: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (remove Sys Man guide)
m (add link)
 
Line 16: Line 16:
==Example==
==Example==
<p class="code">  ...
<p class="code">  ...
%X = $STAT('CPU','USER')
%x = $stat('CPU','USER')
   ...
   ...
</p>
</p>
==See also==
<ul>
<li>[[UserStatistics class]] </li>
</ul>


[[Category:SOUL $functions]]
[[Category:SOUL $functions]]

Latest revision as of 22:53, 25 January 2016

The $Stat function returns the current value of any user final (LOGOUT) or partial statistic. This function is useful for determining which resources are used by various portions of a request.

Syntax

The format of the $Stat function is:

$Stat(statistic,'user')

Where:

  • statistic specifies the name of the user statistic to be returned.
  • user specifies the return of a user final or partial statistic.

Example

... %x = $stat('CPU','USER') ...

See also