blob: 2bc365a1deb2f3ce172a97b61b4e1ceff87f4a7b [file] [log] [blame]
//
// Copyright © 2020 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include <ProfilingService.hpp>
#include <armnn/backends/profiling/IBackendProfiling.hpp>
namespace armnn
{
namespace profiling
{
class BackendProfiling : public IBackendProfiling
{
public:
BackendProfiling(const IRuntime::CreationOptions& options, ProfilingService& profilingService, const BackendId& id)
: m_options(options)
, m_ProfilingService(profilingService)
, m_backendId(id)
{}
~BackendProfiling()
{}
std::unique_ptr<IRegisterBackendCounters>
GetCounterRegistrationInterface(uint16_t currentMaxGlobalCounterID) override;
std::unique_ptr<ISendTimelinePacket> GetSendTimelinePacket() override;
IProfilingGuidGenerator& GetProfilingGuidGenerator() override;
void ReportCounters(const std::vector<Timestamp>&) override
{}
CounterStatus GetCounterStatus(uint16_t backendCounterId) override;
std::vector<CounterStatus> GetActiveCounters() override;
bool IsProfilingEnabled() const override;
private:
IRuntime::CreationOptions m_options;
ProfilingService& m_ProfilingService;
BackendId m_backendId;
};
} // namespace profiling
} // namespace armnn