|
Nebula
|
#include "timing/time.h"#include "timing/timer.h"#include "util/stack.h"#include "util/dictionary.h"#include "util/stringatom.h"#include "util/tupleutility.h"#include "threading/thread.h"#include "threading/criticalsection.h"#include <atomic>Go to the source code of this file.
Classes | |
| struct | Profiling::ProfilingScope |
| struct | Profiling::ProfilingScopeLock |
| convenience class used to automatically push and pop scopes More... | |
| struct | Profiling::ProfilingContext |
| thread context of profiling More... | |
Namespaces | |
| namespace | Profiling |
Macros | |
| #define | N_SCOPE(name, cat) |
| Profiling interface. | |
| #define | N_SCOPE_DYN(str, cat) |
| #define | N_SCOPE_ACCUM(name, cat) |
| #define | N_SCOPE_DYN_ACCUM(name, cat) |
| #define | N_MARKER_BEGIN(name, cat) |
| #define | N_MARKER_END() |
| #define | N_COUNTER_INCR(name, value) |
| #define | N_COUNTER_DECR(name, value) |
| #define | N_DECLARE_COUNTER(name, label) |
Functions | |
| void | Profiling::ProfilingPushScope (const ProfilingScope &scope) |
| push scope to scope stack | |
| void | Profiling::ProfilingPopScope () |
| pop scope from scope stack | |
| void | Profiling::ProfilingNewFrame () |
| pushes an 'end of frame' marker, only available on the main thread | |
| Timing::Time | Profiling::ProfilingGetTime () |
| get current frametime | |
| void | Profiling::ProfilingRegisterThread (int priority=0) |
| register a new thread for the profiling | |
| const Util::Array< ProfilingScope > & | Profiling::ProfilingGetScopes (Threading::ThreadId thread) |
| get all top level scopes based on thread, only run when you know the thread is finished | |
| const Util::Array< ProfilingContext > | Profiling::ProfilingGetContexts () |
| get all profiling contexts | |
| void | Profiling::ProfilingClear () |
| clear all scopes | |
| void | Profiling::ProfilingIncreaseCounter (const char *id, uint64_t value) |
| increment profiling counter | |
| void | Profiling::ProfilingDecreaseCounter (const char *id, uint64_t value) |
| decrement profiling counter | |
| const Util::Dictionary< const char *, uint64_t > & | Profiling::ProfilingGetCounters () |
| return table of counters | |
| void | Profiling::ProfilingSetupBudgetCounter (const char *id, uint64_t budget) |
| Setup a profiling budget counter. | |
| void | Profiling::ProfilingBudgetIncreaseCounter (const char *id, uint64_t value) |
| Increment budget counter. | |
| void | Profiling::ProfilingBudgetDecreaseCounter (const char *id, uint64_t value) |
| Decrement budget counter. | |
| void | Profiling::ProfilingBudgetResetCounter (const char *id) |
| Reset budget counter. | |
| const Util::Dictionary< const char *, Util::Pair< uint64_t, uint64_t > > & | Profiling::ProfilingGetBudgetCounters () |
| Return set of budget counters. | |
| #define N_COUNTER_DECR | ( | name, | |
| value ) |
| #define N_COUNTER_INCR | ( | name, | |
| value ) |
| #define N_DECLARE_COUNTER | ( | name, | |
| label ) |
| #define N_MARKER_BEGIN | ( | name, | |
| cat ) |
| #define N_MARKER_END | ( | ) |
| #define N_SCOPE | ( | name, | |
| cat ) |
| #define N_SCOPE_ACCUM | ( | name, | |
| cat ) |
| #define N_SCOPE_DYN | ( | str, | |
| cat ) |
| #define N_SCOPE_DYN_ACCUM | ( | name, | |
| cat ) |