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

Classes | |
| struct | RingBufferSpan |
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) |
| 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, std::uint32_t itemSize) |
| Store an item into the buffer. More... | |
| void | WriteHold (EItem type, const void *item, std::uint32_t itemSize) |
Private Attributes | |
| CProfiler2 & | m_Profiler |
| std::string | m_Name |
| double | m_LastTime |
| std::uint8_t * | m_Buffer |
| RingBufferSpan | m_ValidRange |
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 |
|
private |
|
inline |
| void CProfiler2::ThreadStorage::RecordAttribute | ( | const char * | fmt, |
| va_list | argp | ||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Store an item into the buffer.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |