From df31cfe29f9dccc4c2055a1d2a97de644b07d522 Mon Sep 17 00:00:00 2001 From: Narumol Prangnawarat Date: Fri, 22 Nov 2019 11:26:06 +0000 Subject: IVGCVSW-4070 Implement "send post-optimized network structure" * Send post-optimisation network structure if profiling service is enabled * Refactor TimelineUtilityMethods * Fix RecordEvent to link eventGuid with eventClassGuid * Add common types and guid to LabelsAndEventClasses * Add CreateRelationship to TimelineUtilityMethods * Add CreateTypedEntity to TimelineUtilityMethods * Add MarkEntityWithType to TimelineUtilityMethods * Move VerifyTimeline functions to ProfilingTestUtils * Post-optimisation network structure unit tests to Ref, Cl, Neon Signed-off-by: Narumol Prangnawarat Change-Id: I0194f2037c236450c912f4c3cb11e46b80c0f512 --- src/profiling/ProfilingService.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/profiling/ProfilingService.hpp') diff --git a/src/profiling/ProfilingService.hpp b/src/profiling/ProfilingService.hpp index 9fc642fe9d..f9b057c68b 100644 --- a/src/profiling/ProfilingService.hpp +++ b/src/profiling/ProfilingService.hpp @@ -77,6 +77,9 @@ public: std::unique_ptr GetSendTimelinePacket() const; + /// Check if the profiling is enabled + bool IsEnabled() { return m_Options.m_EnableProfiling; } + private: // Copy/move constructors/destructors and copy/move assignment operators are deleted ProfilingService(const ProfilingService&) = delete; @@ -201,6 +204,11 @@ protected: { return instance.m_SendCounterPacket.WaitForPacketSent(timeout); } + + BufferManager& GetBufferManager(ProfilingService& instance) + { + return instance.m_BufferManager; + } }; } // namespace profiling -- cgit v1.2.1