| 168 | } |
| 169 | |
| 170 | ProfilingStaticGuid TimelineUtilityMethods::DeclareLabel(const std::string& labelName) |
| 171 | { |
| 172 | // Check that the label name is valid |
| 173 | if (labelName.empty()) |
| 174 | { |
| 175 | // The label name is invalid |
| 176 | throw arm::pipe::InvalidArgumentException("Invalid label name, the label name cannot be empty"); |
| 177 | } |
| 178 | |
| 179 | // Generate a static GUID for the given label name |
| 180 | ProfilingStaticGuid labelGuid = IProfilingService::GetStaticId(labelName); |
| 181 | |
| 182 | // Send the new label to the external profiling service, this call throws in case of error |
| 183 | m_SendTimelinePacket->SendTimelineLabelBinaryPacket(labelGuid, labelName); |
| 184 | |
| 185 | return labelGuid; |
| 186 | } |
| 187 | |
| 188 | void TimelineUtilityMethods::MarkEntityWithLabel(ProfilingGuid entityGuid, |
| 189 | const std::string& labelName, |
no test coverage detected