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

Function SetActiveProfilingState

src/profiling/test/SendCounterPacketTests.cpp:77–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void SetActiveProfilingState(ProfilingStateMachine& profilingStateMachine)
78{
79 ProfilingState currentState = profilingStateMachine.GetCurrentState();
80 switch (currentState)
81 {
82 case ProfilingState::Uninitialised:
83 profilingStateMachine.TransitionToState(ProfilingState::NotConnected);
84 ARMNN_FALLTHROUGH;
85 case ProfilingState::NotConnected:
86 profilingStateMachine.TransitionToState(ProfilingState::WaitingForAck);
87 ARMNN_FALLTHROUGH;
88 case ProfilingState::WaitingForAck:
89 profilingStateMachine.TransitionToState(ProfilingState::Active);
90 ARMNN_FALLTHROUGH;
91 case ProfilingState::Active:
92 return;
93 default:
94 CHECK_MESSAGE(false, "Invalid profiling state");
95 }
96}
97
98} // Anonymous namespace
99

Callers 1

Calls 2

GetCurrentStateMethod · 0.45
TransitionToStateMethod · 0.45

Tested by

no test coverage detected