return m_mostRecentTimeStamp;
}
-void EventPipeBuffer::Clear()
-{
- CONTRACTL
- {
- NOTHROW;
- GC_TRIGGERS;
- MODE_ANY;
- }
- CONTRACTL_END;
-
- memset(m_pBuffer, 0, (size_t)(m_pLimit - m_pBuffer));
- m_pCurrent = GetNextAlignedAddress(m_pBuffer);
- m_mostRecentTimeStamp.QuadPart = 0;
- m_pLastPoppedEvent = NULL;
-}
-
EventPipeEventInstance* EventPipeBuffer::GetNext(EventPipeEventInstance *pEvent, LARGE_INTEGER beforeTimeStamp)
{
CONTRACTL
// Get the timestamp of the most recent event in the buffer.
LARGE_INTEGER GetMostRecentTimeStamp() const;
- // Clear the buffer.
- void Clear();
-
// Get the next event from the buffer as long as it is before the specified timestamp.
// Input of NULL gets the first event.
EventPipeEventInstance* GetNext(EventPipeEventInstance *pEvent, LARGE_INTEGER beforeTimeStamp);