aboutsummaryrefslogtreecommitdiff
path: root/tests/profiling/gatordmock/CommandFileParser.hpp
blob: e95395d20673df195a96a5a6259943ebf2271801 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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