|
LLVM
5.0.0
|
When reading from a Flight Data Recorder mode log, metadata records are sparse compared to packed function records, so we must maintain state as we read through the sequence of entries. More...
Public Types | |
| enum | Token { Token::NEW_BUFFER_RECORD_OR_EOF, Token::WALLCLOCK_RECORD, Token::NEW_CPU_ID_RECORD, Token::FUNCTION_SEQUENCE, Token::SCAN_TO_END_OF_THREAD_BUF, Token::CUSTOM_EVENT_DATA } |
| Encode some of the state transitions for the FDR log reader as explicit checks. More... | |
Public Attributes | |
| uint16_t | CPUId |
| uint16_t | ThreadId |
| uint64_t | BaseTSC |
| Token | Expects |
| uint64_t | CurrentBufferSize |
| uint64_t | CurrentBufferConsumed |
When reading from a Flight Data Recorder mode log, metadata records are sparse compared to packed function records, so we must maintain state as we read through the sequence of entries.
This allows the reader to denormalize the CPUId and Thread Id onto each Function Record and transform delta encoded TSC values into absolute encodings on each record.
|
strong |
| uint64_t FDRState::BaseTSC |
Definition at line 117 of file Trace.cpp.
Referenced by processFDRFunctionRecord(), processFDRNewCPUIdRecord(), and processFDRTSCWrapRecord().
| uint16_t FDRState::CPUId |
Definition at line 115 of file Trace.cpp.
Referenced by processFDRFunctionRecord(), and processFDRNewCPUIdRecord().
| Token FDRState::Expects |
Definition at line 129 of file Trace.cpp.
Referenced by processFDREndOfBufferRecord(), processFDRFunctionRecord(), processFDRNewBufferRecord(), processFDRNewCPUIdRecord(), processFDRTSCWrapRecord(), and processFDRWallTimeRecord().
| uint16_t FDRState::ThreadId |
Definition at line 116 of file Trace.cpp.
Referenced by processFDRFunctionRecord(), and processFDRNewBufferRecord().
1.8.6