| 75 | } |
| 76 | |
| 77 | void 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 |
no test coverage detected