The high level profiler. More...
#include <profile_highlevel.h>
Classes | |
| class | Block |
| Timer based function block profile. More... | |
| class | Id |
| A high level profile ID. More... | |
Static Public Member Functions | |
| static Id | AddProfile (const char *name, const char *descr, const char *unit, int precision, int exp10=0) |
| Registers a new high level profile value. | |
| static bool | EnumProfile (unsigned index, Id &id) |
| Enumerates the list of known high level profile values. | |
| static bool | FindProfile (const char *name, Id &id) |
| Searches for the given high level profile. | |
Friends | |
| class | Profile |
The high level profiler.
Definition at line 41 of file profile_highlevel.h.
|
static |
Registers a new high level profile value.
If there is already a high level profile with the given name the Id of that profile is returned instead.
High level profiles can only be added, never removed.
| name | value name, e.g. "render.texture.count.512x512" |
| descr | descriptive name, e.g. "# of 512x512 textures" |
| unit | unit name, e.g. "byte" or "sec" |
| precision | number of decimal places to show |
| exp10 | 10 base exponent (used for scaleing) |
Definition at line 295 of file profile_highlevel.cpp.
Enumerates the list of known high level profile values.
| index | index value, >=0 |
| id | return buffer for ID value |
Definition at line 311 of file profile_highlevel.cpp.
Searches for the given high level profile.
| name | profile name to search for |
| id | return buffer for ID value |
Definition at line 319 of file profile_highlevel.cpp.
|
friend |
Definition at line 43 of file profile_highlevel.h.