engine.profiler Functions
Profiler functions allow using counters in your code in the following manner:
begin("my_counter");
// ...code to profile...
end();
Counters can be nested.
Profiler Class
Members
float end ()
Stops the last activated counter and returns its value.Return value
Value of the counter in milliseconds.int isEnabled ()
Returns a value indicating if the profiler is enabled.Return value
1 if the profiler is enabled; otherwise, 0.float getValue (string name)
Returns a value of the specified counter.Arguments
- string name - The name of the counter.
Return value
Value of the counter in milliseconds.void setEnabled (int enabled)
Arguments
- int enabled
Last update: 2017-07-03
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)