| 370 | } |
| 371 | |
| 372 | ProfilingDynamicGuid TimelineUtilityMethods::RecordEvent(ProfilingGuid entityGuid, ProfilingStaticGuid eventClassGuid) |
| 373 | { |
| 374 | // Take a timestamp |
| 375 | uint64_t timestamp = GetTimestamp(); |
| 376 | |
| 377 | // Get the thread id |
| 378 | int threadId = arm::pipe::GetCurrentThreadId(); |
| 379 | |
| 380 | // Generate a GUID for the event |
| 381 | ProfilingDynamicGuid eventGuid = IProfilingService::GetNextGuid(); |
| 382 | |
| 383 | // Send the new timeline event to the external profiling service, this call throws in case of error |
| 384 | m_SendTimelinePacket->SendTimelineEventBinaryPacket(timestamp, threadId, eventGuid); |
| 385 | |
| 386 | // Generate a GUID for the execution link |
| 387 | ProfilingDynamicGuid executionLinkId = IProfilingService::GetNextGuid(); |
| 388 | |
| 389 | // Send the new execution link to the external profiling service, this call throws in case of error |
| 390 | m_SendTimelinePacket->SendTimelineRelationshipBinaryPacket(ProfilingRelationshipType::ExecutionLink, |
| 391 | executionLinkId, |
| 392 | entityGuid, |
| 393 | eventGuid, |
| 394 | eventClassGuid); |
| 395 | |
| 396 | return eventGuid; |
| 397 | } |
| 398 | |
| 399 | ProfilingDynamicGuid TimelineUtilityMethods::RecordWorkloadInferenceAndStartOfLifeEvent(ProfilingGuid workloadGuid, |
| 400 | ProfilingGuid inferenceGuid) |
no test coverage detected