2 // Copyright © 2019 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
8 #include <SendCounterPacket.hpp>
9 #include <SendThread.hpp>
10 #include <ProfilingUtils.hpp>
11 #include <IProfilingConnectionFactory.hpp>
13 #include <armnn/Exceptions.hpp>
14 #include <armnn/Optional.hpp>
15 #include <armnn/Conversion.hpp>
16 #include <armnn/utility/Assert.hpp>
17 #include <armnn/utility/IgnoreUnused.hpp>
18 #include <armnn/utility/NumericCast.hpp>
21 #include <condition_variable>
31 class SendCounterPacketTest : public SendCounterPacket
34 SendCounterPacketTest(IBufferManager& buffer)
35 : SendCounterPacket(buffer)
38 bool CreateDeviceRecordTest(const DevicePtr& device,
39 DeviceRecord& deviceRecord,
40 std::string& errorMessage)
42 return CreateDeviceRecord(device, deviceRecord, errorMessage);
45 bool CreateCounterSetRecordTest(const CounterSetPtr& counterSet,
46 CounterSetRecord& counterSetRecord,
47 std::string& errorMessage)
49 return CreateCounterSetRecord(counterSet, counterSetRecord, errorMessage);
52 bool CreateEventRecordTest(const CounterPtr& counter,
53 EventRecord& eventRecord,
54 std::string& errorMessage)
56 return CreateEventRecord(counter, eventRecord, errorMessage);
59 bool CreateCategoryRecordTest(const CategoryPtr& category,
60 const Counters& counters,
61 CategoryRecord& categoryRecord,
62 std::string& errorMessage)
64 return CreateCategoryRecord(category, counters, categoryRecord, errorMessage);
68 } // namespace profiling