From fb14ebbd68e04876809145296af96f6f41857418 Mon Sep 17 00:00:00 2001 From: James Ward Date: Thu, 26 Nov 2020 11:08:12 +0000 Subject: IVGCVSW-5348 Update Doxygen Docu * Update Doxygen Documentation for 20.11 release Signed-off-by: James Ward Change-Id: Ib47edac7923a642a277b1169d1085e5622021dc0 --- ...ter_selection_command_handler_8cpp_source.xhtml | 126 +++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 20.11/_per_job_counter_selection_command_handler_8cpp_source.xhtml (limited to '20.11/_per_job_counter_selection_command_handler_8cpp_source.xhtml') diff --git a/20.11/_per_job_counter_selection_command_handler_8cpp_source.xhtml b/20.11/_per_job_counter_selection_command_handler_8cpp_source.xhtml new file mode 100644 index 0000000000..6816e9fdfc --- /dev/null +++ b/20.11/_per_job_counter_selection_command_handler_8cpp_source.xhtml @@ -0,0 +1,126 @@ + + + + + + + + + + + + + +ArmNN: src/profiling/PerJobCounterSelectionCommandHandler.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.11 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
PerJobCounterSelectionCommandHandler.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2019 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
7 #include <armnn/Exceptions.hpp>
8 
9 #include <fmt/format.h>
10 
11 namespace armnn
12 {
13 
14 namespace profiling
15 {
16 
17 void PerJobCounterSelectionCommandHandler::operator()(const arm::pipe::Packet& packet)
18 {
19  ProfilingState currentState = m_StateMachine.GetCurrentState();
20  switch (currentState)
21  {
25  throw armnn::RuntimeException(fmt::format(
26  "Per-Job Counter Selection Command Handler invoked while in an incorrect state: {}",
27  GetProfilingStateName(currentState)));
29  // Process the packet
30  if (!(packet.GetPacketFamily() == 0u && packet.GetPacketId() == 5u))
31  {
32  throw armnn::InvalidArgumentException(fmt::format("Expected Packet family = 0, id = 5 but "
33  "received family = {}, id = {}",
34  packet.GetPacketFamily(),
35  packet.GetPacketId()));
36  }
37 
38  // Silently drop the packet
39 
40  break;
41  default:
42  throw armnn::RuntimeException(fmt::format("Unknown profiling service state: {}",
43  static_cast<int>(currentState)));
44  }
45 }
46 
47 } // namespace profiling
48 
49 } // namespace armnn
+ +
Copyright (c) 2020 ARM Limited.
+ + + + + + + + + +
constexpr char const * GetProfilingStateName(ProfilingState state)
+
+
+ + + + -- cgit v1.2.1