From fd627ffaec8fd8801d980b4c91ee7c0607ab6aaf Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Thu, 25 Feb 2021 17:44:00 +0000 Subject: IVGCVSW-5687 Update Doxygen Docu * Update Doxygen Documentation for 21.02 release Signed-off-by: Jan Eilers Change-Id: I9ed2f9caab038836ea99d7b378d7899fe431a4e5 --- ...ine_reporting_command_handler_8cpp_source.xhtml | 130 +++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 21.02/_activate_timeline_reporting_command_handler_8cpp_source.xhtml (limited to '21.02/_activate_timeline_reporting_command_handler_8cpp_source.xhtml') diff --git a/21.02/_activate_timeline_reporting_command_handler_8cpp_source.xhtml b/21.02/_activate_timeline_reporting_command_handler_8cpp_source.xhtml new file mode 100644 index 0000000000..5e9d83d38b --- /dev/null +++ b/21.02/_activate_timeline_reporting_command_handler_8cpp_source.xhtml @@ -0,0 +1,130 @@ + + + + + + + + + + + + + +ArmNN: src/profiling/ActivateTimelineReportingCommandHandler.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
ActivateTimelineReportingCommandHandler.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
8 
9 #include <armnn/Exceptions.hpp>
10 #include <fmt/format.h>
11 
12 namespace armnn
13 {
14 
15 namespace profiling
16 {
17 
18 void ActivateTimelineReportingCommandHandler::operator()(const arm::pipe::Packet& packet)
19 {
20  ProfilingState currentState = m_StateMachine.GetCurrentState();
21 
22  if (!m_ReportStructure.has_value())
23  {
24  throw armnn::Exception(std::string("Profiling Service constructor must be initialised with an "
25  "IReportStructure argument in order to run timeline reporting"));
26  }
27 
28  switch ( currentState )
29  {
33  throw RuntimeException(fmt::format(
34  "Activate Timeline Reporting Command Handler invoked while in a wrong state: {}",
35  GetProfilingStateName(currentState)));
37  if ( !( packet.GetPacketFamily() == 0u && packet.GetPacketId() == 6u ))
38  {
39  throw armnn::Exception(std::string("Expected Packet family = 0, id = 6 but received family =")
40  + std::to_string(packet.GetPacketFamily())
41  + " id = " + std::to_string(packet.GetPacketId()));
42  }
43 
44  if(!m_TimelineReporting)
45  {
46  m_SendTimelinePacket.SendTimelineMessageDirectoryPackage();
47 
49 
50  m_TimelineReporting = true;
51 
52  m_ReportStructure.value().ReportStructure();
53 
54  m_BackendNotifier.NotifyBackendsForTimelineReporting();
55  }
56 
57  break;
58  default:
59  throw RuntimeException(fmt::format("Unknown profiling service state: {}",
60  static_cast<int>(currentState)));
61  }
62 }
63 
64 } // namespace profiling
65 
66 } // namespace armnn
+ +
virtual void NotifyBackendsForTimelineReporting()=0
+
void SendTimelineMessageDirectoryPackage() override
Create and write a TimelineMessageDirectoryPackage in the buffer.
+
Copyright (c) 2021 ARM Limited and Contributors.
+ + + + + + + +
Base class for all ArmNN exceptions so that users can filter to just those.
Definition: Exceptions.hpp:46
+ + +
static void SendWellKnownLabelsAndEventClasses(ISendTimelinePacket &timelinePacket)
+
constexpr char const * GetProfilingStateName(ProfilingState state)
+
+
+ + + + -- cgit v1.2.1