Difference between revisions of "Core.profilerReport"

From GiderosMobile
(----)
Line 1: Line 1:
__NOTOC__
+
'''Available since:''' Gideros 2017.8<br/>
<languages />
+
'''Class:''' [[Core]]<br/>
'''<translate>Available since</translate>:''' Gideros 2017.8<br/>
+
 
'''<translate>Class</translate>:''' [[Special:MyLanguage/Core|Core]]<br/>
+
=== Description ===
=== <translate>Description</translate> ===
+
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:
<translate>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  
*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</translate>
+
 
 
<source lang="lua">
 
<source lang="lua">
 
(table) = Core.profilerReport()
 
(table) = Core.profilerReport()
 
</source>
 
</source>
=== <translate>Return values</translate> ===
+
 
'''<translate>Returns</translate>''' (table) <translate>table with profiling data</translate><br/>
+
=== Return values ===
 +
'''Returns''' (table) table with profiling data<br/>
 +
 
 +
----
 +
{{Special:PrefixIndex/Core}}
 +
<br/>

Revision as of 17:55, 2 December 2019

Available since: Gideros 2017.8
Class: Core

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()

Return values

Returns (table) table with profiling data