diff options
author | Colm Donelan <Colm.Donelan@arm.com> | 2019-11-29 09:10:59 +0000 |
---|---|---|
committer | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-11-29 11:37:17 +0000 |
commit | 2ba48d251d0fe4dca214497ac33283106ca0973b (patch) | |
tree | d92ca2462e1853ac116dc8dd26c7c3afac4103c6 /src/profiling/ProfilingService.hpp | |
parent | e011d20f279e6e67e899bc6930b0266fc357bc1c (diff) | |
download | armnn-2ba48d251d0fe4dca214497ac33283106ca0973b.tar.gz |
IVGCVSW-4118 Fix long unit test execution
* Reduced sleep_for timings
* Removed duplicate SendStreamMetaDataPacket.
* Modified SendCounterPacket::WaitForPacketSent to use wait_for
* Modified SendCounterPacket::Send WaitingForAck to use wait_for
* Added destructor to StreamRedirector.
* Added method SendCounterPacketTests::HasWrittenData
* Restructured many tests in ProfilingTests.
Signed-off-by: Keith Davis <keith.davis@arm.com>
Change-Id: I55c59cac6674ac40a1056a5302a997d5da9e9d91
Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Diffstat (limited to 'src/profiling/ProfilingService.hpp')
-rw-r--r-- | src/profiling/ProfilingService.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/profiling/ProfilingService.hpp b/src/profiling/ProfilingService.hpp index ee199d55ab..9fc642fe9d 100644 --- a/src/profiling/ProfilingService.hpp +++ b/src/profiling/ProfilingService.hpp @@ -197,9 +197,9 @@ protected: { instance.m_StateMachine.TransitionToState(newState); } - void WaitForPacketSent(ProfilingService& instance) + void WaitForPacketSent(ProfilingService& instance, uint32_t timeout = 1000) { - return instance.m_SendCounterPacket.WaitForPacketSent(); + return instance.m_SendCounterPacket.WaitForPacketSent(timeout); } }; |