diff options
Diffstat (limited to 'tests/profiling/gatordmock/CommandFileParser.hpp')
-rw-r--r-- | tests/profiling/gatordmock/CommandFileParser.hpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/profiling/gatordmock/CommandFileParser.hpp b/tests/profiling/gatordmock/CommandFileParser.hpp new file mode 100644 index 0000000000..e95395d206 --- /dev/null +++ b/tests/profiling/gatordmock/CommandFileParser.hpp @@ -0,0 +1,31 @@ +// +// Copyright © 2019 Arm Ltd. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#pragma once + +#include <string> +#include "GatordMockService.hpp" + +namespace armnn +{ + +namespace gatordmock +{ + +/// This class parses a command file for the GatordMockService. The file contains one command per line. +/// Valid commands are: SET and WAIT. +/// +/// SET: Will construct and send a PeriodicCounterSelection packet to enable a set of counters. +/// WAIT: Will pause for a set period of time to allow for data to be received. +class CommandFileParser +{ +public: + void ParseFile(std::string CommandFile, GatordMockService& mockService); +}; + +} // namespace gatordmock +} // namespace armnn + + |