blob: 1985bc802c6e8fd37e5b1fea3597cfa2c100c2e2 [file] [log] [blame]
//
// Copyright © 2019 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include <client/src/SendCounterPacket.hpp>
#include <client/src/SendThread.hpp>
#include <client/src/ProfilingUtils.hpp>
#include <client/src/IProfilingConnectionFactory.hpp>
#include <armnn/profiling/ArmNNProfiling.hpp>
#include <common/include/IgnoreUnused.hpp>
#include <common/include/NumericCast.hpp>
#include <atomic>
#include <condition_variable>
#include <mutex>
#include <thread>
namespace arm
{
namespace pipe
{
class SendCounterPacketTest : public SendCounterPacket
{
public:
SendCounterPacketTest(IBufferManager& buffer)
: SendCounterPacket(buffer,
arm::pipe::ARMNN_SOFTWARE_INFO,
arm::pipe::ARMNN_SOFTWARE_VERSION,
arm::pipe::ARMNN_HARDWARE_VERSION)
{}
bool CreateDeviceRecordTest(const DevicePtr& device,
DeviceRecord& deviceRecord,
std::string& errorMessage)
{
return CreateDeviceRecord(device, deviceRecord, errorMessage);
}
bool CreateCounterSetRecordTest(const CounterSetPtr& counterSet,
CounterSetRecord& counterSetRecord,
std::string& errorMessage)
{
return CreateCounterSetRecord(counterSet, counterSetRecord, errorMessage);
}
bool CreateEventRecordTest(const CounterPtr& counter,
EventRecord& eventRecord,
std::string& errorMessage)
{
return CreateEventRecord(counter, eventRecord, errorMessage);
}
bool CreateCategoryRecordTest(const CategoryPtr& category,
const Counters& counters,
CategoryRecord& categoryRecord,
std::string& errorMessage)
{
return CreateCategoryRecord(category, counters, categoryRecord, errorMessage);
}
};
} // namespace pipe
} // namespace arm