diff options
author | Jim Flynn <jim.flynn@arm.com> | 2022-03-08 21:23:44 +0000 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2022-03-09 22:14:52 +0000 |
commit | f9db3efe5ce2b989b59c47056e1b84b32d2f1100 (patch) | |
tree | b1fd75d5f951f9036a8f0b37211fc30b4d651262 /src/profiling/TimelineUtilityMethods.cpp | |
parent | 0e5588f3289845d1bd7597ade081764018eda2cc (diff) | |
download | armnn-f9db3efe5ce2b989b59c47056e1b84b32d2f1100.tar.gz |
IVGCVSW-6821 Remove dependency on armnn::Exception classes from the Profiling code
Change-Id: Id46a9a0576091df21b2af5b472f1ca5c6335e8a3
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/profiling/TimelineUtilityMethods.cpp')
-rw-r--r-- | src/profiling/TimelineUtilityMethods.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/profiling/TimelineUtilityMethods.cpp b/src/profiling/TimelineUtilityMethods.cpp index fea8ed7ae0..1bfbc96df4 100644 --- a/src/profiling/TimelineUtilityMethods.cpp +++ b/src/profiling/TimelineUtilityMethods.cpp @@ -104,13 +104,13 @@ ProfilingDynamicGuid TimelineUtilityMethods::CreateNamedTypedEntity(const std::s // Check that the entity name is valid if (name.empty()) { - throw InvalidArgumentException("Invalid entity name, the entity name cannot be empty"); + throw arm::pipe::InvalidArgumentException("Invalid entity name, the entity name cannot be empty"); } // Check that the entity type is valid if (type.empty()) { - throw InvalidArgumentException("Invalid entity type, the entity type cannot be empty"); + throw arm::pipe::InvalidArgumentException("Invalid entity type, the entity type cannot be empty"); } // Generate dynamic GUID of the entity @@ -128,13 +128,13 @@ void TimelineUtilityMethods::CreateNamedTypedEntity(ProfilingGuid entityGuid, // Check that the entity name is valid if (name.empty()) { - throw InvalidArgumentException("Invalid entity name, the entity name cannot be empty"); + throw arm::pipe::InvalidArgumentException("Invalid entity name, the entity name cannot be empty"); } // Check that the entity type is valid if (type.empty()) { - throw InvalidArgumentException("Invalid entity type, the entity type cannot be empty"); + throw arm::pipe::InvalidArgumentException("Invalid entity type, the entity type cannot be empty"); } // Send Entity Binary Packet of the entity to the external profiling service @@ -154,7 +154,7 @@ void TimelineUtilityMethods::CreateNamedTypedEntity(ProfilingGuid entityGuid, // Check that the entity name is valid if (name.empty()) { - throw InvalidArgumentException("Invalid entity name, the entity name cannot be empty"); + throw arm::pipe::InvalidArgumentException("Invalid entity name, the entity name cannot be empty"); } // Send Entity Binary Packet of the entity to the external profiling service @@ -173,7 +173,7 @@ ProfilingStaticGuid TimelineUtilityMethods::DeclareLabel(const std::string& labe if (labelName.empty()) { // The label name is invalid - throw InvalidArgumentException("Invalid label name, the label name cannot be empty"); + throw arm::pipe::InvalidArgumentException("Invalid label name, the label name cannot be empty"); } // Generate a static GUID for the given label name @@ -193,7 +193,7 @@ void TimelineUtilityMethods::MarkEntityWithLabel(ProfilingGuid entityGuid, if (labelName.empty()) { // The label name is invalid - throw InvalidArgumentException("Invalid entity name, the entity name cannot be empty"); + throw arm::pipe::InvalidArgumentException("Invalid entity name, the entity name cannot be empty"); } // Declare a label with the label's name, this call throws in case of error @@ -242,14 +242,14 @@ ProfilingDynamicGuid TimelineUtilityMethods::CreateNamedTypedChildEntity(Profili if (entityName.empty()) { // The entity name is invalid - throw InvalidArgumentException("Invalid entity name, the entity name cannot be empty"); + throw arm::pipe::InvalidArgumentException("Invalid entity name, the entity name cannot be empty"); } // Check that the entity type is valid if (entityType.empty()) { // The entity type is invalid - throw InvalidArgumentException("Invalid entity type, the entity type cannot be empty"); + throw arm::pipe::InvalidArgumentException("Invalid entity type, the entity type cannot be empty"); } // Create a named type entity from the given name and type, this call throws in case of error @@ -277,14 +277,14 @@ void TimelineUtilityMethods::CreateNamedTypedChildEntity(ProfilingGuid childEnti if (entityName.empty()) { // The entity name is invalid - throw InvalidArgumentException("Invalid entity name, the entity name cannot be empty"); + throw arm::pipe::InvalidArgumentException("Invalid entity name, the entity name cannot be empty"); } // Check that the entity type is valid if (entityType.empty()) { // The entity type is invalid - throw InvalidArgumentException("Invalid entity type, the entity type cannot be empty"); + throw arm::pipe::InvalidArgumentException("Invalid entity type, the entity type cannot be empty"); } // Create a named type entity from the given guid, name and type, this call throws in case of error @@ -310,7 +310,7 @@ void TimelineUtilityMethods::CreateNamedTypedChildEntity(ProfilingGuid childEnti if (entityName.empty()) { // The entity name is invalid - throw InvalidArgumentException("Invalid entity name, the entity name cannot be empty"); + throw arm::pipe::InvalidArgumentException("Invalid entity name, the entity name cannot be empty"); } // Create a named type entity from the given guid, name and type, this call throws in case of error |