blob: 9b1aac5a4e1582dc95645775fc69cb7a9b91a2c1 [file]
//
// Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "IProfilingService.hpp"
#include "ProfilingService.hpp"
namespace arm
{
namespace pipe
{
std::unique_ptr<IProfilingService> IProfilingService::CreateProfilingService(
armnn::Optional<IReportStructure&> reportStructure)
{
return std::make_unique<ProfilingService>(reportStructure);
}
ProfilingGuidGenerator IProfilingService::m_GuidGenerator;
ProfilingDynamicGuid IProfilingService::GetNextGuid()
{
return m_GuidGenerator.NextGuid();
}
ProfilingStaticGuid IProfilingService::GetStaticId(const std::string& str)
{
return m_GuidGenerator.GenerateStaticId(str);
}
void IProfilingService::ResetGuidGenerator()
{
m_GuidGenerator.Reset();
}
ProfilingDynamicGuid IProfilingService::NextGuid()
{
return IProfilingService::GetNextGuid();
}
ProfilingStaticGuid IProfilingService::GenerateStaticId(const std::string& str)
{
return IProfilingService::GetStaticId(str);
}
} // namespace pipe
} // namespace arm