// // Copyright © 2019 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #pragma once #include "ProfilingUtils.hpp" #include #include #include #include #include using namespace armnn; using namespace armnn::profiling; inline unsigned int OffsetToNextWord(unsigned int numberOfBytes); void VerifyTimelineLabelBinaryPacket(Optional guid, const std::string& label, const unsigned char* readableData, unsigned int& offset); void VerifyTimelineEventClassBinaryPacket(ProfilingGuid guid, const unsigned char* readableData, unsigned int& offset); void VerifyTimelineRelationshipBinaryPacket(ProfilingRelationshipType relationshipType, Optional relationshipGuid, Optional headGuid, Optional tailGuid, const unsigned char* readableData, unsigned int& offset); void VerifyTimelineEntityBinaryPacket(Optional guid, const unsigned char* readableData, unsigned int& offset); void VerifyTimelineEventBinaryPacket(Optional timestamp, Optional threadId, Optional eventGuid, const unsigned char* readableData, unsigned int& offset); void VerifyPostOptimisationStructureTestImpl(armnn::BackendId backendId); namespace armnn { namespace profiling { class ProfilingServiceRuntimeHelper : public ProfilingService { public: ProfilingServiceRuntimeHelper() = default; ~ProfilingServiceRuntimeHelper() = default; BufferManager& GetProfilingBufferManager() { return GetBufferManager(ProfilingService::Instance()); } }; } // namespace profiling } // namespace armnn