![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
Class instantiated in every registered thread. More...

Classes | |
| struct | HoldBuffer |
Public Types | |
| enum | { BUFFER_NORMAL , BUFFER_SPIKE , BUFFER_AGGREGATE } |
Public Member Functions | |
| ThreadStorage (CProfiler2 &profiler, const std::string &name) | |
| ~ThreadStorage () | |
| void | RecordSyncMarker (double t) |
| void | Record (EItem type, double t, const char *id) |
| void | RecordFrameStart (double t) |
| void | RecordLeave (double t) |
| void | RecordAttribute (const char *fmt, va_list argp) VPRINTF_ARGS(2) |
| void | RecordAttributePrintf (const char *fmt,...) PRINTF_ARGS(2) |
| size_t | HoldLevel () |
| u8 | HoldType () |
| void | PutOnHold (u8 type) |
| void | HoldToBuffer (bool condensed) |
| void | ThrowawayHoldBuffer () |
| CProfiler2 & | GetProfiler () |
| const std::string & | GetName () |
| std::string | GetBuffer () |
| Returns a copy of a subset of the thread's buffer. More... | |
Private Member Functions | |
| NONCOPYABLE (ThreadStorage) | |
| void | Write (EItem type, const void *item, u32 itemSize) |
| Store an item into the buffer. More... | |
| void | WriteHold (EItem type, const void *item, u32 itemSize) |
Private Attributes | |
| CProfiler2 & | m_Profiler |
| std::string | m_Name |
| double | m_LastTime |
| u8 * | m_Buffer |
| HoldBuffer | m_HoldBuffers [8] |
| size_t | m_HeldDepth |
| u32 | m_BufferPos0 |
| u32 | m_BufferPos1 |
Class instantiated in every registered thread.
| CProfiler2::ThreadStorage::ThreadStorage | ( | CProfiler2 & | profiler, |
| const std::string & | name | ||
| ) |
| CProfiler2::ThreadStorage::~ThreadStorage | ( | ) |
| std::string CProfiler2::ThreadStorage::GetBuffer | ( | ) |
Returns a copy of a subset of the thread's buffer.
Not guaranteed to start on an item boundary. May be called by any thread.
|
inline |
|
inline |
| size_t CProfiler2::ThreadStorage::HoldLevel | ( | ) |
| void CProfiler2::ThreadStorage::HoldToBuffer | ( | bool | condensed | ) |
| u8 CProfiler2::ThreadStorage::HoldType | ( | ) |
|
private |
| void CProfiler2::ThreadStorage::PutOnHold | ( | u8 | type | ) |
|
inline |
| void CProfiler2::ThreadStorage::RecordAttribute | ( | const char * | fmt, |
| va_list | argp | ||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
| void CProfiler2::ThreadStorage::ThrowawayHoldBuffer | ( | ) |
Store an item into the buffer.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |