This page has been translated automatically.
Программирование
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
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

Unigine::Profiler Class

Header:#include <UnigineProfiler.h>

Profiler class is used to create counters for engine profiler.

Profiler Class

Members


Profiler * get()

void setEnabled(int enabled)

Arguments

  • int enabled

int isEnabled()

Returns a value indicating if the profiler is enabled.

Return value

1 if the profiler is enabled; otherwise, 0.

void setValue(const char * name, const char * units, int value, int max_value, float * arg5)

Updates the counter settings.

Arguments

  • const char * name - Name of the counter.
  • const char * units - Counter units.
  • int value - Value of the counter (int or float).
  • int max_value - Counter maximum value.
  • float * arg5 - Color of the graph.

void setValue(const char * name, const char * units, float value, float max_value, float * arg5)

Updates the counter settings.

Arguments

  • const char * name - Name of the counter.
  • const char * units - Counter units.
  • float value - Value of the counter (int or float).
  • float max_value - Counter maximum value.
  • float * arg5 - Color of the graph.

float getValue(const char * name)

Returns a value of the specified counter.

Arguments

  • const char * name - The name of the counter.

Return value

Value of the counter in milliseconds.

void begin(const char * name, const Math::vec4 & color)

Starts a counter with a given name.

Arguments

  • const char * name - Name of the counter.
  • const Math::vec4 & color - Color of the graph.

void begin(const char * name)

Starts a counter with a given name.

Arguments

  • const char * name - Name of the counter.

float end()

Stops the last activated counter and returns its value.

Return value

Value of the counter in milliseconds.
Last update: 03.07.2017
Build: ()