提交 f14321dd 编写于 作者: A Andrew Au 提交者: Andrew Au

Eliminate EventPipeBuffer::Close()


Commit migrated from https://github.com/dotnet/coreclr/commit/aa077b43cc3a1911e67fc63eb592dd36caaa0d70
上级 582adfaf
......@@ -133,22 +133,6 @@ LARGE_INTEGER EventPipeBuffer::GetMostRecentTimeStamp() const
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
......
......@@ -103,9 +103,6 @@ public:
// 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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册