MCPcopy Create free account
hub / github.com/ARM-software/armnn / HandlePacket

Method HandlePacket

src/profiling/test/TestTimelinePacketHandler.cpp:29–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29void TestTimelinePacketHandler::HandlePacket(const arm::pipe::Packet& packet)
30{
31 if (packet.GetHeader() == m_DirectoryHeader)
32 {
33 ProcessDirectoryPacket(packet);
34 }
35 else if (packet.GetHeader() == m_MessageHeader)
36 {
37 ProcessMessagePacket(packet);
38 }
39 else
40 {
41 std::stringstream ss;
42 ss << "Received a packet with unknown header [" << packet.GetHeader() << "]";
43 throw arm::pipe::ProfilingException(ss.str());
44 }
45}
46
47void TestTimelinePacketHandler::Stop()
48{

Callers

nothing calls this directly

Calls 3

ProfilingExceptionClass · 0.85
GetHeaderMethod · 0.80
strMethod · 0.45

Tested by

no test coverage detected