This page has been translated automatically.
Programming
Fundamentals
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

engine.profiler Functions

engine.profiler functions are used to create counters for engine profiler.

Allows using counters in your code in the following manner:

Source code (UnigineScript)
begin("my_counter");
// ...code to profile...
end();

Counters can be nested.

Profiler Class

Members


void engine.profiler.setEnabled(int enabled)

Arguments

  • int enabled

int engine.profiler.isEnabled()

Returns a value indicating if the profiler is enabled.

Return value

1 if the profiler is enabled; otherwise, 0.

float engine.profiler.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.

float engine.profiler.end()

Stops the last activated counter and returns its value.

Return value

Value of the counter in milliseconds.
Last update: 2017-07-03
Build: ()