diff options
author | Finn Williams <Finn.Williams@arm.com> | 2019-10-22 10:30:49 +0100 |
---|---|---|
committer | David Monahan <david.monahan@arm.com> | 2019-11-07 12:20:47 +0000 |
commit | e63a026bd987e78bdaa5b94c3e53201b62011faa (patch) | |
tree | cad6e7dcc7107b723ecc92116a96eda80100a99e /tests/profiling/timelineDecoder/ITimelineDecoder.h | |
parent | 362e03214ceceb95ec30d530ff84e8d9efc198d7 (diff) | |
download | armnn-e63a026bd987e78bdaa5b94c3e53201b62011faa.tar.gz |
IVGCVSW-3951 Create the timeline decoder
* Added ITimelineDecoder.h C interface
* Added an example implementation of ITimelineDecoder.h
* Added command handlers for the timeline directory and objects
* Added tests for the decoder implementation
* Changed ReadSwTraceMessage to take a const unsigned char*
so it can be used by the directory command handler
* Fixed some bugs in ProfilingUtils.cpp and related tests
Change-Id: If06faf1fe0274a8f022f194a6d3527f5ce5374c6
Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Diffstat (limited to 'tests/profiling/timelineDecoder/ITimelineDecoder.h')
-rw-r--r-- | tests/profiling/timelineDecoder/ITimelineDecoder.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/tests/profiling/timelineDecoder/ITimelineDecoder.h b/tests/profiling/timelineDecoder/ITimelineDecoder.h new file mode 100644 index 0000000000..65ec8bfa6e --- /dev/null +++ b/tests/profiling/timelineDecoder/ITimelineDecoder.h @@ -0,0 +1,41 @@ +// +// Copyright © 2019 Arm Ltd. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#ifndef ARMNN_ITIMELINEDECODER_H +#define ARMNN_ITIMELINEDECODER_H + +#ifdef __cplusplus +extern "C" +{ +#endif + +#include "TimelineModel.h" + +typedef enum ErrorCode +{ + ErrorCode_Success, + ErrorCode_Fail +} ErrorCode; + +ErrorCode CreateModel(Model** model); +ErrorCode DestroyModel(Model** model); + +ErrorCode SetEntityCallback(OnNewEntityCallback cb, Model* model); +ErrorCode SetEventClassCallback(OnNewEventClassCallback cb, Model* model); +ErrorCode SetEventCallback(OnNewEventCallback cb, Model* model); +ErrorCode SetLabelCallback(OnNewLabelCallback cb, Model* model); +ErrorCode SetRelationshipCallback(OnNewRelationshipCallback cb, Model* model); + +ErrorCode CreateEntity(const Entity entity, Model* model); +ErrorCode CreateEventClass(const EventClass eventClass, Model* model); +ErrorCode CreateEvent(const Event event, Model* model); +ErrorCode CreateLabel(const Label label, Model* model); +ErrorCode CreateRelationship(const Relationship relationship, Model* model); + +#ifdef __cplusplus +} +#endif + +#endif //ARMNN_ITIMELINEDECODER_H
\ No newline at end of file |