diff options
Diffstat (limited to 'src/profiling/ProfilingConnectionFactory.cpp')
-rw-r--r-- | src/profiling/ProfilingConnectionFactory.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/profiling/ProfilingConnectionFactory.cpp b/src/profiling/ProfilingConnectionFactory.cpp index 4af81a024e..1d264def57 100644 --- a/src/profiling/ProfilingConnectionFactory.cpp +++ b/src/profiling/ProfilingConnectionFactory.cpp @@ -18,6 +18,12 @@ namespace profiling std::unique_ptr<IProfilingConnection> ProfilingConnectionFactory::GetProfilingConnection( const Runtime::CreationOptions::ExternalProfilingOptions& options) const { + // Before proceed to create the IProfilingConnection, check if the file format is supported + if (!(options.m_FileFormat == "binary")) + { + throw armnn::UnimplementedException("Unsupported profiling file format, only binary is supported"); + } + // We can create 3 different types of IProfilingConnection. // 1: If no relevant options are specified then a SocketProfilingConnection is returned. // 2: If both incoming and outgoing capture files are specified then a SocketProfilingConnection decorated by a |