diff options
author | Ferran Balaguer <ferran.balaguer@arm.com> | 2019-09-04 16:47:34 +0100 |
---|---|---|
committer | Ferran Balaguer Arm <ferran.balaguer@arm.com> | 2019-09-09 10:28:39 +0000 |
commit | 47d0fe98ca6ab3ba1d21b0971d3009a287974442 (patch) | |
tree | 04f22e9db6f98d21b3c172a3473e9c9f230b657b /src/profiling/ProfilingUtils.cpp | |
parent | 9e0deb76fc25be6a0e898f53a115af3aeed9e5b8 (diff) | |
download | armnn-47d0fe98ca6ab3ba1d21b0971d3009a287974442.tar.gz |
IVGCVSW-3690 Implement SendCounterPacket.SendStreamMetaDataPacket() function
Signed-off-by: Ferran Balaguer <ferran.balaguer@arm.com>
Change-Id: I9e034b0caaff5371fadfdba20fdbe3171d4cd2e6
Diffstat (limited to 'src/profiling/ProfilingUtils.cpp')
-rw-r--r-- | src/profiling/ProfilingUtils.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
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 <armnn/Version.hpp> + #include <boost/assert.hpp> +#include <fstream> + namespace armnn { @@ -84,6 +88,31 @@ uint16_t ReadUint16(const unsigned char* buffer, unsigned int offset) 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 |