Turley has given us a Christmas present!
You can pick-up your present here.
It's so good I am going to reveal what is inside: A new performance monitor for keeping an eye on our scripts.
From the core-changes.txt:
Code: Select all
-- POL099 --
12-23-2017 Turley:
Added: os:PerformanceMeasure(delta_seconds, max_scripts)
Monitors for given number of seconds the instructions of all scripts. Returns:
struct with the following members:
total_number_observed - number of scripts alive in the timespan
total_instructions - sum of all instructions of the observed scripts
scripts - array of structs (max number is given max_scripts param) sorted by instructions amount
each scripts entry has the following members:
name - script name, if attached with name/npctemplate
instructions - number of executed instructions
pid - PID of the script
percent - percent of the total instruction amount