aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/ProfilingService.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/profiling/ProfilingService.cpp')
-rw-r--r--src/profiling/ProfilingService.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/profiling/ProfilingService.cpp b/src/profiling/ProfilingService.cpp
index c4063a583c..ddd4d80b06 100644
--- a/src/profiling/ProfilingService.cpp
+++ b/src/profiling/ProfilingService.cpp
@@ -90,6 +90,7 @@ void ProfilingService::Update()
switch (currentState)
{
case ProfilingState::Uninitialised:
+
// Initialize the profiling service
Initialize();
@@ -368,6 +369,11 @@ inline void ProfilingService::CheckCounterUid(uint16_t counterUid) const
}
}
+ProfilingService::~ProfilingService()
+{
+ Stop();
+}
+
} // namespace profiling
} // namespace armnn