IVGCVSW-3972 Implement the Disconnect functionality
* Added Disconnect method to the ProfilingService class
* Added unit test
Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Change-Id: I5cc57abd3e1239cdf8afe21ee4883c1f73cd0e80
diff --git a/src/profiling/ProfilingService.hpp b/src/profiling/ProfilingService.hpp
index dd70af4..d4fa856 100644
--- a/src/profiling/ProfilingService.hpp
+++ b/src/profiling/ProfilingService.hpp
@@ -45,6 +45,9 @@
// Updates the profiling service, making it transition to a new state if necessary
void Update();
+ // Disconnects the profiling service from the external server
+ void Disconnect();
+
// Getters for the profiling service state
const ICounterDirectory& GetCounterDirectory() const;
ProfilingState GetCurrentState() const;
@@ -70,6 +73,7 @@
void Initialize();
void InitializeCounterValue(uint16_t counterUid);
void Reset();
+ void Stop();
// Helper function
void CheckCounterUid(uint16_t counterUid) const;