From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- ...ter_directory_command_handler_8cpp_source.xhtml | 130 +++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 20.02/_request_counter_directory_command_handler_8cpp_source.xhtml (limited to '20.02/_request_counter_directory_command_handler_8cpp_source.xhtml') diff --git a/20.02/_request_counter_directory_command_handler_8cpp_source.xhtml b/20.02/_request_counter_directory_command_handler_8cpp_source.xhtml new file mode 100644 index 0000000000..dd582bc9c8 --- /dev/null +++ b/20.02/_request_counter_directory_command_handler_8cpp_source.xhtml @@ -0,0 +1,130 @@ + + + + + + + + + + + + + +ArmNN: src/profiling/RequestCounterDirectoryCommandHandler.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RequestCounterDirectoryCommandHandler.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2019 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
7 
8 #include <boost/format.hpp>
9 
10 namespace armnn
11 {
12 
13 namespace profiling
14 {
15 
17 {
18  ProfilingState currentState = m_StateMachine.GetCurrentState();
19  switch (currentState)
20  {
24  throw RuntimeException(boost::str(boost::format("Request Counter Directory Comand Handler invoked while in an "
25  "wrong state: %1%")
26  % GetProfilingStateName(currentState)));
28  // Process the packet
29  if (!(packet.GetPacketFamily() == 0u && packet.GetPacketId() == 3u))
30  {
31  throw armnn::InvalidArgumentException(boost::str(boost::format("Expected Packet family = 0, id = 3 but "
32  "received family = %1%, id = %2%")
33  % packet.GetPacketFamily()
34  % packet.GetPacketId()));
35  }
36 
37  // Send all the packet required for the handshake with the external profiling service
38  m_SendCounterPacket.SendCounterDirectoryPacket(m_CounterDirectory);
39  m_SendTimelinePacket.SendTimelineMessageDirectoryPackage();
40 
41  break;
42  default:
43  throw RuntimeException(boost::str(boost::format("Unknown profiling service state: %1%")
44  % static_cast<int>(currentState)));
45  }
46 }
47 
48 } // namespace profiling
49 
50 } // namespace armnn
+
Copyright (c) 2020 ARM Limited.
+ +
uint32_t GetPacketFamily() const
Definition: Packet.hpp:70
+ + + + + + + + +
uint32_t GetPacketId() const
Definition: Packet.hpp:71
+ +
virtual void SendCounterDirectoryPacket(const ICounterDirectory &counterDirectory)=0
Create and write a CounterDirectoryPacket from the parameters to the buffer.
+
virtual void SendTimelineMessageDirectoryPackage()=0
Create and write a TimelineMessageDirectoryPackage in the buffer.
+
constexpr char const * GetProfilingStateName(ProfilingState state)
+
+
+ + + + -- cgit v1.2.1