MCPcopy Create free account
hub / github.com/ARM-software/armnn / RecordEvent

Method RecordEvent

profiling/client/src/TimelineUtilityMethods.cpp:372–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370}
371
372ProfilingDynamicGuid 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
399ProfilingDynamicGuid TimelineUtilityMethods::RecordWorkloadInferenceAndStartOfLifeEvent(ProfilingGuid workloadGuid,
400 ProfilingGuid inferenceGuid)

Callers 4

UnloadNetworkMethod · 0.80
LoadedNetworkMethod · 0.80
EnqueueWorkloadMethod · 0.80

Calls 4

GetTimestampFunction · 0.85
GetCurrentThreadIdFunction · 0.85

Tested by

no test coverage detected