blob: 410198a2cc1fdfec4c39dda689f731401e0c1e33 [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
Francis Murtagh3a161982019-09-04 15:25:02 +010019void WriteUint64(unsigned char* buffer, unsigned int offset, uint64_t value);
20
Ferran Balaguer73882172019-09-02 16:39:42 +010021void WriteUint32(unsigned char* buffer, unsigned int offset, uint32_t value);
22
23void WriteUint16(unsigned char* buffer, unsigned int offset, uint16_t value);
24
Francis Murtagh3a161982019-09-04 15:25:02 +010025uint64_t ReadUint64(const unsigned char* buffer, unsigned int offset);
26
Ferran Balaguer73882172019-09-02 16:39:42 +010027uint32_t ReadUint32(const unsigned char* buffer, unsigned int offset);
28
29uint16_t ReadUint16(const unsigned char* buffer, unsigned int offset);
30
Ferran Balaguer47d0fe92019-09-04 16:47:34 +010031std::string GetSoftwareInfo();
32
33std::string GetSoftwareVersion();
34
35std::string GetHardwareVersion();
36
37std::string GetProcessName();
38
Francis Murtagh3a161982019-09-04 15:25:02 +010039class BufferExhaustion : public armnn::Exception
40{
41 using Exception::Exception;
42};
43
Ferran Balaguer73882172019-09-02 16:39:42 +010044} // namespace profiling
45
Ferran Balaguer47d0fe92019-09-04 16:47:34 +010046} // namespace armnn