getPerformanceStats | Multi Theft Auto: Wiki Skip to content

getPerformanceStats

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function returns performance information.

Syntax

​table table getPerformanceStats ( ​string category, [ ​string options = "", ​string filter = "" ] )
Required Arguments
  • category: Performance statistics category. If empty string is given, list of all categories is returned.See categories for more information.
Optional Arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use.

  • options (default: ""): Category specific ',' separated options. All categories supports 'h' option for help.
  • filter (default: ""): Case-sensitive filter used to select returned rows. Only 'name' column is filtered.

Returns

  • table table: value

Returns two tables. First contains column names. The second contains result rows. Each row is table of cells.

Code Examples

shared
local columns, rows = getPerformanceStats("")
outputChatBox(table.concat(columns, " "))
outputChatBox("----------------")
for i, row in ipairs(rows) do
outputChatBox(table.concat(row, " "))
end