diff options
author | Colm Donelan <Colm.Donelan@arm.com> | 2019-10-16 12:24:20 +0100 |
---|---|---|
committer | Colm Donelan <colm.donelan@arm.com> | 2019-10-17 15:59:55 +0000 |
commit | b682d840bb0b4cc34f4febb69c2385feec880ae1 (patch) | |
tree | 155457d5c382deec0b45fd85a0609a4c3322613e /tests/profiling/gatordmock/CommandLineProcessor.hpp | |
parent | 5ae78299f117a61c48a67c5381341501571a0b03 (diff) | |
download | armnn-b682d840bb0b4cc34f4febb69c2385feec880ae1.tar.gz |
IVGCVSW-3721 Add support for startup sequence (Mock Gatord service).
* Updated ExecuteNetwork to propagate a configured Runtime down to RunTest.
* Fixed the creation of PeriodicCounterCaptureCommandHandler to match
other handlers.
* Moved around some printouts to make the MockGatorD output more useful.
* Added details to the exception handling for problems in the
GatordMockService receive thread.
* Mockutils::ConstructHeader is only used in GatordMockTests. Moved it
in there and deleted MockUtils.hpp
* Refactored SendPeriodicCounterSelectionList to use ProfilingUtils.
* Added PeriodicCounterSelectionResponseHandler to received packet echoed back.
Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Change-Id: I4accdbf6cf5dd3f7dcc12b210b8360b4a5e4e277
Diffstat (limited to 'tests/profiling/gatordmock/CommandLineProcessor.hpp')
-rw-r--r-- | tests/profiling/gatordmock/CommandLineProcessor.hpp | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/tests/profiling/gatordmock/CommandLineProcessor.hpp b/tests/profiling/gatordmock/CommandLineProcessor.hpp index 0eed23ace8..532948a5cf 100644 --- a/tests/profiling/gatordmock/CommandLineProcessor.hpp +++ b/tests/profiling/gatordmock/CommandLineProcessor.hpp @@ -12,7 +12,6 @@ namespace armnn namespace gatordmock { - /// Use Boost program options to process the command line. /// -h or --help to print the options. /// -n or --namespace to specify the UDS namespace that the server will be listening on. @@ -21,11 +20,20 @@ namespace gatordmock class CommandLineProcessor { public: - bool ProcessCommandLine(int argc, char *argv[]); - bool IsEchoEnabled() { return m_Echo; } - - std::string GetUdsNamespace() { return m_UdsNamespace; } - std::string GetCommandFile() { return m_File; } + bool ProcessCommandLine(int argc, char* argv[]); + bool IsEchoEnabled() + { + return m_Echo; + } + + std::string GetUdsNamespace() + { + return m_UdsNamespace; + } + std::string GetCommandFile() + { + return m_File; + } private: std::string m_UdsNamespace; @@ -34,6 +42,6 @@ private: bool m_Echo; }; -} // namespace gatordmock +} // namespace gatordmock -} // namespace armnn +} // namespace armnn |