PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

GetJobsExtendedStats

This function is currently broken

This function returns a table containing extended statistics on the jobs performed by the task scheduler.

In computing, a task scheduler is a system responsible for executing key tasks at the appropriate intervals.

This function is currently broken and does not return the correct values. You can find live task scheduler statistics in the Task Scheduler window in Roblox Studio.

The first entry in the table returned is a reference dictionary containing the statistics (or headings) available. It is in the following format:

{
    ["name"] = "name",
    ["time.average"] = "time.average",
    ["time.variance"] = "time.variance",
    ["time.samples"] = "time.samples",
    ["interval.average"] = "interval.average",
    ["interval.variance"] = "interval.variance",
    ["interval.samples"] = "interval.samples",
    ["dutyfraction"] = "dutyfraction"
}

The subsequent entries in the table returned are dictionaries containing the above statistics for jobs performed by the task scheduler. For example:

{
    ["name"] = "Heartbeat",
    ["time.average"] = 0,
    ["time.variance"] = 0,
    ["time.samples"] = 0,
    ["interval.average"] = 0,
    ["interval.variance"] = 0,
    ["interval.samples"] = 0,
    ["dutyfraction"] = 0
}

See also

  • TaskScheduler
  • DataModel/GetJobsInfo
  • DataModel/GetJobIntervalPeakFraction
  • DataModel/GetJobTimePeakFraction

Returns

Return Type Summary

A table containing statistics on the jobs performed by the task scheduler, see above for the format


Code Samples


DataModel:GetJobsExtendedStats

Here is an example of iterating over the job info.

local jobInfo = game:GetJobsExtendedStats()
local jobTitles = jobInfo[1]

table.remove(jobInfo,1)

local divider = string.rep("-",120)
print(divider)
warn("JOB INFO:")
print(divider)

for _,job in pairs(jobInfo) do
	for jobIndex,jobValue in pairs(job) do
		local jobTitle = jobTitles[jobIndex]
		warn(jobTitle,"=",jobValue)
	end
	print(divider)
end