diff options
author | Nikhil Raj <nikhil.raj@arm.com> | 2021-06-09 14:55:32 +0100 |
---|---|---|
committer | Nikhil Raj <nikhil.raj@arm.com> | 2021-06-16 10:07:34 +0100 |
commit | 77fe76bfa8cb798943821d1f3e432c228e1cdee3 (patch) | |
tree | 0a6917287674113c00436810f3edfed04ebdeb03 /profiling/common/include/LabelsAndEventClasses.hpp | |
parent | 6d666e41f55ee9cc44933310ca83771710f80b55 (diff) | |
download | armnn-77fe76bfa8cb798943821d1f3e432c228e1cdee3.tar.gz |
IVGCVSW-5835 Move the src/profiling/LabelsAndEventClasses class to profiling/common
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com>
Change-Id: I83de0fe9c83ec7e698817095ce5cfe3319c36ea6
Diffstat (limited to 'profiling/common/include/LabelsAndEventClasses.hpp')
-rw-r--r-- | profiling/common/include/LabelsAndEventClasses.hpp | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/profiling/common/include/LabelsAndEventClasses.hpp b/profiling/common/include/LabelsAndEventClasses.hpp new file mode 100644 index 0000000000..8e3e0b0c67 --- /dev/null +++ b/profiling/common/include/LabelsAndEventClasses.hpp @@ -0,0 +1,69 @@ +// +// Copyright © 2019 Arm Ltd and Contributors. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#pragma once + +#include "ProfilingGuidGenerator.hpp" + +#include "DllExport.hpp" + +namespace armnn +{ + +namespace profiling +{ + +class LabelsAndEventClasses +{ +public: + // Labels (string value + GUID) + ARMNN_DLLEXPORT static std::string EMPTY_LABEL; + ARMNN_DLLEXPORT static std::string NAME_LABEL; + ARMNN_DLLEXPORT static std::string TYPE_LABEL; + ARMNN_DLLEXPORT static std::string INDEX_LABEL; + ARMNN_DLLEXPORT static std::string BACKENDID_LABEL; + ARMNN_DLLEXPORT static std::string CHILD_LABEL; + ARMNN_DLLEXPORT static std::string EXECUTION_OF_LABEL; + ARMNN_DLLEXPORT static std::string PROCESS_ID_LABEL; + ARMNN_DLLEXPORT static ProfilingStaticGuid EMPTY_GUID; + ARMNN_DLLEXPORT static ProfilingStaticGuid NAME_GUID; + ARMNN_DLLEXPORT static ProfilingStaticGuid TYPE_GUID; + ARMNN_DLLEXPORT static ProfilingStaticGuid INDEX_GUID; + ARMNN_DLLEXPORT static ProfilingStaticGuid BACKENDID_GUID; + ARMNN_DLLEXPORT static ProfilingStaticGuid CHILD_GUID; + ARMNN_DLLEXPORT static ProfilingStaticGuid EXECUTION_OF_GUID; + ARMNN_DLLEXPORT static ProfilingStaticGuid PROCESS_ID_GUID; + + // Common types + ARMNN_DLLEXPORT static std::string LAYER; + ARMNN_DLLEXPORT static std::string WORKLOAD; + ARMNN_DLLEXPORT static std::string NETWORK; + ARMNN_DLLEXPORT static std::string CONNECTION; + ARMNN_DLLEXPORT static std::string INFERENCE; + ARMNN_DLLEXPORT static std::string WORKLOAD_EXECUTION; + ARMNN_DLLEXPORT static ProfilingStaticGuid LAYER_GUID; + ARMNN_DLLEXPORT static ProfilingStaticGuid WORKLOAD_GUID; + ARMNN_DLLEXPORT static ProfilingStaticGuid NETWORK_GUID; + ARMNN_DLLEXPORT static ProfilingStaticGuid CONNECTION_GUID; + ARMNN_DLLEXPORT static ProfilingStaticGuid INFERENCE_GUID; + ARMNN_DLLEXPORT static ProfilingStaticGuid WORKLOAD_EXECUTION_GUID; + + // Event Class GUIDs + // Start of Life (SOL) + ARMNN_DLLEXPORT static ProfilingStaticGuid ARMNN_PROFILING_SOL_EVENT_CLASS; + ARMNN_DLLEXPORT static std::string ARMNN_PROFILING_SOL_EVENT_CLASS_NAME; + ARMNN_DLLEXPORT static ProfilingStaticGuid ARMNN_PROFILING_SOL_EVENT_CLASS_NAME_GUID; + // End of Life (EOL) + ARMNN_DLLEXPORT static ProfilingStaticGuid ARMNN_PROFILING_EOL_EVENT_CLASS; + ARMNN_DLLEXPORT static std::string ARMNN_PROFILING_EOL_EVENT_CLASS_NAME; + ARMNN_DLLEXPORT static ProfilingStaticGuid ARMNN_PROFILING_EOL_EVENT_CLASS_NAME_GUID; + +private: + static ProfilingGuidGenerator m_GuidGenerator; +}; + +} // namespace profiling + +} // namespace armnn |