UserStatistics (Daemon function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
mNo edit summary
Line 35: Line 35:
</pre>
</pre>


[[Category:Daemon class|UserStatistics]]
[[Category:Daemon methods|UserStatistics]]
[[Category:System methods]]
[[Category:System methods]]

Revision as of 17:54, 2 December 2010

Stats for daemon object thread.

UserStatistics is a member of the Daemon class

This method 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 object. For information about the user statistics that are returned and how to extract data from the returned object see UserStatistics class.

UserStatistics Syntax

%ustat = %daem:UserStatistics

Syntax Terms

%ustat
A UserStatistics object variable to contain the returned statistics.
%daem
A previously defined Daemon object.

Usage Notes

  • The UserStatistics method is available as of Sirius Mods Version 7.3.
  • The daemon cannot be running asynchronously when this method is invoked.

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