blob: 0e94e612d9ab1ea36a277a709a52cc5eaba10e04 [file] [log] [blame]
Ferran Balaguer73882172019-09-02 16:39:42 +01001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
Francis Murtagh3a161982019-09-04 15:25:02 +01008#include <armnn/Exceptions.hpp>
9
Ferran Balaguer47d0fe92019-09-04 16:47:34 +010010#include <string>
Ferran Balaguer73882172019-09-02 16:39:42 +010011#include <stdint.h>
12
13namespace armnn
14{
15
16namespace profiling
17{
18
Matteo Martincighab173e92019-09-05 12:02:04 +010019uint16_t GetNextUid();
20
Francis Murtagh3a161982019-09-04 15:25:02 +010021void WriteUint64(unsigned char* buffer, unsigned int offset, uint64_t value);
22
Ferran Balaguer73882172019-09-02 16:39:42 +010023void WriteUint32(unsigned char* buffer, unsigned int offset, uint32_t value);
24
25void WriteUint16(unsigned char* buffer, unsigned int offset, uint16_t value);
26
Francis Murtagh3a161982019-09-04 15:25:02 +010027uint64_t ReadUint64(const unsigned char* buffer, unsigned int offset);
28
Ferran Balaguer73882172019-09-02 16:39:42 +010029uint32_t ReadUint32(const unsigned char* buffer, unsigned int offset);
30
31uint16_t ReadUint16(const unsigned char* buffer, unsigned int offset);
32
Ferran Balaguer47d0fe92019-09-04 16:47:34 +010033std::string GetSoftwareInfo();
34
35std::string GetSoftwareVersion();
36
37std::string GetHardwareVersion();
38
39std::string GetProcessName();
40
Francis Murtagh3a161982019-09-04 15:25:02 +010041class BufferExhaustion : public armnn::Exception
42{
43 using Exception::Exception;
44};
45
Ferran Balaguer73882172019-09-02 16:39:42 +010046} // namespace profiling
47
Ferran Balaguer47d0fe92019-09-04 16:47:34 +010048} // namespace armnn