blob: d79870fba99bb61ec60f6522a98367d0b9e01ecc [file] [log] [blame]
Jim Flynnab845752019-10-25 13:17:30 +01001//
2// Copyright © 2019 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
Jim Flynnab845752019-10-25 13:17:30 +01008#include "ProfilingGuidGenerator.hpp"
9
janeil01c4946c72019-11-07 09:32:28 +000010#include <armnn/Types.hpp>
Rob Hughesa91479c2020-01-07 09:40:12 +000011#include <DllExport.hpp>
janeil01c4946c72019-11-07 09:32:28 +000012
Jim Flynnab845752019-10-25 13:17:30 +010013namespace armnn
14{
15
16namespace profiling
17{
18
19class LabelsAndEventClasses
20{
21public:
22 // Labels (string value + GUID)
Finn Williams0a336dc2020-05-11 15:39:58 +010023 ARMNN_DLLEXPORT static std::string EMPTY_LABEL;
Rob Hughesa91479c2020-01-07 09:40:12 +000024 ARMNN_DLLEXPORT static std::string NAME_LABEL;
25 ARMNN_DLLEXPORT static std::string TYPE_LABEL;
26 ARMNN_DLLEXPORT static std::string INDEX_LABEL;
27 ARMNN_DLLEXPORT static std::string BACKENDID_LABEL;
Finn Williams0a336dc2020-05-11 15:39:58 +010028 ARMNN_DLLEXPORT static ProfilingStaticGuid EMPTY_GUID;
Rob Hughesa91479c2020-01-07 09:40:12 +000029 ARMNN_DLLEXPORT static ProfilingStaticGuid NAME_GUID;
30 ARMNN_DLLEXPORT static ProfilingStaticGuid TYPE_GUID;
31 ARMNN_DLLEXPORT static ProfilingStaticGuid INDEX_GUID;
32 ARMNN_DLLEXPORT static ProfilingStaticGuid BACKENDID_GUID;
Narumol Prangnawaratdf31cfe2019-11-22 11:26:06 +000033
34 // Common types
Rob Hughesa91479c2020-01-07 09:40:12 +000035 ARMNN_DLLEXPORT static std::string LAYER;
36 ARMNN_DLLEXPORT static std::string WORKLOAD;
37 ARMNN_DLLEXPORT static std::string NETWORK;
38 ARMNN_DLLEXPORT static std::string CONNECTION;
39 ARMNN_DLLEXPORT static std::string INFERENCE;
40 ARMNN_DLLEXPORT static std::string WORKLOAD_EXECUTION;
41 ARMNN_DLLEXPORT static ProfilingStaticGuid LAYER_GUID;
42 ARMNN_DLLEXPORT static ProfilingStaticGuid WORKLOAD_GUID;
43 ARMNN_DLLEXPORT static ProfilingStaticGuid NETWORK_GUID;
44 ARMNN_DLLEXPORT static ProfilingStaticGuid CONNECTION_GUID;
45 ARMNN_DLLEXPORT static ProfilingStaticGuid INFERENCE_GUID;
46 ARMNN_DLLEXPORT static ProfilingStaticGuid WORKLOAD_EXECUTION_GUID;
Jim Flynnab845752019-10-25 13:17:30 +010047
48 // Event Class GUIDs
Rob Hughesa91479c2020-01-07 09:40:12 +000049 ARMNN_DLLEXPORT static ProfilingStaticGuid ARMNN_PROFILING_SOL_EVENT_CLASS;
50 ARMNN_DLLEXPORT static ProfilingStaticGuid ARMNN_PROFILING_EOL_EVENT_CLASS;
Jim Flynnab845752019-10-25 13:17:30 +010051
52private:
53 static ProfilingGuidGenerator m_GuidGenerator;
54};
55
56} // namespace profiling
57
58} // namespace armnn