PolCore() | POL Object Reference |
The PolCore object gives access to POL internals. It can be accessed by calling PolCore(), which is defined in the uo.em functionality module.
use uo; var core := polcore(); print( core.itemcount );
log_profile | set_priority_divide | clear_script_profile_counters |
bytes_sent | bytes_received | compiledate | compiletime |
events_per_min | instr_per_min | itemcount | mobilecount |
packages | priority_divide | running_scripts | script_profiles |
sysload | sysload_severity | systime | uptime |
version | verstr |
polcore().log_profile( clear ) | |
Function: | Logs script profiles to pol.log. Clears the script profile counters
if 'clear' is nonzero. Script profiles tell how many instructions each type of script has executed |
polcore().set_priority_divide( pridiv ) | |
Function: | Sets the script priority divider. If this value is set high, this has the effect that each script will run for less time before being scheduled out to run the next script. If system load is high, this can decrease client latency. |
polcore().clear_script_profile_counters() | |
Function: | Clears the script profile counters... |
polcore().bytes_sent | |
Meaning: | The number of bytes sent to all clients, not including HTTP connections |