UserStatistics (Daemon function): Difference between revisions
Jump to navigation
Jump to search
m (match syntax table to syntax template, tags and edits) |
mNo edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
<var>UserStatistics</var> returns the <var class="product">Model 204</var> User statistics for the thread associated with the daemon object. It is useful for metering a daemon or for determining table usage by a compilation done on the daemon thread. | <var>UserStatistics</var> returns the <var class="product">Model 204</var> User statistics for the thread associated with the daemon object. It is useful for metering a daemon or for determining table usage by a compilation done on the daemon thread. | ||
The method takes no arguments and returns a <var>[[UserStatistics class|UserStatistics]]</var> object. | The method takes no arguments and returns a <var>[[UserStatistics class|UserStatistics]]</var> class object. | ||
==Syntax== | ==Syntax== | ||
{{Template:Daemon:UserStatistics syntax}} | {{Template:Daemon:UserStatistics syntax}} | ||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>%userStatistics</th> | <tr><th>%userStatistics</th> | ||
<td>A <var> | <td>A <var>UserStatistics</var> class object variable to contain the returned statistics. </td></tr> | ||
<tr><th>daemon</th> | <tr><th>daemon</th> | ||
<td>A previously defined <var> | <td>A previously defined <var>Daemon</var> object.</td></tr> | ||
</table> | </table> | ||
Line 17: | Line 18: | ||
<ul> | <ul> | ||
<li>The daemon cannot be running asynchronously when this method is invoked. | <li>The daemon cannot be running asynchronously when this method is invoked. | ||
<li>The UserStatistics method is available as of <var class="product"> | <li>The <var>UserStatistics</var> method is available as of <var class="product">Sirius Mods</var> Version 7.3. | ||
<li>For information about the user statistics that are returned and how to extract data from the returned object, see [[UserStatistics class|"UserStatistics class"]]. | |||
</ul> | </ul> | ||
==Examples== | ==Examples== | ||
The following statements return the <code>%daemon</code> thread User statistics to the <code>%myDaemonStats</code> object, then print the non-zero statistics contained therein: | |||
<p class="code">%myDaemonStats = %daemon:userStatistics | <p class="code">%myDaemonStats = %daemon:userStatistics | ||
Print 'stats are: ' %myDaemonStats | Print 'stats are: ' %myDaemonStats | ||
</p | </p> | ||
==See also== | ==See also== | ||
{{Template:Daemon:UserStatistics footer}} | {{Template:Daemon:UserStatistics footer}} |
Latest revision as of 20:51, 8 July 2012
Statistics for the thread associated with this Daemon (Daemon class)
UserStatistics returns the Model 204 User statistics for the thread associated with the daemon object. It is useful for metering a daemon or for determining table usage by a compilation done on the daemon thread.
The method takes no arguments and returns a UserStatistics class object.
Syntax
%userStatistics = daemon:UserStatistics Throws DaemonLost
Syntax terms
%userStatistics | A UserStatistics class object variable to contain the returned statistics. |
---|---|
daemon | A previously defined Daemon object. |
Usage notes
- The daemon cannot be running asynchronously when this method is invoked.
- The UserStatistics method is available as of Sirius Mods Version 7.3.
- For information about the user statistics that are returned and how to extract data from the returned object, see "UserStatistics class".
Examples
The following statements return the %daemon
thread User statistics to the %myDaemonStats
object, then print the non-zero statistics contained therein:
%myDaemonStats = %daemon:userStatistics Print 'stats are: ' %myDaemonStats