Difference between revisions of "Core.profilerReport"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2017.8<br/> === Description === Returns an associative array of tables describing CPU usage of lua functions. Each table in the array...") |
|||
Line 8: | Line 8: | ||
*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 | ||
<source lang="lua"> | <source lang="lua"> | ||
− | (table) | + | (table) = Core.profilerReport() |
</source> | </source> | ||
'''Returns''' (table) table with profiling data<br/> | '''Returns''' (table) table with profiling data<br/> |
Revision as of 10:17, 23 August 2018
Available since: Gideros 2017.8
Description
Returns an associative array of tables describing CPU usage of lua functions. Each table in the array is indexed by an 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
(table) = Core.profilerReport()
Returns (table) table with profiling data