Difference between revisions of "Core.profilerReport"
From GiderosMobile
m |
|||
Line 3: | Line 3: | ||
=== Description === | === Description === | ||
− | Returns an associative array of tables describing CPU usage of lua functions. Each table in the array is indexed by | + | Returns an associative array of tables describing CPU usage of lua functions. |
+ | <source lang="lua"> | ||
+ | (table) = Core.profilerReport() | ||
+ | </source> | ||
+ | |||
+ | Each table in the array is indexed by a unique function id and has the following content: | ||
*name - Name of the function | *name - Name of the function | ||
*time - Total time spent in the function (seconds) | *time - Total time spent in the function (seconds) | ||
*count - Number of times this function was called | *count - Number of times this function was called | ||
*callers - A table containing the same information has above for each function which called this one | *callers - A table containing the same information has above for each function which called this one | ||
− | |||
− | |||
− | |||
− | |||
=== Return values === | === Return values === | ||
'''Returns''' (table) table with profiling data<br/> | '''Returns''' (table) table with profiling data<br/> | ||
− | |||
{{Core}} | {{Core}} |
Revision as of 17:39, 18 January 2023
Available since: Gideros 2017.8
Class: Core
Description
Returns an associative array of tables describing CPU usage of lua functions.
(table) = Core.profilerReport()
Each table in the array is indexed by a unique function id and has the following content:
- name - Name of the function
- time - Total time spent in the function (seconds)
- count - Number of times this function was called
- callers - A table containing the same information has above for each function which called this one
Return values
Returns (table) table with profiling data