#include <ProfilingMocks.hpp>
Definition at line 281 of file ProfilingMocks.hpp.
◆ MockStreamCounterBuffer()
◆ ~MockStreamCounterBuffer()
◆ Commit()
void Commit |
( |
IPacketBufferPtr & |
packetBuffer, |
|
|
unsigned int |
size, |
|
|
bool |
notifyConsumer = true |
|
) |
| |
|
inlineoverride |
Definition at line 307 of file ProfilingMocks.hpp.
309 std::lock_guard<std::mutex> lock(m_Mutex);
311 packetBuffer->Commit(size);
312 m_BufferList.push_back(std::move(packetBuffer));
313 m_CommittedSize += size;
void FlushReadList() override
◆ FlushReadList()
Definition at line 358 of file ProfilingMocks.hpp.
361 if (m_Consumer !=
nullptr)
363 m_Consumer->SetReadyToRead();
◆ GetCommittedSize()
unsigned int GetCommittedSize |
( |
| ) |
const |
|
inline |
◆ GetReadableBuffer()
IPacketBufferPtr GetReadableBuffer |
( |
| ) |
|
|
inlineoverride |
Definition at line 328 of file ProfilingMocks.hpp.
330 std::lock_guard<std::mutex> lock(m_Mutex);
332 if (m_BufferList.empty())
336 IPacketBufferPtr buffer = std::move(m_BufferList.back());
337 m_BufferList.pop_back();
338 m_ReadableSize += buffer->GetSize();
◆ GetReadableSize()
unsigned int GetReadableSize |
( |
| ) |
const |
|
inline |
◆ GetReadSize()
unsigned int GetReadSize |
( |
| ) |
const |
|
inline |
◆ MarkRead()
void MarkRead |
( |
IPacketBufferPtr & |
packetBuffer | ) |
|
|
inlineoverride |
Definition at line 342 of file ProfilingMocks.hpp.
344 std::lock_guard<std::mutex> lock(m_Mutex);
346 m_ReadSize += packetBuffer->GetSize();
347 packetBuffer->MarkRead();
◆ Release()
void Release |
( |
IPacketBufferPtr & |
packetBuffer | ) |
|
|
inlineoverride |
Definition at line 321 of file ProfilingMocks.hpp.
323 std::lock_guard<std::mutex> lock(m_Mutex);
325 packetBuffer->Release();
◆ Reserve()
IPacketBufferPtr Reserve |
( |
unsigned int |
requestedSize, |
|
|
unsigned int & |
reservedSize |
|
) |
| |
|
inlineoverride |
Definition at line 293 of file ProfilingMocks.hpp.
295 std::lock_guard<std::mutex> lock(m_Mutex);
298 if (requestedSize > m_MaxBufferSize)
300 throw arm::pipe::InvalidArgumentException(
"The maximum buffer size that can be requested is [" +
301 std::to_string(m_MaxBufferSize) +
"] bytes");
303 reservedSize = requestedSize;
304 return std::make_unique<MockPacketBuffer>(requestedSize);
◆ SetConsumer()
void SetConsumer |
( |
IConsumer * |
consumer | ) |
|
|
inlineoverride |
Definition at line 350 of file ProfilingMocks.hpp.
352 if (consumer !=
nullptr)
354 m_Consumer = consumer;
The documentation for this class was generated from the following file: