IVGCVSW-3690 Implement SendCounterPacket.SendStreamMetaDataPacket() function
Signed-off-by: Ferran Balaguer <ferran.balaguer@arm.com>
Change-Id: I9e034b0caaff5371fadfdba20fdbe3171d4cd2e6
diff --git a/src/profiling/ProfilingUtils.cpp b/src/profiling/ProfilingUtils.cpp
index b948026..86abef1 100644
--- a/src/profiling/ProfilingUtils.cpp
+++ b/src/profiling/ProfilingUtils.cpp
@@ -5,8 +5,12 @@
#include "ProfilingUtils.hpp"
+#include <armnn/Version.hpp>
+
#include <boost/assert.hpp>
+#include <fstream>
+
namespace armnn
{
@@ -84,6 +88,31 @@
return static_cast<uint16_t>(value);
}
+std::string GetSoftwareInfo()
+{
+ return std::string("ArmNN");
+}
+
+std::string GetHardwareVersion()
+{
+ return std::string();
+}
+
+std::string GetSoftwareVersion()
+{
+ std::string armnnVersion(ARMNN_VERSION);
+ std::string result = "Armnn " + armnnVersion.substr(2,2) + "." + armnnVersion.substr(4,2);
+ return result;
+}
+
+std::string GetProcessName()
+{
+ std::ifstream comm("/proc/self/comm");
+ std::string name;
+ getline(comm, name);
+ return name;
+}
+
} // namespace profiling
} // namespace armnn
\ No newline at end of file