blob: 82678a162fbb34665cb5595554eb6c8de2fabc1e [file] [log] [blame]
//
// Copyright © 2020 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include "ProfilingService.hpp"
#include <armnn/backends/profiling/IBackendProfiling.hpp>
namespace arm
{
namespace pipe
{
class BackendProfiling : public IBackendProfiling
{
public:
BackendProfiling(const ProfilingOptions& options,
ProfilingService& profilingService,
const armnn::BackendId& backendId)
: m_Options(options),
m_ProfilingService(profilingService),
m_BackendId(backendId) {}
~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:
ProfilingOptions m_Options;
ProfilingService& m_ProfilingService;
armnn::BackendId m_BackendId;
};
} // namespace pipe
} // namespace arm