From 47d0fe98ca6ab3ba1d21b0971d3009a287974442 Mon Sep 17 00:00:00 2001 From: Ferran Balaguer Date: Wed, 4 Sep 2019 16:47:34 +0100 Subject: IVGCVSW-3690 Implement SendCounterPacket.SendStreamMetaDataPacket() function Signed-off-by: Ferran Balaguer Change-Id: I9e034b0caaff5371fadfdba20fdbe3171d4cd2e6 --- src/profiling/ProfilingUtils.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'src/profiling/ProfilingUtils.cpp') diff --git a/src/profiling/ProfilingUtils.cpp b/src/profiling/ProfilingUtils.cpp index b948026f42..86abef17b3 100644 --- a/src/profiling/ProfilingUtils.cpp +++ b/src/profiling/ProfilingUtils.cpp @@ -5,8 +5,12 @@ #include "ProfilingUtils.hpp" +#include + #include +#include + namespace armnn { @@ -84,6 +88,31 @@ uint16_t ReadUint16(const unsigned char* buffer, unsigned int offset) return static_cast(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 -- cgit v1.2.1