| 186 | } |
| 187 | |
| 188 | void TimelineUtilityMethods::MarkEntityWithLabel(ProfilingGuid entityGuid, |
| 189 | const std::string& labelName, |
| 190 | ProfilingStaticGuid labelTypeGuid) |
| 191 | { |
| 192 | // Check that the label name is valid |
| 193 | if (labelName.empty()) |
| 194 | { |
| 195 | // The label name is invalid |
| 196 | throw arm::pipe::InvalidArgumentException("Invalid entity name, the entity name cannot be empty"); |
| 197 | } |
| 198 | |
| 199 | // Declare a label with the label's name, this call throws in case of error |
| 200 | ProfilingStaticGuid labelGuid = DeclareLabel(labelName); |
| 201 | |
| 202 | // Generate a GUID for the label relationship |
| 203 | ProfilingDynamicGuid relationshipGuid = IProfilingService::GetNextGuid(); |
| 204 | |
| 205 | // Send the new label link to the external profiling service, this call throws in case of error |
| 206 | m_SendTimelinePacket->SendTimelineRelationshipBinaryPacket(ProfilingRelationshipType::LabelLink, |
| 207 | relationshipGuid, |
| 208 | entityGuid, |
| 209 | labelGuid, |
| 210 | labelTypeGuid); |
| 211 | } |
| 212 | |
| 213 | void TimelineUtilityMethods::MarkEntityWithType(ProfilingGuid entityGuid, |
| 214 | ProfilingStaticGuid typeNameGuid) |
no test coverage detected