diff options
author | Finn Williams <Finn.Williams@arm.com> | 2020-02-12 11:02:34 +0000 |
---|---|---|
committer | Finn Williams <Finn.Williams@arm.com> | 2020-02-14 10:20:00 +0000 |
commit | 032bc74ca4bc6589a33f23db31accddc5b20baaa (patch) | |
tree | 07ae871bc1d667105c7a4b5da2b670b977d5abcb /src/profiling/test/SendCounterPacketTests.cpp | |
parent | c1536d69c1468514425e143b0578656f51598b94 (diff) | |
download | armnn-032bc74ca4bc6589a33f23db31accddc5b20baaa.tar.gz |
IVGCVSW-4338 Implement the Activation of Counters in backends
Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Change-Id: I4a2465f06e046f78242ff0a246c651638b205498
Diffstat (limited to 'src/profiling/test/SendCounterPacketTests.cpp')
-rw-r--r-- | src/profiling/test/SendCounterPacketTests.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/profiling/test/SendCounterPacketTests.cpp b/src/profiling/test/SendCounterPacketTests.cpp index 9ec24e539f..b87583ce5e 100644 --- a/src/profiling/test/SendCounterPacketTests.cpp +++ b/src/profiling/test/SendCounterPacketTests.cpp @@ -121,7 +121,7 @@ BOOST_AUTO_TEST_CASE(MockSendCounterPacketTest) mockBuffer.MarkRead(packetBuffer); uint64_t timestamp = 0; - std::vector<std::pair<uint16_t, uint32_t>> indexValuePairs; + std::vector<CounterValue> indexValuePairs; mockSendCounterPacket.SendPeriodicCounterCapturePacket(timestamp, indexValuePairs); @@ -215,7 +215,7 @@ BOOST_AUTO_TEST_CASE(SendPeriodicCounterCapturePacketTest) auto captureTimestamp = std::chrono::steady_clock::now(); uint64_t time = static_cast<uint64_t >(captureTimestamp.time_since_epoch().count()); - std::vector<std::pair<uint16_t, uint32_t>> indexValuePairs; + std::vector<CounterValue> indexValuePairs; BOOST_CHECK_THROW(sendPacket1.SendPeriodicCounterCapturePacket(time, indexValuePairs), BufferExhaustion); @@ -242,11 +242,11 @@ BOOST_AUTO_TEST_CASE(SendPeriodicCounterCapturePacketTest) SendCounterPacket sendPacket3(mockBuffer3); indexValuePairs.reserve(5); - indexValuePairs.emplace_back(std::make_pair<uint16_t, uint32_t >(0, 100)); - indexValuePairs.emplace_back(std::make_pair<uint16_t, uint32_t >(1, 200)); - indexValuePairs.emplace_back(std::make_pair<uint16_t, uint32_t >(2, 300)); - indexValuePairs.emplace_back(std::make_pair<uint16_t, uint32_t >(3, 400)); - indexValuePairs.emplace_back(std::make_pair<uint16_t, uint32_t >(4, 500)); + indexValuePairs.emplace_back(CounterValue{0, 100}); + indexValuePairs.emplace_back(CounterValue{1, 200}); + indexValuePairs.emplace_back(CounterValue{2, 300}); + indexValuePairs.emplace_back(CounterValue{3, 400}); + indexValuePairs.emplace_back(CounterValue{4, 500}); sendPacket3.SendPeriodicCounterCapturePacket(time, indexValuePairs); auto readBuffer3 = mockBuffer3.GetReadableBuffer(); |