#include <base/Profiler.h>
|
enum | {
EVENT_BEGIN = 'B',
EVENT_END = 'E',
EVENT_ASYNC_BEGIN = 'b',
EVENT_ASYNC_END = 'e',
EVENT_COMPLETE = 'X',
EVENT_COUNTER = 'C',
EVENT_OBJECT_CREATE = 'N',
EVENT_OBJECT_DESTROY = 'D',
EVENT_SAMPLE = 'P',
EVENT_MEMORY = 'v',
EVENT_META = 'M',
EVENT_INSTANT = 'i'
} |
|
|
static ProfilerImpl | profiler |
|
static constexpr const char * | CAT_MEMORY = "MEMORY" |
|
static constexpr const char * | CAT_OBJECT = "OBJECT" |
|
static constexpr const char * | CAT_CREATE_RESOURCE = "RESOURCE" |
|
static constexpr const char * | CAT_IO = "IO" |
|
static constexpr const char * | CAT_IO_FLUSH = "IOFLUSH" |
|
static constexpr const char * | CAT_IO_READ = "IOREAD" |
|
static constexpr const char * | CAT_IO_WRITE = "IOWRITE" |
|
static constexpr const char * | CAT_NETWORK = "NET" |
|
static constexpr const char * | CAT_WAIT = "WAIT" |
|
static constexpr const char * | CAT_EXCEPTION = "EXCEPTION" |
|
static constexpr const char * | CAT_SIGNAL = "SIGNAL" |
|
static constexpr const char * | CAT_RENDERER = "RENDERER" |
|
static constexpr const char * | CAT_COMPUTE = "COMPUTE" |
|
static constexpr const char * | CAT_SECURITY = "SECURITY" |
|
static constexpr const char * | CAT_UI = "UI" |
|
static constexpr const char * | CAT_DEBUG = "DEBUG" |
|
◆ close()
static void Profiler::close |
( |
| ) |
|
|
static |
◆ getNumberOfEvents()
static MemorySize Profiler::getNumberOfEvents |
( |
| ) |
|
|
staticnoexcept |
Returns the number of events.
◆ getTimestamp()
static uint64 Profiler::getTimestamp |
( |
| ) |
|
|
staticnoexcept |
◆ initEvent()
static void Profiler::initEvent |
( |
Event & |
e | ) |
|
|
staticnoexcept |
Initializes event with pid/tid/ts.
◆ isEnabled()
static bool Profiler::isEnabled |
( |
| ) |
|
|
staticnoexcept |
Returns true if profiler is enabled globally.
◆ isEnabledDirect()
static bool Profiler::isEnabledDirect |
( |
| ) |
|
|
inlinestaticnoexcept |
Returns true if profiler is enabled globally (use isEnabled() instead).
◆ isEnabledScope()
static bool Profiler::isEnabledScope |
( |
| ) |
|
|
staticnoexcept |
Returns true if profiler is enabled for scope.
◆ open()
static bool Profiler::open |
( |
const String & |
path | ) |
|
|
static |
◆ pushCounters()
static void Profiler::pushCounters |
( |
| ) |
|
|
inlinestatic |
◆ pushDebug()
static void Profiler::pushDebug |
( |
const char * |
name | ) |
|
|
inlinestatic |
◆ pushException() [1/2]
static void Profiler::pushException |
( |
const char * |
type | ) |
|
|
inlinestatic |
◆ pushException() [2/2]
static void Profiler::pushException |
( |
const Exception & |
exception, |
|
|
const Type * |
type = nullptr |
|
) |
| |
|
inlinestatic |
◆ pushInstant()
static void Profiler::pushInstant |
( |
const char * |
name, |
|
|
const char * |
cat |
|
) |
| |
|
inlinestatic |
◆ pushObjectCreate() [1/2]
static void Profiler::pushObjectCreate |
( |
MemorySize |
id | ) |
|
|
inlinestatic |
◆ pushObjectCreate() [2/2]
static void Profiler::pushObjectCreate |
( |
MemorySize |
id, |
|
|
MemorySize |
size |
|
) |
| |
|
inlinestatic |
◆ pushObjectDestroy() [1/2]
static void Profiler::pushObjectDestroy |
( |
MemorySize |
id | ) |
|
|
inlinestatic |
◆ pushObjectDestroy() [2/2]
static void Profiler::pushObjectDestroy |
( |
MemorySize |
id, |
|
|
MemorySize |
size |
|
) |
| |
|
inlinestatic |
◆ pushProcessMeta()
◆ pushSignal()
static void Profiler::pushSignal |
( |
const char * |
name | ) |
|
|
inlinestatic |
◆ pushThreadMeta()
◆ pushThreadStart()
static void Profiler::pushThreadStart |
( |
const char * |
name, |
|
|
unsigned int |
parentId |
|
) |
| |
|
inlinestatic |
◆ pushUI()
static void Profiler::pushUI |
( |
const char * |
name | ) |
|
|
inlinestatic |
◆ release()
static void Profiler::release |
( |
| ) |
|
|
static |
Release profiler resources.
◆ setCaptureIO()
static void Profiler::setCaptureIO |
( |
unsigned int |
maximumSize | ) |
|
|
staticnoexcept |
Sets the whether to record IO bytes.
◆ setMinimumHeapSize()
static void Profiler::setMinimumHeapSize |
( |
unsigned int |
minimumHeapSize | ) |
|
|
staticnoexcept |
Sets the minimum heap size to record event.
◆ setMinimumWaitTime()
static void Profiler::setMinimumWaitTime |
( |
unsigned int |
minimumWaitTime | ) |
|
|
staticnoexcept |
Set the minimum time to wait to record event.
◆ setStackPattern()
static void Profiler::setStackPattern |
( |
const String & |
stackPattern | ) |
|
|
staticnoexcept |
Sets the stack frame pattern.
◆ setUseStackFrames()
static void Profiler::setUseStackFrames |
( |
bool |
useStackFrames | ) |
|
|
staticnoexcept |
◆ start()
static void Profiler::start |
( |
| ) |
|
|
static |
◆ stop()
static void Profiler::stop |
( |
| ) |
|
|
staticnoexcept |